日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

arch linux界面优化,Archlinux 启动优化

發布時間:2023/12/3 linux 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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 启动优化的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。