본문 바로가기

카테고리 없음

Centos 7 RT real time tunning

$vim /etc/default/grub


GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="console"

GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb nohz=on nohz_full=1-3 intel_pstate=disable nosoftlockup"

GRUB_DISABLE_RECOVERY="true"

GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT:+$GRUB_CMDLINE_LINUX_DEFAULT }\$tuned_params"

GRUB_INITRD_OVERLAY="${GRUB_INITRD_OVERLAY:+$GRUB_INITRD_OVERLAY }\$tuned_initrd"


%vim /etc/tuned/realtime-variables.conf

                                                             

isolated_cores=1-3


$tuned-adm profile realtime

$grub2-mkconfig  -o /boot/efi/EFI/centos/grub.cfg
$grub2-mkconfig -o /etc/grub2.cfg
$reboot

$cat /proc/cmdline | grep isolcpus


$ cat /proc/cmdline

BOOT_IMAGE=/vmlinuz-3.10.0-693.21.1.rt56.639.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb nohz=on nohz_full=1-3 intel_pstate=disable nosoftlockup isolcpus=1-3 intel_pstate=disable nosoftlockup skew_tick=1



$taskset -c 1 ./bin/main