Solaris 10: Identify a PID and the CPU it's running on
- by Marcus
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