Date: Fri, 26 Jun 2009 11:06:20 -0700 From: Chuck Swiger <cswiger@mac.com> To: Daniel Underwood <djuatdelta@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Restrict process(es) to single core Message-ID: <B312F218-C9E6-4FC0-B88A-3660EF0A0E81@mac.com> In-Reply-To: <b6c05a470906261040v68a3467cr137e84e4e60e01c3@mail.gmail.com> References: <b6c05a470906261040v68a3467cr137e84e4e60e01c3@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 26, 2009, at 10:40 AM, Daniel Underwood wrote: > Suppose I'm running a multi-threaded program that's utilizing both > cores of my CPU. I'm not interested in it's speed, however, and would > like to free up another core for general purpose. Is there a way > (without altering/recompiling the program, obviously) to restricting a > process and its children to a single core? The simple way would be to use renice to change the process priority; other normal processes you run would get CPU first, but this task would be able to use all system resources if nothing else is. I'm not sure whether FreeBSD currently has a way to bind tasks to only running on a subset of available CPUs (ie, CPUSETs mechanism in Linux, set CPU affinity in Windows, etc). Regards, -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B312F218-C9E6-4FC0-B88A-3660EF0A0E81>