Findnig user load...

Findnig user load...

am 21.12.2007 16:03:30 von Guillaume Dargaud

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/

Re: Findnig user load...

am 21.12.2007 16:22:55 von Michael Tosch

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

Re: Findnig user load...

am 21.12.2007 21:42:50 von spcecdt

In article ,
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.

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/