Skip to content

memcg: charge page tables (x86) and pipe buffers

Vladimir Davydov linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm: uncharge kmem pages from generic free_page pathinclude/linux/gfp.h include/linux/page-flags.h kernel/fork.c +3 more+34 -244 replies
2/5fs: charge pipe buffers to memcgfs/pipe.c+1 -12 replies
3/5memcg: teach uncharge_list to uncharge kmem pagesmm/memcontrol.c mm/swap.c+15 -90 replies
4/5mm: add __get_free_kmem_pages helperinclude/linux/gfp.h mm/page_alloc.c+13 -00 replies
5/5x86: charge page table pages to memcgarch/x86/include/asm/pgalloc.h arch/x86/mm/pgtable.c+7 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] memcg: charge page tables (x86) and pipe buffers

Hi,

There are at least two object types left that can be allocated by an unprivileged process and go uncharged to memcg - pipe buffers and page tables. This patch set tries to make them accounted.

Comments are welcome.

Thanks,

Vladimir Davydov (5):
mm: uncharge kmem pages from generic free_page path
fs: charge pipe buffers to memcg
memcg: teach uncharge_list to uncharge kmem pages
mm: add __get_free_kmem_pages helper
x86: charge page table pages to memcg

 arch/x86/include/asm/pgalloc.h |  5 +++--
 arch/x86/mm/pgtable.c          |  8 ++++----
 fs/pipe.c                      |  2 +-
 include/linux/gfp.h            |  4 +---
 include/linux/page-flags.h     | 22 ++++++++++++++++++++++
 kernel/fork.c                  |  2 +-
 mm/memcontrol.c                | 21 ++++++++++++++-------
 mm/page_alloc.c                | 38 ++++++++++++++++++++------------------
 mm/slub.c                      |  2 +-
 9 files changed, 67 insertions(+), 37 deletions(-)
Signature · 7 lines
2.1.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>