[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs
[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
howtos:hardware:processor_affinity [2013/01/13 18:10 (UTC)] – [Taskset] hazel | howtos:hardware:processor_affinity [2013/01/13 18:12 (UTC)] (current) – [Taskset] hazel | ||
---|---|---|---|
Line 28: | Line 28: | ||
- | Slackware has a tool for setting the processor affinity for a certain task or process. It is called "'' | + | Slackware has a tool for setting the processor affinity for a certain task or process. It is called "'' |
< | < | ||
Line 38: | Line 38: | ||
0xffffffff means all processors (#0 through #31) | 0xffffffff means all processors (#0 through #31) | ||
</ | </ | ||
- | Luckily you can use human-readable numbers instead of a bitmask if you add the " | + | Luckily you can use human-readable numbers instead of a bitmask if you add the " |
Examples: | Examples: | ||
Line 47: | Line 47: | ||
</ | </ | ||
$ taskset -cp 1 1337 | $ taskset -cp 1 1337 | ||
- | </ | + | </ |
* To start a new process with a fixed CPU affinity, you omit the " | * To start a new process with a fixed CPU affinity, you omit the " | ||
$ taskset -c 3 java -Xmx1024M -jar minecraft_server.jar nogui | $ taskset -c 3 java -Xmx1024M -jar minecraft_server.jar nogui |