PID of RT task is known before running RT process ?

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

 



Hello,

In http://linuxrealtime.org/index.php/Improving_the_Real-Time_Properties#chapter331
there is information how to isolate rt and non rt tasks.
It says:
"
Now it is possible to run a real-time task in the real-time partition:
1. $ echo pid_of_task > /sys/fs/cgroup/cpusets/rt/tasks
   Since we have an RT partition with more then one CPU we might want
to      choose a specific CPU to run on.
2. Change the task affinity to only include CPU3 in the real-time
partition: $       taskset -p 0x8 pid_of_task
...
3. This is how the non-isolated benchmark was executed:
    $ ./stress -d 4 --hdd-bytes 20M -c 4 -i 4 -m 4 --vm-bytes 15M &
    $ ./cyclictest -m -p 99 -l 300000 -q;
"

If only in step 3 we run the RT threads (in cyclictest), how can we
know aleady in step 1, and step 2, what is the pid_of_task ?

Thank you,
Ran



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux