Thank you very much, I'll try that! Regards, Konstantyn -----Original Message----- From: jd [mailto:d.javed@free.fr] Sent: Wednesday, February 18, 2004 8:56 AM To: Prokopenko, Konstantyn Cc: kernelnewbies@nl.linux.org Subject: Re: Starting a process on the specific CPU. you have : int sched_setaffinity(pid_t pid, unsigned int len, unsigned long * user_mask_ptr) int sched_getaffinity(pid_t pid, unsigned int len, unsigned long * user_mask_ptr) to bind a process to a specific (or a group) CPU : with a mask. you can find a package (schedutils) to manipulate that on robert love's homepage : http://www.tech9.net/rml/schedutils/ __jd Prokopenko, Konstantyn wrote: > Hi all, > > Does anybody have any experience with assigning a process to a specific CPU? > > I have an AMD quad and I want some of my processes run on a specific CPUs. > Yes, I know, it is an impact on SMP, etc,etc... but it is just experiment. > :) > > There is a vague reference to lockpid() on the Inet, but no indication where > to get that utility. > > Thank you. > > Regards, > Konstantyn > > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/