Re: Locking processes/users to CPUs in SMP systems
On Thu, Mar 23, 2006 at 09:48:05PM -0500, rjn wrote: I was just wondering, is it possible to lock a process or user to a specific CPU in an SMP system? Say for example, I had a database and a web server and I wanted to lock each one to a CPU. Or that I only wanted user 'johndoe' to be able to use a second CPU? Thanks in advance. AFAIK, this is not possible. However, it *is* possible to set resource limits (see /etc/login.conf), which can be used to get similar results. Joachim
Re: Locking processes/users to CPUs in SMP systems
On Thu, Mar 23, 2006 at 09:48:05PM -0500, rjn wrote: I was just wondering, is it possible to lock a process or user to a specific CPU in an SMP system? Say for example, I had a database and a web server and I wanted to lock each one to a CPU. Or that I only wanted user 'johndoe' to be able to use a second CPU? not really. even worse -- we have no cpu affinity at all (: this is on my todo list though so maybe in 4.0 . cu -- paranoic mickey (my employers have changed but, the name has remained)
Re: Locking processes/users to CPUs in SMP systems
Thank you everyone for the quick responses. :) On 3/24/06, Janne Johansson [EMAIL PROTECTED] wrote: Are you sure you *really* want this? I mean, even if it was possible, are you sure there would be any gains to it? From what I have read (I'm not an expert on the subject, just curious), cpu affinity is important for performance. Soft affinity attempts to keep processes on the cpu where it's cache is as if the processes are moved a lot, it causes high cache miss rates. In terms of hard affinity, it can make sense for performance in that in some setups, you might want to give a single process or a set of processes the full processing power of a CPU and let the kernel and other programs be run by another CPU. Source: http://www.linuxjournal.com/article/6799 (An old article on CPU affinity in the 2.5 Linux development kernel.) However, like I said, it was more just out of curiosity. -- em: [EMAIL PROTECTED] Poster: I am a Windows Systems Administrator and work for a pretty large corporation Anonymous: I am so very sorry for you... -- Slashdot
Locking processes/users to CPUs in SMP systems
I was just wondering, is it possible to lock a process or user to a specific CPU in an SMP system? Say for example, I had a database and a web server and I wanted to lock each one to a CPU. Or that I only wanted user 'johndoe' to be able to use a second CPU? Thanks in advance. RJ -- em: [EMAIL PROTECTED] Poster: I am a Windows Systems Administrator and work for a pretty large corporation Anonymous: I am so very sorry for you... -- Slashdot