From: Rasmus Villemoes <linux@rasmusvillemoes.dk>
To: Zhang Zhen <zhenzhang.zhang@huawei.com>
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: Wed, 29 Apr 2015 12:58:16 +0200 [thread overview]
Message-ID: <87fv7j9p6f.fsf@rasmusvillemoes.dk> (raw)
In-Reply-To: <55408462.6010703@huawei.com> (Zhang Zhen's message of "Wed, 29 Apr 2015 15:12:34 +0800")
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).
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>
next prev parent reply other threads:[~2015-04-29 10:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-29 7:12 Zhang Zhen
2015-04-29 10:58 ` Rasmus Villemoes [this message]
2015-04-30 1:29 ` Zhang Zhen
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=87fv7j9p6f.fsf@rasmusvillemoes.dk \
--to=linux@rasmusvillemoes.dk \
--cc=dave.hansen@linux.intel.com \
--cc=linux-mm@kvack.org \
--cc=qiuxishi@huawei.com \
--cc=rientjes@google.com \
--cc=zhenzhang.zhang@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox