From: David Laight <David.Laight@ACULAB.COM>
To: 'Matthew Wilcox' <willy@infradead.org>,
Mike Kravetz <mike.kravetz@oracle.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: THP backed thread stacks
Date: Sat, 18 Mar 2023 12:58:20 +0000 [thread overview]
Message-ID: <9725accc24aa4d76b01cdc9b210d12d4@AcuMS.aculab.com> (raw)
In-Reply-To: <ZBSo+mLUOsKvy3rC@casper.infradead.org>
From: Matthew Wilcox
> Sent: 17 March 2023 17:53
...
> My understanding is that for a normal app (like, say, 'cat'), we'll
> allow up to an 8MB stack, but we only create a VMA that is 4kB in size
> and set the VM_GROWSDOWN flag on it (to allow it to magically grow).
> Therefore we won't create a 2MB page because the VMA is too small.
Is there anyway that glibc (or anything else) could request that
for a thread stack?
It would make the process 'memory size' reported by ps/top
much more meaningful for programs with threads.
I've noticed some (what should be) small programs having a
size (rss?) of 277m.
I'm sure a lot of it is thread stack.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
prev parent reply other threads:[~2023-03-18 12:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-06 23:57 THP backed thread stacks Mike Kravetz
2023-03-07 0:15 ` Peter Xu
2023-03-07 0:40 ` Mike Kravetz
2023-03-08 19:02 ` Mike Kravetz
2023-03-09 22:38 ` Zach O'Keefe
2023-03-09 23:33 ` Mike Kravetz
2023-03-10 0:05 ` Zach O'Keefe
2023-03-10 1:40 ` William Kucharski
2023-03-10 11:25 ` David Hildenbrand
2023-03-11 12:24 ` William Kucharski
[not found] ` <20230312005549.2609-1-hdanton@sina.com>
2023-03-12 4:39 ` William Kucharski
2023-03-10 22:02 ` Yang Shi
2023-03-07 10:10 ` David Hildenbrand
2023-03-07 19:02 ` Mike Kravetz
2023-03-07 13:36 ` Mike Rapoport
2023-03-17 17:52 ` Matthew Wilcox
2023-03-17 18:46 ` Mike Kravetz
2023-03-20 11:12 ` David Hildenbrand
2023-03-20 17:46 ` William Kucharski
2023-03-20 17:52 ` David Hildenbrand
2023-03-20 18:06 ` Mike Kravetz
2023-03-18 12:58 ` David Laight [this message]
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=9725accc24aa4d76b01cdc9b210d12d4@AcuMS.aculab.com \
--to=david.laight@aculab.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mike.kravetz@oracle.com \
--cc=willy@infradead.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;
as well as URLs for NNTP newsgroup(s).