C++Guns – RoboBlog

24.07.2012

CPU Kern bestimmen auf welchem das Programm laufen soll

Filed under: Allgemein — Thomas @ 20:07

man taskset

The Linux scheduler will honor the given CPU affinity and the process will not run on any other CPUs.

0x00000001
is processor #0

0x00000003
is processors #0 and #1

0xFFFFFFFF
is all processors (#0 through #31)
USAGE
The default behavior is to run a new command with a given affinity mask:
taskset mask command [arguments]

-c, --cpu-list
Specify a numerical list of processors instead of a bitmask. The numbers are separated by commas and may include ranges. For example: 0,5,7,9-11.

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

You must be logged in to post a comment.

Powered by WordPress