Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] sddm-helper and high memory usage Dale <rdalek1967@×××××.com>