1. ip addr | grep ppp1 | grep -v inet | wc --lines

查看拨号并排序

ip addr | grep ppp1 | grep inet -n | sort -k6

sudo -s不需要输入密码设置

sudo echo "singlo    ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers

更改mtu

sed -i "s/1412/1492/g" `grep 1412 -rl /etc/ppp/peers`

格式化问题sapparently in use by the system; will not make a filesystem here!

dmsetup status #查看硬盘状态
dmsetup remove_all #取消所有挂载

CPU性能设置

1.查看CPU当前性能模式

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

2.查看当前CPU频率:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

3.设置所有CPU为性能模式

cpupower -c all frequency-set -g performanc

4.查看各个核心的频率

watch -n 1 sudo cpupower monitor

Dell 设置ControlledTurbo

  1. 设置 ControlledTurbo 以启用:
racadm set bios.procsettings.controlledturbo Enabled
  1. 使用 jobqueue 命令创建提交和主机重新启动作业:
racadm jobqueue create BIOS.Setup.1-1 -r pwrcycle -s TIME_NOW -e TIME_NA
  1. 重新启动服务器并让 CSIOR 运行以使设置生效。