Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sddm-helper and high memory usage
Date: Wed, 20 May 2020 15:56:38
Message-Id: cc7459c5-5297-e9b6-b78e-a0b7cbe95f74@gmail.com
In Reply to: Re: [gentoo-user] sddm-helper and high memory usage by "J. Roeleveld"
1 J. Roeleveld wrote:
2 >
3 > Dale,
4 >
5 > The few times I have issues with "sddm-helper" is when I resume my laptop from
6 > hibernate. (Not always, but occasionally)
7 > The issue I see is 100% CPU-usage and a black X-display. I can switch to
8 > console (CTRL+ALT+F1), login as root and kill the offending sddm-helper.
9 > It gets restarted automatically and I see no issue.
10 >
11 > Do you tend to lock your screen a lot? As it might be related to screensavers.
12 > (I have a simple static lock-screen, nothing remotely fancy)
13 >
14 > Also, you can try killing "kill -9 sddm-helper" when it goes up and see what
15 > happens next.
16 >
17 > Is there anything in the sddm-logs?
18 > Mine, for some reason, writes to /var/log/sddm.log
19 >
20 > Do you have anything special in your Xsession files and/or profiles (incl.
21 > bash_profile and bashrc) that is non-default?
22 >
23 > Which login-theme do you use?
24 >
25 > --
26 > Joost
27
28 Well, I didn't know I could kill that thing.  I been logging out and
29 back in which annoys the stuffing out of me.  I have to close three
30 browsers, several file managers plus whatever else I am doing before I
31 can logout.  Then I have to reopen all that when I log back in.  On top
32 of that, I have to wait for a download to stop as well.  Yea, it's
33 annoying, putting it mildly.  lol  I thought if I killed it, it would
34 take the whole GUI thingy with it .  Since it is still chewing away,
35 makes me think about the Pacman days, I'll kill that thing in a few
36 minutes, after closing important stuff first just in case. 
37
38 I got the last several lines of sddm.log.  Here it is complete with a WW
39 in there, about three lines from the bottom. 
40
41
42 [01:32:50.474] (II) DAEMON: Greeter session started successfully
43 [01:32:50.499] (II) DAEMON: Message received from greeter: Connect
44 [01:32:57.872] (II) DAEMON: Message received from greeter: Login
45 [01:32:57.872] (II) DAEMON: Reading from
46 "/usr/share/xsessions/plasma.desktop"
47 [01:32:57.872] (II) DAEMON: Reading from
48 "/usr/share/xsessions/plasma.desktop"
49 [01:32:57.872] (II) DAEMON: Session
50 "/usr/share/xsessions/plasma.desktop" selected, command:
51 "/usr/bin/startplasma-x11"
52 [01:32:57.948] (II) HELPER: [PAM] Starting...
53 [01:32:57.948] (II) HELPER: [PAM] Authenticating...
54 [01:32:57.991] (II) HELPER: [PAM] Preparing to converse...
55 [01:32:57.991] (II) HELPER: [PAM] Conversation with 1 messages
56 [01:32:57.997] (II) HELPER: [PAM] returning.
57 [01:32:58.016] (II) DAEMON: Authenticated successfully
58 [01:32:58.152] (II) HELPER: [PAM] Closing session
59 [01:32:58.153] (II) HELPER: [PAM] Ended.
60 [01:32:58.153] (II) DAEMON: Auth: sddm-helper exited successfully
61 [01:32:58.153] (II) DAEMON: Greeter stopped.
62 [01:32:58.225] (II) HELPER: Starting: "/usr/share/sddm/scripts/Xsession
63 \"/usr/bin/startplasma-x11\""
64 [01:32:58.225] (WW) HELPER: Could not open stderr to
65 "/home/dale/.local/share/sddm/xorg-session.log"
66 [01:32:58.225] (II) HELPER: Adding cookie to "/home/dale/.Xauthority"
67 [01:32:58.245] (II) DAEMON: Session started
68 root@fireball / #
69
70
71
72 So off I go to check into that file.  I get this and change permissions
73 for the second ls.
74
75
76 root@fireball / # tail /home/dale/.local/share/sddm/xorg-session.log
77 root@fireball / # ls -al /home/dale/.local/share/sddm/xorg-session.log
78 -rw------- 1 root root 0 Mar  4  2019
79 /home/dale/.local/share/sddm/xorg-session.log
80 root@fireball / # ls -al /home/dale/.local/share/sddm/xorg-session.log
81 -rw------- 1 dale users 0 Mar  4  2019
82 /home/dale/.local/share/sddm/xorg-session.log
83 root@fireball / #
84
85
86 As you can see, the first time it was owned by root, and is empty, which
87 I bet requires it to be dale:user so I changed it.  I bet it is building
88 a log and keeping it in memory because it can't access the file to write
89 it.  I'm going to logout and see what it does.  I'll finish when I get
90 back.  :-D
91
92 OK.  Logged back in and now I get this in the sddm.log.
93
94
95 [10:45:28.213] (II) HELPER: [PAM] Starting...
96 [10:45:28.213] (II) HELPER: [PAM] Authenticating...
97 [10:45:28.253] (II) HELPER: [PAM] Preparing to converse...
98 [10:45:28.253] (II) HELPER: [PAM] Conversation with 1 messages
99 [10:45:28.259] (II) HELPER: [PAM] returning.
100 [10:45:28.287] (II) DAEMON: Authenticated successfully
101 [10:45:28.391] (II) HELPER: Starting: "/usr/share/sddm/scripts/Xsession
102 \"/usr/bin/startplasma-x11\""
103 [10:45:28.393] (II) HELPER: Adding cookie to "/home/dale/.Xauthority"
104 [10:45:28.400] (II) DAEMON: Session started
105 [10:45:28.416] (II) HELPER: [PAM] Closing session
106 [10:45:28.417] (II) HELPER: [PAM] Ended.
107 [10:45:28.418] (II) DAEMON: Auth: sddm-helper exited successfully
108 [10:45:28.418] (II) DAEMON: Greeter stopped.
109 root@fireball / #
110
111
112 I don't see any WW lines there.  If I scroll up I can see the original I
113 posted above but no WW since.  Can we all say a prayer now????  
114
115 I bet when I switched to sddm, it didn't change the permissions like it
116 should and that threw a wrench in the gears.  I'll know for sure in a
117 few hours.  It chewed through memory real fast after the last login. 
118 Within just a very few hours, it was over 4GBs.  It seems to stop itself
119 around that number tho.  I'm not sure what to think about that tho.
120
121 I'll post back in a bit.  Give it time to eat some Pacman dots.  I think
122 you got it tho.  I really hope that was it. 
123
124 Dale
125
126 :-)  :-) 
127
128 P. S. Made eye Doctor appt today.  Maybe this old goat will see better
129 in a couple months when new glasses come in.  O_O

Replies

Subject Author
Re: [gentoo-user] sddm-helper and high memory usage "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] sddm-helper and high memory usage Peter Humphrey <peter@××××××××××××.uk>