Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
howtos:hardware:processor_affinity [2013/01/13 18:09 (UTC)]
hazel [Processor affinity]
howtos:hardware:processor_affinity [2013/01/13 18:10 (UTC)]
hazel [Taskset]
Line 48: Line 48:
 $ taskset -cp 1 1337 $ taskset -cp 1 1337
 </​code>​ You may notice the strange order of commandline options and arguments; first come all the options and then follow the argument values in pre-defined order... ''​man taskset(1)''​ is your friend. </​code>​ You may notice the strange order of commandline options and arguments; first come all the options and then follow the argument values in pre-defined order... ''​man taskset(1)''​ is your friend.
-  * To start a new process with a fixed CPU affinity, you omit the "​-p"​ switch and append a commandline, like this real-world example of starting a Minecraft server: <​code>​+  * To start a new process with a fixed CPU affinity, you omit the "​-p"​ switch and append a command line, like this real-world example of starting a Minecraft server: <​code>​
 $ taskset -c 3 java -Xmx1024M -jar minecraft_server.jar nogui $ taskset -c 3 java -Xmx1024M -jar minecraft_server.jar nogui
 </​code>​ which ties the Java process to the 4th CPU in your computer. The effect of this will be //​immediately//​ obvious. </​code>​ which ties the Java process to the 4th CPU in your computer. The effect of this will be //​immediately//​ obvious.

In Other Languages
QR Code
QR Code howtos:hardware:processor_affinity (generated for current page)