J'ai compris pourquoi je n'avais pas trouvé ce qui était évident dans le man :

sur le serveur consulté, (SuSE 8.2) le man de 'ps' date de July 5, 1998 et ne dit rien au sujet de PSR, mais par contre l'exemple de Pascal y est bien supporté par un test pratique !
-> c'était supporté mais non documenté.

Par contre sur mon PC (SuSE 9.3), le man est nettement plus explicite dans ses exemples, parle de PSR et date de July 28, 2004.

        Encore merci,

        Alain


Pascal Bleser wrote:
-----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



--
------------------------------------------------------------
Dr Alain EMPAIN  <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
      Bioinformatics, Molecular Genetics,
      Fac. Med. Vet., University of LIEGEe, Belgium
      Bd de Colonster, B43   B-4000 LIEGEe (Sart-Tilman)
WORK: +32 4 366 4159         FAX: +32 4 366 4122
HOME: rue des Martyrs,7      B- 4550 Nandrin
      +32 85 51 2341         GSM: +32 497 70 1764
-------------------------------------------------------------------------------
-- If you have problems in Windows: REBOOT
-- If you have problems in Linux:   BE ROOT
-------------------------------------------------------------------------------
_______________________________________________________
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 à