Skip to main content

Questions tagged [taskset]

0votes
0answers
14views

CPU affinity not following cpuset

When I run taskset -p <pid> of a process I am getting something like this back: # taskset -p 1078 pid 1078's current affinity mask: 3f And it keeps changing what it reports, sometimes it's 5f, ...
Zitrax's user avatar
1vote
1answer
53views
+100

isolcpus kernel option appears to break taskset

I have a laptop with an Intel Core i7-12700H CPU, running Ubuntu 24.04 LTS. This CPU has 6 “performance“ cores, each one running 2 threads, and 8 “efficient” cores. Most of the time, the “efficient” ...
user2233709's user avatar
0votes
1answer
39views

How to properly use taskset in a bash file when launching a program? [closed]

My bash script is as follows: #!/bin/bash sudo taskset 1 ./program & When running it does nothing. I am able to run the software normally with ./program. I am attempting to do the behavior of &...
WorstCoder4Ever's user avatar
0votes
2answers
2kviews

Restrict all already running processes to a range of CPU cores

I've got an AMD 7950X3D CPU which has 32 total logical cores, 16 of which (0-15) have access to extra cache. To optimize my system for gaming while multitasking I want to run Steam and all the ...
Dmitri Ranfft's user avatar
1vote
0answers
94views

why is process running on cpu core that is disabled in affinity mask

when I run taskset -p 242306 I got following output 3ffffffffffc000000000000000000000000000000000000000000038000000 sorry for the long string, there are 256 cores on the box. used taskset -c -p ...
Lei Yu's user avatar
4votes
1answer
2kviews

Set affinity of a process using TASKSET or sched_setaffinity() to a processor core isolated using CPUSET

First, let me give a background of what I am trying to achieve. I know how to isolate a particular CPU using boot param (isolcpu and nohz_full; the housekeeping subsystem setup). But as per my ...
Abhishek Ghosh's user avatar
2votes
0answers
323views

JVM only uses 4 cores

I have a processor-intensive Java program and I want it to use all 8 available cores on the machine. I've run taskset and it reports the mask to be: pid 5897's current affinity mask: ff But in top (...
SandTh's user avatar
2votes
0answers
144views

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 -...
Richard Gostanian's user avatar
0votes
1answer
206views

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 ...
Scott Skiles's user avatar
0votes
1answer
686views

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 ...
Giles's user avatar
0votes
1answer
660views

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, ...
DonutGaz's user avatar
1vote
1answer
109views

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? ...
affincpu's user avatar
2votes
1answer
10kviews

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 ...
danidar's user avatar
4votes
1answer
2kviews

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 ...
Katherine's user avatar
1vote
1answer
273views

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 ~]#...
ALZ's user avatar
  • 961

153050per page
close