arch linux界面优化,Archlinux 启动优化
內核參數優化
修改/boot/grub/grub.cfg? 添加
libahci.ignore_sss=1 #禁用sss
raid=noautodetect
ipv6.disable=1 #禁用ipv6
nomodeset #不使用kms,
plymouth.enable=0 ?#禁用plymouth
rootfstype=ext4 #root分區類型
selinux=0#禁用selinux 完成后:
linux /vmlinuz-linux root=UUID=abed89cb-4fef-4166-93c8-907b20709807 ro libahci.ignore_sss=1
raid=noautodetect ipv6.disable=1 nomodeset plymouth.enable=0 rootfstype=ext4 selinux=0 quiet
你也可以寫入/etc/default/grub 中
GRUB_CMDLINE_LINUX="libahci.ignore_sss=1 raid=noautodetect ipv6.disable=1 nomodeset plymouth.enable=0 rootfstype=ext4 selinux=0"
執行 grub-mkconfig -o /boot/grub/grub.cfg 重新生成grub.cfg文件。
優化fstab
/dev/sda3 ? /var??????? ext4??????? rw,relatime??? 0 1
掛載磁盤參數有如下幾種時間屬性:
ctime:change time
mtime:modify time
atime:access time,影響磁盤性能,每次訪問文件都會更新記錄。
relatime:為了解決atime的一些問題而引入。
mtime和ctime的區別在于,只有修改了文件的內容,才會更新文件的mtime,而對文件更名,修改文件的屬主等操作,只會更新ctime。
只有當mtime比atime更新的時候,才會更新atime。
系統服務優化
盡量減少系統服務的啟動數量。
使用systemctl disable 不用的服務,保留必要的服務。
systemctl disable mysqld.service
#禁用藍牙服務
systemctl disable bluetooth.service
#禁用ipv6 iptables
systemctl disable ip6tables.service
#禁用打印服務
systemctl disable cups.service
使用systemctl mask? 不再加載服務單元。
systemctl mask remote-fs.target
systemctl mask sys-kernel-config.mount
systemctl mask sys-kernel-debug.mount
網絡參數優化
wip
內存使用策略優化
wip
總結
以上是生活随笔為你收集整理的arch linux界面优化,Archlinux 启动优化的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 玉的别称和雅称
- 下一篇: 服务器windows模拟linux环境,