Skip to content

Commit a35ee3b

Browse files
author
Rob Austin
authored
Update README.md
1 parent 68a0a95 commit a35ee3b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ To control which CPUs a process can use, add -Daffinity.reserved={cpu-mask-in-he
5454

5555
Note: the CPU 0 is reserved for the Operating System, it has to run somewhere.
5656

57+
## isolcpus
58+
59+
Java-Thread-Affinity requires that you first ioslcated some CPU's for its to use.
60+
61+
Once a CPU core is isolated, the Linux scheduler will not use the CPU core to run any user-space processes. The isolated CPUs will not participate in load balancing, and will not have tasks running on them unless explicitly assigned. You can manually assign processes to be run on the isolated CPU cores using taskset.
62+
63+
To isolate the 1st and 3rd CPU cores (CPU numbers start from 0) on your system, add the following to the kernel command line during boot:
64+
65+
isolcpus=1,3
66+
67+
5768
## Acquiring a CPU lock for a thread
5869
You can acquire a lock for a CPU in the following matter
5970

0 commit comments

Comments
 (0)