From: Zhang Zhen <zhenzhang.zhang@huawei.com>
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: David Rientjes <rientjes@google.com>,
dave.hansen@linux.intel.com, Linux MM <linux-mm@kvack.org>,
qiuxishi@huawei.com
Subject: Re: Why task_struct slab can't be released back to buddy system?
Date: Thu, 30 Apr 2015 09:29:42 +0800 [thread overview]
Message-ID: <55418586.2080100@huawei.com> (raw)
In-Reply-To: <87fv7j9p6f.fsf@rasmusvillemoes.dk>
On 2015/4/29 18:58, Rasmus Villemoes wrote:
> On Wed, Apr 29 2015, Zhang Zhen <zhenzhang.zhang@huawei.com> wrote:
>
>> Hi,
>>
>> Our x86 system has crashed because oom.
>> We found task_struct slabs ate much memory.
>
> I can't explain what you've seen, but a simple way to reduce the
> memory footprint of struct task_struct is
>
> CONFIG_LATENCYTOP=n
>
> That will reduce sizeof(struct task_struct) by ~3840 bytes (60%, give or
> take).
>
Thank you for your sugesstion.
But my purpose is not to reduce sizeof(struct task_struct).
I want to know why the task_struct slab can't be released back
to buddy when the page's inuse is 0.
Best regards!
> Rasmus
>
>> CACHE NAME OBJSIZE ALLOCATED TOTAL SLABS SSIZE //**Slabs is much larger than alloctated object counts**
>> ffff88081e007500 task_struct 6528 4639 229775 45955 32k
>
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2015-04-30 1:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-29 7:12 Why task_struct slab can't be released back to buddy system? Zhang Zhen
2015-04-29 10:58 ` Rasmus Villemoes
2015-04-30 1:29 ` Zhang Zhen [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=55418586.2080100@huawei.com \
--to=zhenzhang.zhang@huawei.com \
--cc=dave.hansen@linux.intel.com \
--cc=linux-mm@kvack.org \
--cc=linux@rasmusvillemoes.dk \
--cc=qiuxishi@huawei.com \
--cc=rientjes@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.