Erick Perez
2007-Apr-04 02:14 UTC
[CentOS] command to see if a process is being spread among multiple cpus
What command can I use to check if a specific process is being spreaded among multiple cpus? -- ------------------------------------------------------------ Erick Perez ------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070403/4a82ab94/attachment-0004.html>
Antonio da Silva Martins Junior
2007-Apr-04 11:06 UTC
[CentOS] command to see if a process is being spread among multiple cpus
----- "Erick Perez" <eaperezh at gmail.com> wrote:> > What command can I use to check if a specific process is >being spreaded among multiple cpus? >You can use "top" (among others) to see "where" your process are running, run top, and type "f" and then "J", it'll add a "P"rocessor column on top. But, _a_ process can't spread on multiple CPUs... to do this the application need to be specificaly designed to do so. A way to do this is using multi-threads, another one is forking multi-instances. But, with only one instance running an application will use only one CPU. Antonio. -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - Support Analist | "Only The Shadow Knows | | Universidade Estadual de Maring?? - Brasil| what evil lurks in the | | NPD - N??cleo de Processamento de Dados | Heart of Men!" | | E-Mail: asmartins at uem.br / shadow at uem.br | !!! Linux User: 52392 !!! | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -- Esta mensagem foi verificada pelo sistema de antiv?rus e acredita-se estar livre de perigo.