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 |