From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 15 21:48:37 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7DBD31065672 for ; Sun, 15 Apr 2012 21:48:37 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 4AA028FC14 for ; Sun, 15 Apr 2012 21:48:37 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0M2J00D04J8VKJ00@smtpauth1.wiscmail.wisc.edu> for freebsd-hackers@freebsd.org; Sun, 15 Apr 2012 16:48:31 -0500 (CDT) Received: from wanderer.tachypleus.net ([unknown] [76.210.67.9]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0M2J00AKVJ8UWM00@smtpauth1.wiscmail.wisc.edu>; Sun, 15 Apr 2012 16:48:31 -0500 (CDT) Date: Sun, 15 Apr 2012 16:48:30 -0500 From: Nathan Whitehorn In-reply-to: <1334525277.20956.YahooMailNeo@web193204.mail.sg3.yahoo.com> To: Mahesh Babu Message-id: <4F8B422E.4050504@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.210.67.9 X-Spam-PmxInfo: Server=avs-16, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.4.15.213916, SenderIP=76.210.67.9 References: <1334525277.20956.YahooMailNeo@web193204.mail.sg3.yahoo.com> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120327 Thunderbird/10.0.3 Cc: "freebsd-hackers@freebsd.org" Subject: Re: Regarding cores in FreeBSD 9 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Apr 2012 21:48:37 -0000 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 or switch an existing process cpuset -l 2 -p 1200. -Nathan