差異處
這裏顯示兩個版本的差異處。
| Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
|
systemd [2017/10/27 22:45] jz |
systemd [2017/12/03 18:08] (目前版本) jz |
||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== Systemd ====== | ====== Systemd ====== | ||
| - | ===== boot time analyze ===== | + | ===== Suspenad and hibernate ===== |
| + | <code bash> | ||
| + | systemctl suspend | ||
| + | systemctl hibernate | ||
| + | |||
| + | pmi action suspend | ||
| + | pmi action hibernate | ||
| + | </code> | ||
| + | |||
| + | ===== Boot time analyze ===== | ||
| ==== systemd-analyze ==== | ==== systemd-analyze ==== | ||
| - | <code> | + | <code bash> |
| systemd-analyze | systemd-analyze | ||
| systemd-analyze blame | systemd-analyze blame | ||
| 行 11: | 行 20: | ||
| ==== systemd-bootchart ==== | ==== systemd-bootchart ==== | ||
| - | <code> | + | <code bash> |
| systemd-bootchart | systemd-bootchart | ||
| </code> | </code> | ||
| 行 19: | 行 28: | ||
| [[https://wiki.archlinux.org/index.php/Improving_performance/Boot_process#Analyzing_the_boot_process]] | [[https://wiki.archlinux.org/index.php/Improving_performance/Boot_process#Analyzing_the_boot_process]] | ||
| - | ===== process ===== | + | ===== Process ===== |
| - | ==== process info ==== | + | ==== Process info ==== |
| - | <code> | + | <code bash> |
| systemd-cgls | systemd-cgls | ||
| pstree | pstree | ||
| </code> | </code> | ||
| - | ==== kill process ==== | + | ==== Kill process ==== |
| - | <code> | + | <code bash> |
| # SIGTERM | # SIGTERM | ||
| systemctl kill service-name.service | systemctl kill service-name.service | ||
