Commands to Configure System Process Threads to Specific CPUs
# View the CPU core bound to the current process, dynamically modify during process execution
taskset -p pid
# Specify which CPU IDs the current process can use, use during command execution
taskset -c 0,1 cmd
# View the correspondence between system CPUs (logical cores) and cores (physical cores)
lscpu -e
# Check the process and its thread IDs along with the bound CPU IDs
ps -T -p 3913239
# Change the system to performance mode, default is powersave
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
# View the CPUs used by the process and its threads
pidstat -t -p 3932962
# View the thread IDs under the process
ls /proc/3949926/task
# Configure hugepages
echo 2048 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages