我的右手被石头砸断了,我用麦克雷的左手是断了吗打字打字太慢怎么办?我是程序员,缺了一只手很不方便

在AIX下如何查看到底是什么进程的磁盘IO高_读书人
在AIX下如何查看到底是什么进程的磁盘IO高
&来源:读书人网&【读书人网():综合教育门户网站】
在AIX下怎么查看到底是什么进程的磁盘IO高?在AIX下怎么查看到底是什么进程的磁盘IO高?[解决办法] iostatSy
在AIX下怎么查看到底是什么进程的磁盘IO高?在AIX下怎么查看到底是什么进程的磁盘IO高? [解决办法]&iostatSystem&configuration:&lcpu=16&drives=4&paths=3&vdisks=0tty:&&&&&&tin&&&&&&&&&tout&&&&avg-cpu:&%&user&%&sys&%&idle&%&iowait&&&&&&&&&&0.0&&&&&&&&&15.9&&&&&&&&&&&&&&&&2.0&&&1.0&&&96.2&&&&&&0.8Disks:&&&&&&&&%&tm_act&&&&&Kbps&&&&&&tps&&&&Kb_read&&&Kb_wrtnhdisk0&&&&&&&&&&&0.4&&&&&&44.3&&&&&&&1.1&&&5301519hdisk1&&&&&&&&&&&0.4&&&&&&39.2&&&&&&&1.1&&&7415983hdisk2&&&&&&&&&&&8.8&&&&&257.7&&&&&&25.3&&&&&cd0&&&&&&&&&&&&&&0.0&&&&&&&0.0&&&&&&&0.0&&&&&&&&&&0&&&&&&&&&0使用cgroup限制进程的磁盘io
cat /etc/cgconfig.conf
Copyright IBM Corporation. 2007
Balbir Singh &balbir@linux.&
This prog you can redistribute it and/or modify it
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Software Foundation.
This program is distributed in the hope that it would be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See man cgconfig.conf for further details.
# By default, mount all controllers to /cgroup/&controller&
= /cgroup/
= /cgroup/
cpuacct = /cgroup/
= /cgroup/
devices = /cgroup/
freezer = /cgroup/
net_cls = /cgroup/net_
= /cgroup/
group shard_0{
blkio.throttle.read_iops_device=&253:3 16000&;
blkio.throttle.write_iops_device=&253:3 16000&;
blkio.weight=&500&;
group shard_1{
blkio.throttle.read_iops_device=&253:3 16000&;
blkio.throttle.write_iops_device=&253:3 16000&;
blkio.weight=&500&;
blkio.throttle.read_iops_device 读iops
blkio.throttle.write_iops_device 写iops
253:3是设备的编号
比如我们要限制进程在flashcache上的iops
[root@test ~]# ls -l /dev/mapper/cachedev
lrwxrwxrwx 1 root root 7 Jan 25 21:16 /dev/mapper/cachedev -& ../dm-3
这里看到只是一个软连接,我们接着找
[root@test~]# ls -l /dev/dm-3
brw-rw---- 1 root disk 253, 3 Jan 25 21:16 /dev/dm-3
因此我们限制某个进程在 flashcache上的iops最高16000就 写成 253:3 16000
启动cgroup
[root@c3-b2c-dba-backend-09 /]# service cgconfig restart
Stopping cgconfig service:
Starting cgconfig service:
然后就可以将进程id写进cgroup 对应的task了
[root@test shard_0]# pwd
/cgroup/blkio/shard_0
[root@test shard_0]# cat tasks
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467142',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'AIX系统磁盘IO性能评估_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
AIX系统磁盘IO性能评估
上传于||暂无简介
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩12页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢本帖子已过去太久远了,不再提供回复功能。

我要回帖

更多关于 当麻右手断了 的文章

 

随机推荐