Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #225424 > unrolled thread

Systemd leaves uninterruptible processes

Started byMart van de Wege <mart@vdwege.eu>
First post2020-07-28 18:40 +0200
Last post2020-08-04 10:30 +0200
Articles 12 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Systemd leaves uninterruptible processes Mart van de Wege <mart@vdwege.eu> - 2020-07-28 18:40 +0200
    Re: Systemd leaves uninterruptible processes Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-29 13:10 +0200
      Re: Systemd leaves uninterruptible processes Mart van de Wege <mart@vdwege.eu> - 2020-07-29 14:40 +0200
      Re: Systemd leaves uninterruptible processes Mart van de Wege <mart@vdwege.eu> - 2020-08-01 22:00 +0200
        Re: Systemd leaves uninterruptible processes Andrei POPESCU <andreimpopescu@gmail.com> - 2020-08-02 09:40 +0200
          Re: Systemd leaves uninterruptible processes Mart van de Wege <mart@vdwege.eu> - 2020-08-02 13:50 +0200
            Re: Systemd leaves uninterruptible processes Andrei POPESCU <andreimpopescu@gmail.com> - 2020-08-02 15:00 +0200
              Re: Systemd leaves uninterruptible processes Mart van de Wege <mart@vdwege.eu> - 2020-08-02 16:50 +0200
                Re: Systemd leaves uninterruptible processes <tomas@tuxteam.de> - 2020-08-02 17:30 +0200
                  Re: Systemd leaves uninterruptible processes Celejar <celejar@gmail.com> - 2020-08-02 17:50 +0200
                    Re: Systemd leaves uninterruptible processes Mart van de Wege <mart@vdwege.eu> - 2020-08-02 22:00 +0200
                      Re: Systemd leaves uninterruptible processes Andrei POPESCU <andreimpopescu@gmail.com> - 2020-08-04 10:30 +0200

#225424 — Systemd leaves uninterruptible processes

FromMart van de Wege <mart@vdwege.eu>
Date2020-07-28 18:40 +0200
SubjectSystemd leaves uninterruptible processes
Message-ID<AxANX-5dl-1@gated-at.bofh.it>
Hi,

Since the past month or so, systemd leaves systemd-user-runtime-dir
processes in an uninterruptible state, apparently after cleaning up
after a user sessions exits; I'm running XFCE4 with Lightdm, and thus I
get at least a hanging process trying to stop
user-runtime-dir@117.service, but they also appear after scheduled
cleanups for the 'news' user.

Consequently, my system load increases every day after reboot.

I tried googling, but unfortunately the terms I can come up with only
give generic information. How can I find out why these processes keep
hanging?

(Weirdly, my own user session cleans up perfectly fine)

Mart

-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.

[toc] | [next] | [standalone]


#225478

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2020-07-29 13:10 +0200
Message-ID<AxS89-7sN-7@gated-at.bofh.it>
In reply to#225424

[Multipart message — attachments visible in raw view] — view raw

On Ma, 28 iul 20, 17:32:55, Mart van de Wege wrote:
> Hi,
> 
> Since the past month or so, systemd leaves systemd-user-runtime-dir
> processes in an uninterruptible state, apparently after cleaning up
> after a user sessions exits; I'm running XFCE4 with Lightdm, and thus I
> get at least a hanging process trying to stop
> user-runtime-dir@117.service, but they also appear after scheduled
> cleanups for the 'news' user.

What package / software is using uid 117 (it's not in the default 
/etc/passwd)?
 
> Consequently, my system load increases every day after reboot.
> 
> I tried googling, but unfortunately the terms I can come up with only
> give generic information. How can I find out why these processes keep
> hanging?

Which processes would that be?

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [next] | [standalone]


#225487

