Suivre un processus Unix

ebays -  
johan Messages postés 4 Statut Membre -
Bonjour à tous,

Je souhaite suivre la consommation et les attentes pour un processus Unix.

Pour la durée d'exécution d'un processus je souhaite connaître les temps suivants :

Using CPU: The process is currently using CPU (it is not in any wait state).

CPU Wait: The process is waiting for CPU.

Memory Wait: The process is waiting due to an action related to real memory (e.g., page in and swap in).

Other Host Wait: The process is waiting in the host system for actions such as initialization or termination of the server process.

Comment obtenir ces informations ?

Merci de votre aide ...

ebays

3 réponses

  1. fensys
     
    si tu as accès à un unix, commence déjà par consulter le man de la commande ps pour voir si tu y trouves des options susceptibles de t'intéresser. je vais me renseigner de mon côté pour les 2 dernières fonctions que tu recherches.
    0
  2. xarak Messages postés 6 Statut Membre
     
    Essaye aussi de voir la process accounting 'man acct'
    0
  3. johan Messages postés 4 Statut Membre
     
    Sous bash la commande time fournit:
    real 0m15.405s
    user 0m0.430s
    sys 0m0.650s

    Utilisation totale, utilisateur, système

    $mybike:~$ help time
    time: time [-p] PIPELINE
    Execute PIPELINE and print a summary of the real time, user CPU time,
    and system CPU time spent executing PIPELINE when it terminates.
    The return status is the return status of PIPELINE. The `-p' option
    prints the timing summary in a slightly different format. This uses
    the value of the TIMEFORMAT variable as the output format.
    times: times
    Print the accumulated user and system times for processes run from
    the shell.
    0