Questions tagged [taskset]
22 questions
0
votes
1 answer
wait for process completion created with taskset
I am using taskset according to linux manual page in order to run a very processing intense task only on specific cores.
The taskset is encapsulated in a loop. Each time a new target directory is selected and the task is beeing run. Running the…

julian bechtold
- 1,875
- 2
- 19
- 49
0
votes
1 answer
Assigning taskset to specific Python process (without using PID)
So I have a Python3 process that needs to be assigned to the 4th CPU core (CPU Affinity 3), currently it's used in 0-2. I added isolcpus=3 to the cmdline.txt in boot and I type the following in terminal:
sudo taskset -cp 3 PID
The thing is,…

Pissed Off Banker
- 105
- 6
0
votes
0 answers
Results of KPCA are different for different number of CPUs the code runs on
I am using KPCA function of kernlab package for dimensionality reduction, I am using rpy2 to call the API from python.
The problem is I am getting different output for same data when running the my python script on different number of CPU cores each…

pranay25
- 11
- 4
0
votes
2 answers
ksh cmd one-liner to grep for several PIDs at once
I got a bunch of processes that I need to check CPU affinity for, so I got this one liner:
for i in `ps -Fae | grep proc_name| awk '{print $2}'`; do taskset -acp $i;done
but I have a problem, taskset shows all the child processes' pid too so I get a…

D.Zou
- 761
- 8
- 25
0
votes
1 answer
It is possible to pin dockerd and containerd to core 0 using taskset or systemd CPUAffinity=0
I'm trying to see if I can pin dockerd and containerd to core 0 on a Linux server, leaving all the other cores for the containers (using cpuset). So I used this on my systemd unit:
[Service]
CPUAffinity=0
I noticed than the children processes also…

josegts
- 107
- 1
- 13
0
votes
1 answer
Making a timer go off at a specific time in a C++ process for purposes of synchronizing two processes
I have two processes in C++ (these are not parent and child processes). Each has been pinned to a specific core using taskset. So, for instance, process 1 is pinned to core 0 and process 2 is pinned to core 1. I want to start running them at the…

fraiser
- 929
- 12
- 28
0
votes
1 answer
Processor affinity on Linux using taskset
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 => $(taskset -p $$)"
I get this output:
processor affinity before =>…

Alexander Mills
- 90,741
- 139
- 482
- 817