From: Chris Murphy <lists@colorremedies.com>
To: Michal Hocko <mhocko@kernel.org>
Cc: Chris Murphy <lists@colorremedies.com>, linux-mm@kvack.org
Subject: Re: user space unresponsive, followup: lsf/mm congestion
Date: Fri, 10 Jan 2020 15:27:10 -0700 [thread overview]
Message-ID: <CAJCQCtT-MkfHnKpZpZu06bwE9t+Pnfosk9NFkJ2a20M5H4zydg@mail.gmail.com> (raw)
In-Reply-To: <20200110110739.GD29802@dhcp22.suse.cz>
On Fri, Jan 10, 2020 at 4:07 AM Michal Hocko <mhocko@kernel.org> wrote:
>
> So you have redirected the output (stdout) to a file. This is less
> effective than using a file directly because the progy makes sure to
> preallocate and mlock the output file data as well. Anyway, let's have a
> look what you managed to gather
I just read the source :P and see the usage. I'll do that properly if
there's a next time. Should it be saved in /tmp to avoid disk writes
or does it not matter?
> It would interesting to see whether tuning vm_swappiness to 100 helps
> but considering how large is the anonymous active list I would be very
> skeptical.
I can try it. Is it better to capture the same amount of time as
before? Or the entire thing until it fails or is stuck for at least 30
minutes?
> So in the end it is really hard to see what the kernel should have done
> better in this overcommitted case. Killing memory hogs would likely kill
> an active workload which would lead to better desktop experience but I
> can imagine setups which simply want to have work done albeit sloooowly.
Right, so the kernel can't know and doesn't really want to know, user
intention. It's really a policy question.
But if the distribution wanted to have a policy of, the mouse pointer
always works - i.e. the user should be able to kill this process, if
they want, from within the GUI - that implies possibly a lot of work
to carve out the necessary resources for that entire stack. I have no
idea if that's possible with the current state of things.
Anyway, I see it's a difficult problem, and I appreciate the
explanations. I don't care about this particular example, my interest
is making it better for everyone - I personally run into this only
when I'm testing for it, but those who experience it, experience it
often. And they're often developers. They have no idea in advance what
the build resource requirements are, and those requirements change a
lot as the compile happens. Difficult problem.
--
Chris Murphy
next prev parent reply other threads:[~2020-01-10 22:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-07 20:29 Chris Murphy
2020-01-07 20:58 ` Michal Hocko
2020-01-07 21:25 ` Chris Murphy
2020-01-08 9:25 ` Michal Hocko
2020-01-08 21:14 ` Chris Murphy
2020-01-08 21:18 ` Chris Murphy
2020-01-09 11:51 ` Michal Hocko
2020-01-09 11:53 ` Michal Hocko
2020-01-10 6:12 ` Chris Murphy
2020-01-10 11:07 ` Michal Hocko
2020-01-10 22:27 ` Chris Murphy [this message]
2020-01-14 9:46 ` Michal Hocko
2020-01-12 0:07 ` Chris Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJCQCtT-MkfHnKpZpZu06bwE9t+Pnfosk9NFkJ2a20M5H4zydg@mail.gmail.com \
--to=lists@colorremedies.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox