[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Monitoring CPU et MEM



Bonjour,

Le mer 20/11/2002 à 13:37, Philippe LE NAOUR a écrit :
> Je vous remercie tous de vos réponses.
> 
> Je vais donc m'ateler à faire un script qui parse la commande top pour avoir
> une utilisation CPU et Memoire des process, même si ce n'est pas très
> fiable, ça me donnera une approximation.
> 
> Pour le reste, je suis toujours pret pour vos suggestions.

Je suis pas sûr d'avoir bien compris si tu cherches a avoir des stats
"en direct" ou à postériori... Mais, dans la config du noyau, je vois ça
qui pourrait servir :

BSD Process Accounting
CONFIG_BSD_PROCESS_ACCT
  If you say Y here, a user level program will be able to instruct the
  kernel (via a special system call) to write process accounting
  information to a file: whenever a process exits, information about
  that process will be appended to the file by the kernel.  The
  information includes things such as creation time, owning user,
  command name, memory usage, controlling terminal etc. (the complete
  list is in the struct acct in <file:include/linux/acct.h>).  It is
  up to the user level program to do useful things with this
  information.  This is generally a good idea, so say Y.


J'ai jamais essayé...

Bruno

-- 
17:29 moi j'ai mis mon swap dans un ramdisk ... et ops ... plus de
      problème !



Reply to: