[Gllug] hourly/daily rate for linux systems admins?

Karanbir Singh mail-lists at karan.org
Wed Nov 24 00:30:30 UTC 2010


On 11/23/2010 10:23 PM, Nix wrote:
> On 23 Nov 2010, Karanbir Singh told this:
>> As another example, when asked to find per-process blockdev i/o rate,
>> only 1 out of 8 people actually looked in /proc/<id>/; a couple
>
> I'm sorry, where is this? I just hunted for it and can't see anything
> relating to per-process blockdev I/O there. I had no idea Linux tracked
> such things on a per-process basis (in fact I can remember patches to do
> such things being rejected in the past).

iotop has been fairly widespread for a few years now, main line 2.6.20+ 
have i/o accounting( so mid 2007 ? ); rhel/centos have had this for a 
while too. Dag blogged about it way back when.. 
http://dag.wieers.com/blog/red-hat-backported-io-accounting-to-rhel5

Check if your kernel config has CONFIG_TASK_IO_ACCOUNTING

> Of course what I do now is dig into the source tree, and find that the
> third-from-last /proc/{pid}/stat entry is the per-task I/O delay figure,
> which may be what you referred to. This is seriously obscure stuff: it
> was added in 2006, but the only distro which appears to have packaged
> the userspace side of this is OpenSUSE. I can't find any sign of an
> upstream source tree at all.

how about /proc/<pid>/io ?

- KB
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list