FromMart van de Wege <mart@vdwege.eu>
Date2020-07-29 14:40 +0200
Message-ID<AxTxg-8bz-7@gated-at.bofh.it>
In reply to#225478
On Wed, 2020-07-29 at 13:53 +0300, Andrei POPESCU wrote:
> On Ma, 28 iul 20, 17:32:55, Mart van de Wege wrote:
> > Hi,
> > 
> > Since the past month or so, systemd leaves systemd-user-runtime-dir
> > processes in an uninterruptible state, apparently after cleaning up
> > after a user sessions exits; I'm running XFCE4 with Lightdm, and
> > thus I
> > get at least a hanging process trying to stop
> > user-runtime-dir@117.service, but they also appear after scheduled
> > cleanups for the 'news' user.
> 
> What package / software is using uid 117 (it's not in the default 
> /etc/passwd)?
> 
That's lightdm

Mart

[toc] | [prev] | [next] | [standalone]


#225711

FromMart van de Wege <mart@vdwege.eu>
Date2020-08-01 22:00 +0200
Message-ID<Az5PH-4k7-3@gated-at.bofh.it>
In reply to#225478
Andrei POPESCU <andreimpopescu@gmail.com> writes:

>> I tried googling, but unfortunately the terms I can come up with only
>> give generic information. How can I find out why these processes keep
>> hanging?
>
> Which processes would that be?

Ah, those would be '/lib/systemd/systemd-user-runtime-dir stop <UID>'

Regards,

Mart

-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.

[toc] | [prev] | [next] | [standalone]


#225731

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2020-08-02 09:40 +0200
Message-ID<AzgL7-37A-1@gated-at.bofh.it>
In reply to#225711

[Multipart message — attachments visible in raw view] — view raw

On Sb, 01 aug 20, 21:38:50, Mart van de Wege wrote:
> Andrei POPESCU <andreimpopescu@gmail.com> writes:
> 
> >> I tried googling, but unfortunately the terms I can come up with only
> >> give generic information. How can I find out why these processes keep
> >> hanging?
> >
> > Which processes would that be?
> 
> Ah, those would be '/lib/systemd/systemd-user-runtime-dir stop <UID>'

There still very little information to even try to guess what's going 
on.

It would help if you explained exactly what this system is doing / meant 
for, how did you install it, what changes you did to the default 
configuration, what commands are you running, as well as copy-pasting 
the output, etc. 

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [next] | [standalone]


#225734

FromMart van de Wege <mart@vdwege.eu>
Date2020-08-02 13:50 +0200
Message-ID<AzkF3-5rl-7@gated-at.bofh.it>
In reply to#225731
Andrei POPESCU <andreimpopescu@gmail.com> writes:

> On Sb, 01 aug 20, 21:38:50, Mart van de Wege wrote:
>> Andrei POPESCU <andreimpopescu@gmail.com> writes:
>> 
>> >> I tried googling, but unfortunately the terms I can come up with only
>> >> give generic information. How can I find out why these processes keep
>> >> hanging?
>> >
>> > Which processes would that be?
>> 
>> Ah, those would be '/lib/systemd/systemd-user-runtime-dir stop <UID>'
>
> There still very little information to even try to guess what's going 
> on.
>
> It would help if you explained exactly what this system is doing / meant 
> for, how did you install it, what changes you did to the default 
> configuration, what commands are you running, as well as copy-pasting 
> the output, etc. 
>
Really?!

This is just a personal laptop running Sid with XFCE4 as
desktop. Nothing special at all.

Just that in the past month systemd has had trouble closing user
sessions after running periodic tasks under that UID; in detail: it
hangs in D state when trying to clean up the user runtime dir
(/run/user/<UID>) using the user-runtime-dir@<UID>.service.

I mentioned all that in my previous post. If you have anything useful to
add that I could use to debug this instead of making me jump through
hoops I'd appreciate it.

You want copy/paste? Here:

root      121323  0.0  0.0  33336 23932 ?        Ds   07:37   0:00 /lib/systemd/systemd-user-runtime-dir stop 9

