欢迎 on it road

为 udev 服务永久设置 children-max(需要重启)

要永久更改,我们需要修改 GRUB2 配置文件。
请注意,这需要重新启动系统。

  1. 备份 GRUB2 配置文件 /boot/grub2/grub.cfg 。

2.通过添加'udev.children-max=[value]'编辑'linux16'行

从:

linux16 /vmlinuz-4.1.12-###.el7uek.x86_64 root=UUID=### ro crashkernel=auto rhgb quiet

到:

linux16 /vmlinuz-4.1.12-###.el7uek.x86_64 root=UUID=### ro crashkernel=auto rhgb quiet udev.children-max=[value]
  1. 保存文件 /boot/grub2/grub.cfg 并退出。

  2. 重新启动服务器以应用新值。

# shutdown -r now
/boot/grub2/grub.cfg | grep linux16
如何在 CentOS/RHEL 7 中为 udev 服务设置 children-max

这篇文章将概述在 CentOS/RHEL 7 中临时和永久设置 children-max 的步骤。

为 udev 服务临时设置 children-max

临时更改children-max值,无需重新启动:

# systemctl status systemd-udevd.service
...
  Status: "Processing with ## children at max"   <--- 查看当前值
# udevadm control --children-max=[new value]
# systemctl status systemd-udevd.service
...
  Status: "Processing with ## children at max"   <--- 查看新值
日期:2020-09-17 00:13:52 来源:oir作者:oir