From: Glauber Costa <glommer@parallels.com>
To: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Michal Hocko <mhocko@suse.cz>,
lsf-pc@lists.linux-foundation.org, linux-mm@kvack.org,
Johannes Weiner <hannes@cmpxchg.org>,
Dave Chinner <david@fromorbit.com>
Subject: Re: [LSF/MM TOPIC] Few things I would like to discuss
Date: Wed, 13 Feb 2013 12:20:24 +0400 [thread overview]
Message-ID: <511B4CC8.9040309@parallels.com> (raw)
In-Reply-To: <511AE0B5.4020502@jp.fujitsu.com>
>
> Other points related to memcg is ...
>
> + kernel memory accounting + per-zone-per-memcg inode/dentry caching.
> Glaubler tries to account inode/dentry in kmem controller. To do that,
> I think inode and dentry should be hanldled per zone, at first. IIUC,
> there are
> ongoing work but not merged yet.
>
Yes, I've already managed to post an initial version - comments appreciated.
Actually, Johannes correctly pointed out to me once that memcg pressure
is never per-zone, so there is no reason for us to keep per-zone
information. The logic behind this is that if there is per-zone
pressure, it is always global pressure; memcg can only provide go/no-go
signals, and knows nothing about zones.
The only reason I am actually keeping per-zone information, is to avoid
keeping the inodes/dentries in two lists. Without per-zone, we would
have to keep it in a nodeless memcg list, and then in a per-zone (it is
actually per-node) list, and then when global pressure kicks in, follow
the zone lists. This means extra 16 bytes per objects, which adds up
quickly to a large memory overhead.
> + overheads by memcg
> Mel explained memcg's big overheads last year's MM summit. AFAIK, we
> have not
> made any progress with that. If someone have detailed data, please
> share again...
>
I had a patch for that, but didn't manage to go back to it again. Jeff
Liu did some extra work to handle lazy swap enablement as well, that
would go all right with it.
I can probably find the time to resuscitate it before the summit. We
could focus on what is still missing.
--
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:[~2013-02-13 8:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-05 12:35 Michal Hocko
2013-02-05 14:13 ` Glauber Costa
2013-02-13 0:39 ` Kamezawa Hiroyuki
2013-02-13 3:53 ` [Lsf-pc] " James Bottomley
2013-02-13 8:20 ` Glauber Costa [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=511B4CC8.9040309@parallels.com \
--to=glommer@parallels.com \
--cc=david@fromorbit.com \
--cc=hannes@cmpxchg.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=mhocko@suse.cz \
/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