systemctl status user-runtime-dir@9.service 
● user-runtime-dir@9.service - User Runtime Directory /run/user/9
     Loaded: loaded (/lib/systemd/system/user-runtime-dir@.service; static; vendor preset: enab>
     Active: failed (Result: timeout) since Sun 2020-08-02 07:43:12 CEST; 5h 41min ago
       Docs: man:user@.service(5)
    Process: 121276 ExecStart=/lib/systemd/systemd-user-runtime-dir start 9 (code=exited, statu>
   Main PID: 121276 (code=exited, status=0/SUCCESS)

I *have* no more useful information. That's why I am asking for help to
get more useful information.

(Oh, and ODD 9 is the 'news' user on this system, which is used by
leafnode's nightly 'texpire' run)

Mart

-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.

[toc] | [prev] | [next] | [standalone]


#225735

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2020-08-02 15:00 +0200
Message-ID<AzlKN-64M-1@gated-at.bofh.it>
In reply to#225734

[Multipart message — attachments visible in raw view] — view raw

On Du, 02 aug 20, 13:27:18, Mart van de Wege wrote:
> 
> This is just a personal laptop running Sid with XFCE4 as
> desktop. Nothing special at all.

Since you are the only one experiencing this problem there must be 
something special about your setup ;)
 
> Just that in the past month systemd has had trouble closing user
> sessions after running periodic tasks under that UID; in detail: it
> hangs in D state when trying to clean up the user runtime dir
> (/run/user/<UID>) using the user-runtime-dir@<UID>.service.

What periodic tasks?

How did you even think about looking at the user-runtime-dir@.service?
 
> (Oh, and ODD 9 is the 'news' user on this system, which is used by
> leafnode's nightly 'texpire' run)

So you are running leafnode on it, not necessarily the most common 
software to run on a desktop.

What else besides XFCE and "common" desktop software (e.g. mail client, 
LibreOffice, etc.)?

You might want to read 
http://www.catb.org/~esr/faqs/smart-questions.html and I mean this in 
the most friendly way possible :)

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [next] | [standalone]


#225737

FromMart van de Wege <mart@vdwege.eu>
Date2020-08-02 16:50 +0200
Message-ID<Azntf-7aL-5@gated-at.bofh.it>
In reply to#225735
Andrei POPESCU <andreimpopescu@gmail.com> writes:

>> (Oh, and ODD 9 is the 'news' user on this system, which is used by
>> leafnode's nightly 'texpire' run)
>
> So you are running leafnode on it, not necessarily the most common 
> software to run on a desktop.
>
> What else besides XFCE and "common" desktop software (e.g. mail client, 
> LibreOffice, etc.)?
>
And instead of being a condescending arse you might want to ask for
information that's actually relevant.

-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.

[toc] | [prev] | [next] | [standalone]


#225738

From<tomas@tuxteam.de>
Date2020-08-02 17:30 +0200
Message-ID<Azo5X-7Dq-1@gated-at.bofh.it>
In reply to#225737

[Multipart message — attachments visible in raw view] — view raw

On Sun, Aug 02, 2020 at 04:27:25PM +0200, Mart van de Wege wrote:
> Andrei POPESCU <andreimpopescu@gmail.com> writes:
> 
> >> (Oh, and ODD 9 is the 'news' user on this system, which is used by
> >> leafnode's nightly 'texpire' run)
> >
> > So you are running leafnode on it, not necessarily the most common 
> > software to run on a desktop.
> >
> > What else besides XFCE and "common" desktop software (e.g. mail client, 
> > LibreOffice, etc.)?
> >
> And instead of being a condescending arse you might want to ask for
> information that's actually relevant.

I may be wrong, but I think you're over-interpreting Andrei here. I've
the feeling he's genuinely trying to help. Blame the channel.

Cheers
-- t

[toc] | [prev] | [next] | [standalone]


#225740

FromCelejar <celejar@gmail.com>
Date2020-08-02 17:50 +0200
Message-ID<Azopk-7K0-5@gated-at.bofh.it>
In reply to#225738
On Sun, 2 Aug 2020 17:06:22 +0200
<tomas@tuxteam.de> wrote:

> On Sun, Aug 02, 2020 at 04:27:25PM +0200, Mart van de Wege wrote:
> > Andrei POPESCU <andreimpopescu@gmail.com> writes:
> > 
> > >> (Oh, and ODD 9 is the 'news' user on this system, which is used by
> > >> leafnode's nightly 'texpire' run)
> > >
> > > So you are running leafnode on it, not necessarily the most common 
> > > software to run on a desktop.
> > >
> > > What else besides XFCE and "common" desktop software (e.g. mail client, 
> > > LibreOffice, etc.)?
> > >
> > And instead of being a condescending arse you might want to ask for
> > information that's actually relevant.
> 
> I may be wrong, but I think you're over-interpreting Andrei here. I've
> the feeling he's genuinely trying to help. Blame the channel.

+1

Andrei is one of the most helpful and gracious people on this list.
There's probably nuance that isn't correctly coming across via email.

Celejar

[toc] | [prev] | [next] | [standalone]


#225750

FromMart van de Wege <mart@vdwege.eu>
Date2020-08-02 22:00 +0200
Message-ID<Azsjf-1CS-5@gated-at.bofh.it>
In reply to#225740
On Sun, 2 Aug 2020 11:27:47 -0400
Celejar <celejar@gmail.com> wrote:

> On Sun, 2 Aug 2020 17:06:22 +0200
> <tomas@tuxteam.de> wrote:
> 
> > On Sun, Aug 02, 2020 at 04:27:25PM +0200, Mart van de Wege wrote:  
> > > Andrei POPESCU <andreimpopescu@gmail.com> writes:
> > > >
> > > > What else besides XFCE and "common" desktop software (e.g. mail
> > > > client, LibreOffice, etc.)?
> > > >  
> > > And instead of being a condescending arse you might want to ask
> > > for information that's actually relevant.  
> > 
> > I may be wrong, but I think you're over-interpreting Andrei here.
> > I've the feeling he's genuinely trying to help. Blame the channel.  
> 
> +1
> 
> Andrei is one of the most helpful and gracious people on this list.
> There's probably nuance that isn't correctly coming across via email.
> 
Look, I point out an issue with a normal systemd service, which I found
because my laptop was slow and running a load average of 15+, with lots
of systemd-user-runtime-dir processes in D state causing that load.

I traced it down to user-runtime-dir@UID.service crashing on cleaning
up a /run/user/UID directory. I gave relevant information, and Andrei
is asking if I have LibreOffice installed, and points me to ESR's FAQ.

I'm very sorry, but that feels extremely condescending. I'm *not* some
newbie just in from Ubuntu. When I provide information, I expect to be
queried on relevant points.

As it turns out I found some more information: the kernel oopses when
it audits the unlink call when SELinux is enabled. Since that looks
like a bug in kernel/systemd interaction, I'm filing a bug report with
full information (including the oops output). Since this laptop is the
only one running SELinux in permissive mode (because I'm still working
out its policy), I'm not losing much to disable it for now.

Mart

[toc] | [prev] | [next] | [standalone]


#225810

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2020-08-04 10:30 +0200
Message-ID<AA0uB-5Zt-1@gated-at.bofh.it>
In reply to#225750

[Multipart message — attachments visible in raw view] — view raw

On Du, 02 aug 20, 21:37:34, Mart van de Wege wrote:
> 
> I traced it down to user-runtime-dir@UID.service crashing on cleaning
> up a /run/user/UID directory. I gave relevant information, and Andrei
> is asking if I have LibreOffice installed, and points me to ESR's FAQ.
> 
> I'm very sorry, but that feels extremely condescending. I'm *not* some
> newbie just in from Ubuntu. When I provide information, I expect to be
> queried on relevant points.

I'm sorry you took offence on me recommending to read the How to Ask 
Questions The Smart Way. It was certainly not my intention to offend.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web