Re: SMP scheduling and run queue balancing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 6/17/07, Muhammad Tayseer Alquoatli <idoit.ief@xxxxxxxxx> wrote:
Hi all:
Lets say i have an SMP machine with 4 processor running Linux 2.6, and
i have 6 instances of an RT critical processes
If I set the smp process affinity of those 6 processes to the first 3
processors (two for each processor), run them as an RT processes with
FIFO sched policy, and left the forth processor to handle other
non-critical tasks
in short if i do:
#taskset 0x01 chrt -f 50 critical_program &
#taskset 0x01 chrt -f 50 critical_program &
#taskset 0x02 chrt -f 50 critical_program &
#taskset 0x02 chrt -f 50 critical_program &
#taskset 0x04 chrt -f 50 critical_program &
#taskset 0x04 chrt -f 50 critical_program &

As i've read that Linux will balance the length of run queue of all
processors, but here i have three processors that are not going to
handle any process
the question is: do i have to manually set the smp affinity of all
other non-critical tasks to the forth processor or Linux will do this
automatically ?

Linux will not set the smp affinity of all non-critical process. Its just balances the queue and If flow of non-critical tasks increases it may pull some non-crit tasks to first 3 processors. It would be safe to set the smp_affinity manually.
You can use cpuset for that. please refer Documentation/cpuset.txt 

Thanks

--
Muhammad Tayseer Alquoatli

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




--
============================
Thanks
  Srinivas DS
===========================

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux