... | ... | @@ -2,9 +2,8 @@ This configuration is meant to be used on systems using the cpu isolator module |
|
|
|
|
|
## Figuring out the number of cores you have
|
|
|
```
|
|
|
$ sudo apt -y install coreutils #Install coreutils for nproc
|
|
|
$ nproc --all
|
|
|
8
|
|
|
sudo apt -y install coreutils #Install coreutils for nproc
|
|
|
nproc --all
|
|
|
```
|
|
|
> :warning: Make sure you have disabled hyper threading or you will see double the available cores
|
|
|
|
... | ... | @@ -14,7 +13,7 @@ Because we have 8 CPUs, this example will isolate the top 6 of them, some cores |
|
|
We can update the Linux boot cmdline options by updating the grub configuration.
|
|
|
|
|
|
```
|
|
|
$ sudo vim /etc/default/grub
|
|
|
sudo vim /etc/default/grub
|
|
|
```
|
|
|
|
|
|
Uncomment or add the line below (example for 8 cores/models). The list is inclusive so cores 2,3,4,5,6,7 are going to be isolated. If you are only going to run a couple models, you can isolate fewer cores to save resources for other userspace processes. ***You must isolate one core for each model you want to run simultaneously***.
|
... | ... | |