What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [taskset]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
20 views

what happens to processes whose process affinity is set to a disabled processor?

I'm running Centos7 on an hyper-threaded Ivy Bridge machine with 40 cores and 80 threads. The following for loop shows me the processor affinity for all processes with pids <= 80: for pid in $(ps -...
0
votes
1answer
24 views

What does a taskset -p pid result of “e” mean?

I found the pid of my process. I ran taskset on the pid: $ taskset -p 2059 pid 2059's current affinity mask: e What does this affinity mask value "e" mean? I do not see anything about the possible ...
0
votes
0answers
8 views

Image processing time shows periodic peaks

I have an ARM64 single-board computer with RK3399 CPU running Ubuntu 18. I wrote a Python script that acquires images from a USB camera and feeds them to a Caffe neural network. I measured the ...
0
votes
1answer
113 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
1answer
233 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
53 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
5k 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
1k 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
125 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
779 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 => $(...