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 !