From: Suleiman Souhlal <suleiman@google.com>
To: lsf-pc@lists.linuxfoundation.org
Cc: linux-mm@kvack.org
Subject: [LSF/MM TOPIC] Kernel memory tracking in memcg
Date: Fri, 4 Feb 2011 16:09:57 -0800 [thread overview]
Message-ID: <AANLkTi=bMvdnxJOJTsNpg=KCSG40cgDkx+ZMPXXJh8UN@mail.gmail.com> (raw)
Hi,
Currently, memcg only tracks user memory.
However, some workloads can cause heavy kernel memory use (for
example, when doing a lot of network I/O), which would ideally be
counted towards the limit in memory cgroup.
Without this, memory isolation could be damaged, as one cgroup using a
lot of kernel memory could penalize other cgroups by causing global
reclaim on the machine.
Things that could potentially be discussed:
- Should all kinds of kernel allocations be accounted (get_free_pages,
slab, vmalloc)?
- Should every allocation done in a process context be accounted?
- Should kernel memory be counted towards the memcg limit, or should a
different limit be used?
- Implementation.
Is this worth discussing?
[ My initial thoughts on the issue: Slab makes for the bulk of kernel
allocations, and any solution would need a slab component, so it's a
good starting point.
Also, most kernel allocations in process context belong to that
process (although there are some exceptions), so it should be mostly
ok to account every allocation in process context.
For slab, we can do tracking per slab (instead of per-object), by
making sure objects from a slab are only used by one cgroup. ]
-- Suleiman
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2011-02-05 0:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-05 0:09 Suleiman Souhlal [this message]
2011-02-07 2:10 ` KAMEZAWA Hiroyuki
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='AANLkTi=bMvdnxJOJTsNpg=KCSG40cgDkx+ZMPXXJh8UN@mail.gmail.com' \
--to=suleiman@google.com \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linuxfoundation.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