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

John Edwards john at cornerstonelinux.co.uk
Tue Nov 23 22:54:36 UTC 2010


On Tue, Nov 23, 2010 at 10:23:39PM +0000, 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).
> 
> 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.

There is also /proc/<id>/io, which I think requires the kernel to be
built with TASK_IO_ACCOUNTING.

And there is a little python program called iotop that displays the
data in top-like fashion. Very useful for servers with many users
where you want to find out what is causing the slow disk access.


-- 
#---------------------------------------------------------#
|    John Edwards   Email: john at cornerstonelinux.co.uk    |
#---------------------------------------------------------#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20101123/d8ec63e4/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list