Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Apr 2012 16:48:30 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Mahesh Babu <maheshbabu90@yahoo.co.in>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Regarding cores in FreeBSD 9
Message-ID:  <4F8B422E.4050504@freebsd.org>
In-Reply-To: <1334525277.20956.YahooMailNeo@web193204.mail.sg3.yahoo.com>
References:  <1334525277.20956.YahooMailNeo@web193204.mail.sg3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F8B422E.4050504>