|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello all,
I'm not sure if this is a question can can be delt with using shell commands, but here goes: how can you determine the complete 'load' of a specific user on a system. How much CPU in a day for instance. How much bandwidth, I/O bytes, disk accesses, memory use, etc... Including cron jobs, multiple remote sessions, etc... Important note: I'm not an admin on the system, but a lowly user who doesn't even have the privilege required to run 'top'. But the admins complain that I use too many resources, without specifying _what_ those resources are. So I'd like to figure out for myself. I figure I may look into /proc or even compile my own 'top', but that may be frowned upon. ps, uptime and some other commands are allowed though. -- Guillaume Dargaud http://www.gdargaud.net/ |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Guillaume Dargaud wrote:
> Hello all, > I'm not sure if this is a question can can be delt with using shell > commands, but here goes: how can you determine the complete 'load' of a > specific user on a system. > How much CPU in a day for instance. How much bandwidth, I/O bytes, disk > accesses, memory use, etc... > > Including cron jobs, multiple remote sessions, etc... > > Important note: I'm not an admin on the system, but a lowly user who doesn't > even have the privilege required to run 'top'. But the admins complain that > I use too many resources, without specifying _what_ those resources are. So > I'd like to figure out for myself. > > I figure I may look into /proc or even compile my own 'top', but that may be > frowned upon. ps, uptime and some other commands are allowed though. uptime ps -f swap -s; free iostat 10 netstat -i 10 vmstat 10 time command and man command for each of the above commands. -- Michael Tosch @ hp : com |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
In article <fkgkk2$p18$1@ccpntc8.in2p3.fr>,
Guillaume Dargaud <use_the_form_on_my_contact_page@www.gdargaud.ne t> wrote: >Hello all, >I'm not sure if this is a question can can be delt with using shell >commands, but here goes: how can you determine the complete 'load' of a >specific user on a system. >How much CPU in a day for instance. How much bandwidth, I/O bytes, disk >accesses, memory use, etc... > >Including cron jobs, multiple remote sessions, etc... > >Important note: I'm not an admin on the system, but a lowly user who doesn't >even have the privilege required to run 'top'. But the admins complain that >I use too many resources, without specifying _what_ those resources are. So >I'd like to figure out for myself. This may not be useful to you since it would likely require cooperation from the admins, but it is worth noting that the ideal way of gathering some of this information is via process accounting, if the OS you're using supports it. This records the CPU usage, character and block IO transfer counts, and approximate average memory use for every process run. It is a very low overhead facility, particularly as compared to polling constantly for this information through ps/etc. (and will produce far higher-quality data than that!) Start with: apropos "process accounting"; if the OS supports it, that will get you the command you'd use to extract information from it, if it is currently enabled. If it isn't, you could at least ask the admins if they'll enable it; it would give *them* a much better idea of what's going on, too. It is certainly how I, acting as an admin, would get an idea of the resources consumed by a user. John -- John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/ |
|
![]() |
| Outils de la discussion | |
|
|