Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Suspend-to-ram freezing tasks failed
Date: Wed, 24 Jun 2020 17:02:42
Message-Id: 5614023.31tnzDBltd@lenovo.localdomain
In Reply to: [gentoo-user] Suspend-to-ram freezing tasks failed by "Серега Филатов"
1 On Wednesday, 24 June 2020 16:30:25 BST Серега Филатов wrote:
2 > Hello. I am upset about one issue that pops up from time to time which
3 > I see now even more frequently than before. This has literally become
4 > a pain in some place for me.
5 > The issue is simple: gentoo, linux kernel 4.19.97, regular asus
6 > laptop. I'm doing my business, closing the lid. I expect it to suspend
7 > and stay in that mode.
8 > And my laptop doesn't.
9 >
10 > Some time ago the reason was mounted sshfs (I see fuse stuff in the
11 > backtrace). Today, as you can see, baloo from KDE. Sometimes I see
12 > "file.so".
13
14 Ahh, yes, the baloo pain ...
15
16 You could configure baloo to only index parts of your filesystem you care to
17 find when running semantic searches. I typically switch it off completely, or
18 only allow it to index a small part of the /home filesystem. If you have it
19 enabled and it indexes not only file names but also content, plus emails and
20 what have you, then it will chew up an inordinate amount of resources.
21
22
23 > When closing the lid it try for 20 seconds and gives up. Then some
24 > time it tries again, always without success. Suddenly it gives up to
25 > suspend and stays in a working state or some weird state when fan
26 > still spinning but slowing down, power light is on and it wakes up
27 > only by power button. It can discharge during the night or I can just
28 > throw it in a bag where it stays awake and become hot.
29
30 Not good! You could lose data like this.
31
32
33 > Is there some way to tweak a kernel to not do that? I've noticed that
34 > it is not only the gentoo or this laptop. I see this on different
35 > hardware and different system (ubuntu specifically). I started to
36 > think if it's a systemd thing because I've started to see it probably
37 > the same time ubuntu switched to systemd.
38 >
39 > Windows have no issues to sleep on the same hardware and suspends every
40 > time.
41 >
42 > Part of dmesg with this message. I closed the lid, power light is on.
43 > After a while I opened it and stroke a power button:
44 >
45 > [ 283.880396] PM: suspend entry (deep)
46 > [ 283.880398] PM: Syncing filesystems ... done.
47 > [ 284.176615] Freezing user space processes ...
48 > [ 304.175823] Freezing of tasks failed after 20.004 seconds (1 tasks
49 > refusing to freeze, wq_busy=0):
50 > [ 304.175864] baloo_file_extr D13184 11112 11111 0x00000004
51 > [ 304.175874] Call Trace:
52 > [ 304.175888] ? __schedule+0x26f/0x720
53 > [ 304.175893] schedule+0x2d/0x80
54 > [ 304.175898] io_schedule+0xd/0x30
55 > [ 304.175904] generic_file_read_iter+0x319/0xa30
56 > [ 304.175910] ? page_cache_tree_insert+0xd0/0xd0
57 > [ 304.175915] __vfs_read+0x11e/0x170
58 > [ 304.175920] vfs_read+0x98/0x150
59 > [ 304.175924] ksys_pread64+0x60/0xa0
60 > [ 304.175929] do_syscall_64+0x43/0xf0
61 > [ 304.175933] entry_SYSCALL_64_after_hwframe+0x44/0xa9
62 > [ 304.175937] RIP: 0033:0x7fae63191733
63 > [ 304.175947] Code: Bad RIP value.
64 > [ 304.175949] RSP: 002b:00007ffd5069d670 EFLAGS: 00000293 ORIG_RAX:
65 > 0000000000000011
66 > [ 304.175953] RAX: ffffffffffffffda RBX: 00005573b13dcff0 RCX:
67 > 00007fae63191733 [ 304.175955] RDX: 0000000000000100 RSI: 00005573b13dd031
68 > RDI: 0000000000000013 [ 304.175956] RBP: 00005573b13dd031 R08:
69 > 0000000000000000 R09: 0000000000000007 [ 304.175958] R10: 0000000002b08e9a
70 > R11: 0000000000000293 R12: 00007ffd5069dac8 [ 304.175960] R13:
71 > 00007ffd5069d7d0 R14: 00000000ffffffff R15: 00007ffd5069d860 [ 304.175987]
72 > OOM killer enabled.
73 > [ 304.175988] Restarting tasks ... done.
74 > [ 304.193089] PM: suspend exit
75 > [ 304.193150] PM: suspend entry (s2idle)
76 > [ 304.193151] PM: Syncing filesystems ... done.
77 > [ 304.626894] Freezing user space processes ... (elapsed 0.002 seconds)
78 > done. [ 304.629577] OOM killer disabled.
79 > [ 304.629578] Freezing remaining freezable tasks ... (elapsed 0.000
80 > seconds) done.
81 > [ 304.630520] Suspending console(s) (use no_console_suspend to debug)
82 > [ 304.631663] wlp2s0: deauthenticating from xx:xx:xx:xx:xx:xx by
83 > local choice (Reason: 3=DEAUTH_LEAVING)
84 > [ 304.640435] sd 0:0:0:0: [sda] Synchronizing SCSI cache
85 > [ 304.640478] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
86 > [ 304.640656] sd 0:0:0:0: [sda] Stopping disk
87 > [ 304.644025] sd 2:0:0:0: [sdb] Stopping disk
88 > [ 305.415243] ACPI: EC: interrupt blocked
89 > [ 751.841563] ACPI: EC: interrupt unblocked
90 > [ 751.983903] hpet1: lost 310 rtc interrupts
91 > [ 751.991105] sd 0:0:0:0: [sda] Starting disk
92 > [ 751.991126] sd 2:0:0:0: [sdb] Starting disk
93 > [ 751.993715] iwlwifi 0000:02:00.0: Applying debug destination
94 > EXTERNAL_DRAM [ 752.124938] iwlwifi 0000:02:00.0: Applying debug
95 > destination EXTERNAL_DRAM [ 752.192844] iwlwifi 0000:02:00.0: FW already
96 > configured (0) - re-configuring [ 752.302228] ata3: SATA link up 6.0 Gbps
97 > (SStatus 133 SControl 300) [ 752.302619] ata1: SATA link up 6.0 Gbps
98 > (SStatus 133 SControl 300) [ 752.306480] ata3.00: configured for UDMA/133
99 > [ 754.031499] ata1.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES)
100 > succeeded [ 754.031504] ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY
101 > FREEZE LOCK) filtered out
102 > [ 754.031508] ata1.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE
103 > CONFIGURATION OVERLAY) filtered out
104 > [ 754.035587] ata1.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES)
105 > succeeded [ 754.035592] ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY
106 > FREEZE LOCK) filtered out
107 > [ 754.035596] ata1.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE
108 > CONFIGURATION OVERLAY) filtered out
109 > [ 754.037029] ata1.00: configured for UDMA/100
110 > [ 754.045288] ata3.00: Enabling discard_zeroes_data
111 > [ 754.046007] OOM killer enabled.
112 > [ 754.046009] Restarting tasks ... done.
113 > [ 754.195279] PM: suspend exit
114
115 You have OOM messages there. It seems your baloo process eats up all your RAM
116 and when the time comes to put the OS to sleep, there is not enough RAM to do
117 so. I don't know if using a swap file or swap partition would help, but
118 controlling how much baloo is indexing will help both in terms of load on the
119 CPU as well as in terms of RAM when awake and RAM when you suspend it.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Suspend-to-ram freezing tasks failed "Серега Филатов" <raxp.worm202@×××××.com>