PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Findnig user load...
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Findnig user load...

Réponse
 
LinkBack Outils de la discussion
Vieux 21/12/2007, 15h03   #1
Guillaume Dargaud
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Findnig user load...

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/


  Réponse avec citation
Vieux 21/12/2007, 15h22   #2
Michael Tosch
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Findnig user load...

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
  Réponse avec citation
Vieux 21/12/2007, 20h42   #3
John DuBois
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Findnig user load...

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/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h32.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,20094 seconds with 11 queries