Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [taskset]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

How do I enforce all commands (including many parrallel commands) in a script to run on a specifc few cores?

I'm trying to write at the beginning of my script some code that will ensure every command inside the script is run on just a few specific cores. even if many commands are run in multiple parallels ...
0
votes
0answers
20 views

Running Dhrystone to characterize a CPU

I am running Dhrystone workload to characterize a CPU. Unfortunately, I have this error. taskset: failed to set 11986's affinity: Invalid argument. May I have some assistance please? touch /data/...
-1
votes
1answer
114 views

Using CPU affinity with taskset to speed up Node.js computation, blocked for extended chunks of time

I'm running online servers for a physics-based game with a backend in Node.js. Currently, the server can handle 10 games/worlds at a time before the next tick needs to be executed. With this in mind, ...
1
vote
1answer
43 views

What does the CPU consumption in top mean when a CPU is assigned to a single process?

Being on Linux I have "CPUAffinity= 0 1 3" set in system.conf. I also use "taskset -cp 2 $pid" to assign a CPU to a single process. But what does the CPU consumption for the process in top now mean? ...
1
vote
1answer
3k views

CPU reservation and affinity using taskset and isolcpus kernel parameter with JVM?

We need for the JVM to reserve a set number of CPUs. Following my research we can use taskset along with the kernel parameter isolcpus=<CPU_ID> so that no other process uses this CPU. A few ...
2
votes
1answer
762 views

How can taskset create pid when the program is not running yet?

I want to limit the processing capability to only a single core in my machine, so I found out taskset can help to set a single core, say core 0, as the following (Courtesy to this answer): taskset -c ...
1
vote
1answer
93 views

Who and where is settled affinity mask per process?

I have a process, shell. It's affinity mask is 1 (I have 3 CPUs) On redundant machine (almost mirror - it is 7 - ALL CPUs) Who is deciding which mask to set or where it is configured? [root@h1-nms ~]#...
2
votes
0answers
657 views

Use of cores with `isolcpus` and `cpuset` TOGETHER

I work with a Red Hat Enterprise Linux Server release 6.9 (Santiago) (I don't manage it). In the GRUB config file we have, let's say, isolcpus=2-32 (out of 36 cores). I also have a cgroup with cpuset=...
2
votes
1answer
2k views

Using taskset to set processor affinity

I have the following code in a bash script: echo "bash pid => $$"; echo "processor affinity before => $(taskset -p $$)" taskset -cp ${AN_INTEGER} $$ echo "processor affinity after => $(...