Kris Maglione <maglion...@gmail.com> wrote:
> [-- text/plain, encoding 7bit, charset: us-ascii, 36 lines --]
> 
> On Tue, May 05, 2009 at 06:50:07PM +0100, Alexander Clouter wrote:
>>Eugh, that truly is horrible.
>>
>>Have a look at /proc/stat and section 1.8 of 
>>Documentation/filesystems/proc.txt in the Linux kernel tree.
> 
> You're right, but I don't think /proc/stat is especially useful. 
> It requires too much processing for a script. I've lately used 
> iostat, because it gives me disk useage information along with 
> CPU usage. The attached script is fairly arcane, but most of it 
> goes towards determining the background/foreground color for a 
> given usage.
> 
...and of course upon re-reading this I remembered 'vmstat -n 1' :-/

Cheers

-- 
Alexander Clouter
.sigmonster says: What GOOD is a CARDBOARD suitcase ANYWAY?


Reply via email to