Tôi còn khá mới với Linux và gần đây tôi rất vui khi cài đặt fedora 16 trên máy tính xách tay Acer của tôi, điều đó thật tuyệt vời khi mới bắt đầu, nhưng bây giờ việc khởi động trở nên rất chậm trễ. i Google nó và chạy lệnh systemd-analyze blame
, kết quả là dưới đây:
11454ms fedora-loadmodules.service
8697ms fedora-readonly.service
6334ms fedora-wait-storage.service
3740ms systemd-binfmt.service
3407ms systemd-vconsole-setup.service
3191ms fedora-storage-init.service
2956ms udev-settle.service
2812ms media.mount
2750ms dev-mqueue.mount
2728ms dev-hugepages.mount
2715ms remount-rootfs.service
2714ms sys-kernel-security.mount
2698ms sys-kernel-debug.mount
2348ms proc-sys-fs-binfmt_misc.mount
2317ms udev-trigger.service
2301ms udev.service
1838ms sys-kernel-config.mount
1598ms mdmonitor-takeover.service
1490ms systemd-remount-api-vfs.service
841ms systemd-sysctl.service
560ms NetworkManager.service
537ms fedora-storage-init-late.service
403ms rsyslog.service
393ms chronyd.service
378ms console-kit-log-system-start.service
360ms avahi-daemon.service
329ms iptables.service
328ms ip6tables.service
305ms systemd-readahead-collect.service
304ms mcelog.service
300ms auditd.service
280ms abrt-vmcore.service
..... vv ....
Là một người dùng trung bình (thường chỉ lướt internet và đọc email), tôi nên tối ưu hóa các dịch vụ khởi động của mình như thế nào để tăng tốc thời gian khởi động?
Ồ cảm ơn nhé. 'grep systemd / var / log / syslog' không hoạt động, nói không có tập tin đó, tôi thử 'grep systemd /var/log/boot.log', đầu ra ở dưới: systemd-fsck [961]: / nhà phát triển dev chạy 'systemd-phân tích cốt truyện> lô.svg && eog lô.svg', đồ thị rất hay và tôi thấy fedora-Storage-init.service và fedora-readonly.service mất một thanh màu đỏ dài. Làm thế nào tôi nên cải thiện chúng?
—
Bob Cao
blame
lệnh chỉ nói bao lâu mỗi quá trình mất, nó không hiển thị những gì thời gian tổng thể là gì. Có hai điều cần xem xét, đầu tiêngrep systemd /var/log/syslog
và nó sẽ cung cấp thời gian tổng thể. Cũng làmsystemd-analyze plot > plot.svg && eog plot.svg
để có được một biểu đồ đẹp hiển thị trình tự. systemd thực hiện song song rất nhiều vì vậy điều này sẽ giúp cô lập những gì đang chờ đợi những gì.