Ubuntu 20.04 LTS에서 대기모드(hibernate) 금지하기.
Ubuntu 20.04 LTS 에 GPU 서버 구성후에, 일정 시간 지나면 서버가 대기상태로 들어가는 현상이 발생했다. 이 현상은 Ubuntu 18.04에서는 없었던 현상이다.
먼저, 아래처럼 동면(?)상태로 들어가는 서비스를 확인 해 본다.
mlearn@mlearn6:~$ sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target [sudo] password for mlearn: sleep.target - Sleep Loaded: loaded (/lib/systemd/system/sleep.target; static; vendor preset: enabled) Active: inactive (dead) since Thu 2021-12-23 08:21:42 UTC; 1min 41s ago Docs: man:systemd.special(7) Dec 23 07:30:04 mlearn6 systemd[1]: Reached target Sleep. Dec 23 08:21:42 mlearn6 systemd[1]: Stopped target Sleep. suspend.target - Suspend Loaded: loaded (/lib/systemd/system/suspend.target; static; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd.special(7) Dec 23 06:39:33 mlearn6 systemd[1]: Reached target Suspend. Dec 23 06:39:33 mlearn6 systemd[1]: Stopped target Suspend. Dec 23 07:09:35 mlearn6 systemd[1]: Reached target Suspend. Dec 23 07:09:35 mlearn6 systemd[1]: Stopped target Suspend. Dec 23 08:21:42 mlearn6 systemd[1]: Reached target Suspend. Dec 23 08:21:42 mlearn6 systemd[1]: Stopped target Suspend. hibernate.target - Hibernate Loaded: loaded (/lib/systemd/system/hibernate.target; static; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd.special(7) hybrid-sleep.target - Hybrid Suspend+Hibernate Loaded: loaded (/lib/systemd/system/hybrid-sleep.target; static; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd.special(7)