From: Michal Hocko <mhocko@kernel.org>
To: snazy@snazy.de
Cc: Randy Dunlap <rdunlap@infradead.org>,
linux-kernel@vger.kernel.org, Linux MM <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>,
"Potyra, Stefan" <Stefan.Potyra@elektrobit.com>
Subject: Re: mlockall(MCL_CURRENT) blocking infinitely
Date: Fri, 25 Oct 2019 15:57:49 +0200 [thread overview]
Message-ID: <20191025135749.GK17610@dhcp22.suse.cz> (raw)
In-Reply-To: <707b72c6dac76c534dcce60830fa300c44f53404.camel@gmx.de>
On Fri 25-10-19 15:45:37, Robert Stupp wrote:
> On Fri, 2019-10-25 at 15:27 +0200, Michal Hocko wrote:
> > On Fri 25-10-19 15:10:39, Robert Stupp wrote:
> > [...]
> > > cat /proc/$(pidof test)/smaps
> >
> > Nothing really unusual that would jump at me except for
> > > 7f8be90ed000-7f8be9265000 r-xp 00025000 103:02
> > > 44307431 /lib/x86_64-linux-gnu/libc-2.30.so
> > > Size: 1504 kB
> > > KernelPageSize: 4 kB
> > > MMUPageSize: 4 kB
> > > Rss: 832 kB
> > > Pss: 5 kB
> > > Shared_Clean: 832 kB
> > > Shared_Dirty: 0 kB
> > > Private_Clean: 0 kB
> > > Private_Dirty: 0 kB
> > > Referenced: 832 kB
> > > Anonymous: 0 kB
> > > LazyFree: 0 kB
> > > AnonHugePages: 0 kB
> > > ShmemPmdMapped: 0 kB
> > > Shared_Hugetlb: 0 kB
> > > Private_Hugetlb: 0 kB
> > > Swap: 0 kB
> > > SwapPss: 0 kB
> > > Locked: 5 kB
> >
> > Huh, 5kB, is this really the case or some copy&paste error?
> > How can we end up with !pagesize multiple here?
Ohh, I haven't noticed pss and didn't realize that Locked is pss like as
well.
> >
> > > THPeligible: 0
> > > VmFlags: rd ex mr mw me lo sd
>
> mlockall() seems to lock everything though, it just never returns.
>
> Pretty sure that it's not a copy&paste error. Got a couple more runs
> that have an "odd size" - this time with 3kB...
> All "Locked" values seem to be okay - except that one. And it's always
> odd for the same one (the one with `Size: 1504 kB`).
> It's not always odd (3 kB or 5 kB) though - sometimes it says 4 kB.
> Seems it's a little breadcrumb?
Please try to watch for stack of the syscall and see if there is any
pattern.
--
Michal Hocko
SUSE Labs
next prev parent reply other threads:[~2019-10-25 13:57 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4576b336-66e6-e2bb-cd6a-51300ed74ab8@snazy.de>
2019-10-24 23:34 ` mlockall(MCL_CURRENT) blocking infinitely Randy Dunlap
2019-10-25 9:21 ` Michal Hocko
2019-10-25 11:02 ` Robert Stupp
2019-10-25 11:46 ` Michal Hocko
2019-10-25 11:50 ` Michal Hocko
2019-10-25 11:59 ` Robert Stupp
2019-10-25 13:19 ` Robert Stupp
2019-10-25 11:55 ` Robert Stupp
2019-10-25 12:05 ` Michal Hocko
2019-10-25 12:11 ` Michal Hocko
2019-10-25 13:10 ` Robert Stupp
2019-10-25 13:27 ` Michal Hocko
2019-10-25 13:45 ` Robert Stupp
2019-10-25 13:57 ` Michal Hocko [this message]
2019-10-25 14:00 ` Michal Hocko
2019-10-25 15:58 ` Robert Stupp
2019-11-05 13:23 ` Robert Stupp
2019-11-05 15:28 ` Vlastimil Babka
2019-11-05 18:22 ` Johannes Weiner
2019-11-05 20:05 ` Robert Stupp
2019-11-06 10:25 ` Robert Stupp
2019-11-06 11:26 ` Robert Stupp
2019-11-06 12:04 ` Jan Kara
2019-11-06 12:24 ` Robert Stupp
2019-11-06 12:03 ` Jan Kara
2019-11-06 13:45 ` Robert Stupp
2019-11-06 14:35 ` Jan Kara
2019-11-06 15:32 ` Robert Stupp
2019-11-06 14:38 ` Jan Kara
2019-11-06 14:56 ` Josef Bacik
2019-11-06 15:05 ` Jan Kara
2019-11-06 15:14 ` Josef Bacik
2019-11-06 15:25 ` Jan Kara
2019-11-06 16:39 ` Robert Stupp
2019-11-06 17:03 ` Robert Stupp
2019-11-06 17:25 ` Jan Kara
2019-11-07 8:08 ` Robert Stupp
2019-11-20 12:42 ` Robert Stupp
2019-10-25 13:55 ` Robert Stupp
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=20191025135749.GK17610@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=Stefan.Potyra@elektrobit.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rdunlap@infradead.org \
--cc=snazy@snazy.de \
/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;
as well as URLs for NNTP newsgroup(s).