Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2009 21:40:08 +0100
From:      Michal <ml@infosec.pl>
To:        freebsd-questions@freebsd.org
Subject:   disk usage statistics
Message-ID:  <49DFAEA8.6060306@infosec.pl>

next in thread | raw e-mail | index | archive | help
Hello.

Could you suggest me how can I get my disk usage statistics in terms of
percentage of the possible disk activity (like in gstat) or megabytes
per second (like in iostat), please?

I need something that gives actual usage statistics, not any averages.
And something that prints what I want and quits (not like gstat in
default mode). It have to be available for unprivileged user and I don't
want to use any temporally files in the process.

The closest I can get is (last column of):
iostat -c 2 -d ad0 | tail -n 1

Problem is that it takes two seconds, which is not acceptable for me
because I want it's output to be printed in status bar beside date and 
time. I'm using wmii window manager.

Any suggestions and hints are very welcome.
Michal
-- 
"Never interrupt your enemy when he is making a mistake." -Napoleon 
Bonaparte



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49DFAEA8.6060306>