arch linux界面优化,Archlinux 启动优化
內(nèi)核參數(shù)優(yōu)化
修改/boot/grub/grub.cfg? 添加
libahci.ignore_sss=1 #禁用sss
raid=noautodetect
ipv6.disable=1 #禁用ipv6
nomodeset #不使用kms,
plymouth.enable=0 ?#禁用plymouth
rootfstype=ext4 #root分區(qū)類型
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
你也可以寫(xiě)入/etc/default/grub 中
GRUB_CMDLINE_LINUX="libahci.ignore_sss=1 raid=noautodetect ipv6.disable=1 nomodeset plymouth.enable=0 rootfstype=ext4 selinux=0"
執(zhí)行 grub-mkconfig -o /boot/grub/grub.cfg 重新生成grub.cfg文件。
優(yōu)化fstab
/dev/sda3 ? /var??????? ext4??????? rw,relatime??? 0 1
掛載磁盤(pán)參數(shù)有如下幾種時(shí)間屬性:
ctime:change time
mtime:modify time
atime:access time,影響磁盤(pán)性能,每次訪問(wèn)文件都會(huì)更新記錄。
relatime:為了解決atime的一些問(wèn)題而引入。
mtime和ctime的區(qū)別在于,只有修改了文件的內(nèi)容,才會(huì)更新文件的mtime,而對(duì)文件更名,修改文件的屬主等操作,只會(huì)更新ctime。
只有當(dāng)mtime比atime更新的時(shí)候,才會(huì)更新atime。
系統(tǒng)服務(wù)優(yōu)化
盡量減少系統(tǒng)服務(wù)的啟動(dòng)數(shù)量。
使用systemctl disable 不用的服務(wù),保留必要的服務(wù)。
systemctl disable mysqld.service
#禁用藍(lán)牙服務(wù)
systemctl disable bluetooth.service
#禁用ipv6 iptables
systemctl disable ip6tables.service
#禁用打印服務(wù)
systemctl disable cups.service
使用systemctl mask? 不再加載服務(wù)單元。
systemctl mask remote-fs.target
systemctl mask sys-kernel-config.mount
systemctl mask sys-kernel-debug.mount
網(wǎng)絡(luò)參數(shù)優(yōu)化
wip
內(nèi)存使用策略優(yōu)化
wip
總結(jié)
以上是生活随笔為你收集整理的arch linux界面优化,Archlinux 启动优化的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 玉的别称和雅称
- 下一篇: 服务器windows模拟linux环境,