-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alain EMPAIN wrote:
| Bonjour tout le monde,
Salut Alain

| est-il possible de connaître sur quel processeur un job tourne ?
| Je ne trouve pas dans le man de ps, mais il y a peut-être un autre moyen
| simple. Sinon, gratter dans /proc ?

cat /proc/<pid>/cpu
p.ex. cat /proc/1/cpu

Tu as aussi une option dans ps: ps -AF => colonne "PSR":
"psr        PSR      processor that process is currently assigned to."
(cf. man ps)

Ou alors:
ps -A -o pid,psr,cmd

p.ex. si tu veux trouver les processus qui sont éxécutés sur le CPU #2:
ps -A -o psr,pid,uname,ucmd|grep '^ *2'

- --
~  -o) Pascal Bleser     http://linux01.gwdg.de/~pbleser/
~  /\\ <[EMAIL PROTECTED]>       <[EMAIL PROTECTED]>
~ _\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCsSSKr3NMWliFcXcRAhRYAKCuGY8F31SxJVM7cOfBjRgIIuYitACeJ5nk
FkYGGflMipCjn5iFfjR5Nd0=
=MMKT
-----END PGP SIGNATURE-----
_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@lists.unixtech.be
IRC: chat.unixtech.be:6667 - #unixtech
NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech

Répondre à