Hi, I have a question about using taskset.
For my Ubuntu 9.04 x86_64, I am using Core 2 Quad box. I set the default affinity to CPU 0, by doing the following:
Edit: /etc/rc.d/rc.sysinit
Addline: /bin/taskset -p 1 0
(By the way, 0 for CPU 0, correct? I checked via htop and seemed to be correct)
That has been working fine for me, but from searching the web, I found some suggestion about adding an additional line:
/bin/taskset -p 1 $$
What does that line do?
I checked the man page of taskset and some references for regular expression, and I couldn't find the explanation about the $ character.
Any pointer would be appreciated.
Bookmarks