Gentoo Archives: gentoo-user

From: James <jtp@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Getting system stats
Date: Wed, 07 Nov 2007 18:45:10
Message-Id: 4A0818DB-2B49-481C-A940-B93DE9BC7D56@nc.rr.com
1 All,
2
3 I'm writing a piece of code that requires I gather the following
4 statistics every second:
5
6 - CPU Usage (as a percentage)
7 - NIC I/O
8 - Hard Drive I/O
9
10 I later have to correlate these stats as a function of time.
11
12 I'm not really sure where I should be looking to gather these
13 statistics. I know about /proc/stat, but that's only CPU related (and
14 I don't think /proc/sys will give me a CPU usage percentage anyways).
15 I'm not sure if there exist other proc files that will give me the
16 values for NIC and hard drive I/O (such as number of transactions per
17 second).
18
19 Thoughts?
20
21 Thanks!
22 .james
23 --
24 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Getting system stats "Aleksey V. Kunitskiy" <alexey.kv@×××××.com>
Re: [gentoo-user] Getting system stats Iain Buchanan <iaindb@××××××××××××.au>
Re: [gentoo-user] Getting system stats Liviu Andronic <landronimirc@×××××.com>