如果 NFS 处于活动状态,则挂起至 ram 会失败

如果 NFS 处于活动状态,则挂起至 ram 会失败

如果当我挂起到 ram 时进程正在积极使用 NFS,我会得到:

[34174.245400] PM: suspend entry (s2idle)
[34174.261634] Filesystems sync: 0.016 seconds
[34174.261917] Freezing user space processes ... 
[34194.267178] Freezing of tasks failed after 20.005 seconds (1 tasks refusing to freeze, wq_busy=0):
[34194.267527] task:yt-dlp          state:D stack:    0 pid:387124 ppid:289995 flags:0x00004006

但是,如果我首先挂起(CTRL-Z)进程,则一切正常:我不必终止进程或卸载。

为什么?有没有办法告诉 suspend-to-ram 暂停任何遇到冻结问题的进程?

$ uname -a
Linux aspire 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

相关内容