Regarding cores in FreeBSD 9
Nathan Whitehorn
nwhitehorn at freebsd.org
Sun Apr 15 21:48:37 UTC 2012
On 04/15/12 16:27, Mahesh Babu wrote:
> 1. How to find in which core the given process is running?
You can see it in top.
> 2. How to force a process to run in a particular core? for example: I need to run process ID 1200 in core 2.
Use cpuset. You can either run it in the first place on core 2 with
cpuset -l 2 <cmd> or switch an existing process cpuset -l 2 -p 1200.
-Nathan
More information about the freebsd-hackers
mailing list