|
|
## CPU Isolation (New for Debian 11)
|
|
|
In order to be able to load and unload models without crashing your system, the cores you plan using for real time models must be isolated. This is done by editing the kernel's command line parameters.
|
|
|
|
|
|
```
|
|
|
$ sudo apt -y install coreutils #Install coreutils for nproc
|
|
|
$ nproc --all
|
|
|
8
|
|
|
```
|
|
|
We have 8 CPUs, so we will isolate the top 7 of them. To do so add the cmdline option and update your grub configuration.
|
|
|
|
|
|
```
|
|
|
$ sudo vim /etc/default/grub
|
|
|
```
|
|
|
|
|
|
Uncomment or add the line (example for 8 cores):
|
|
|
```
|
|
|
GRUB_CMDLINE_LINUX="isolcpus=1-7"
|
|
|
```
|
|
|
|
|
|
Update your grub config and reboot.
|
|
|
```
|
|
|
sudo update-grub
|
|
|
sudo reboot
|
|
|
```
|
|
|
|
|
|
Now cores 1-7 have been isolated, so we can load/unload modules on them. |
|
|
\ No newline at end of file |