Solaris 10: Identify a PID and the CPU it's running on
Posted
by
Marcus
on Super User
See other posts from Super User
or by Marcus
Published on 2011-01-06T11:44:40Z
Indexed on
2011/01/06
11:55 UTC
Read the original article
Hit count: 181
solaris
I have multiple instances of a database running on a Solaris system. I'd like to prove that each database process is being handled by a different CPU. Essentially, I want to be able to do something like a ps -ef | grep <process_name>
to get the PIDs and then run another command (if required) to identify the CPU...
Is prstat able to do this?
I'm making an assumption that as each database instance is started each one uses a different CPU. I'm not sure if I'm understanding this correctly...
The reason I want to do this is because Sun hardware has slow CPU's, but lots of them. Therefore, to get the best performance out of it, I need to try and spread the load among CPU's...
Thanks
© Super User or respective owner