Skip to content

RFC Add soft limits to the memory controller

Balbir Singh linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Modify resource counters to add soft limit supportinclude/linux/res_counter.h kernel/res_counter.c mm/memcontrol.c+38 -174 replies
2/4Add the soft limit interfacemm/memcontrol.c+32 -10 replies
3/4Reclaim from groups over their soft limit under memory pressureinclude/linux/memcontrol.h include/linux/res_counter.h include/linux/swap.h +3 more+101 -1215 replies
4/4Add soft limit documentationDocumentation/controllers/memory.txt+16 -02 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC] [PATCH 0/4] Add soft limits to the memory controller

This patchset implements the basic changes required to implement soft limits in the memory controller. A soft limit is a variation of the currently supported hard limit feature. A memory cgroup can exceed it's soft limit provided there is no contention for memory.

These patches were tested under KVM and on a PowerPC box, by running a programs in parallel, and checking their behaviour for various soft limit values.

These patches were developed on top of 2.6.24-mm1. Comments, suggestions, criticism are all welcome!

TODOs:

1. Currently there is no ordering of memory cgroups over their limit. We use a simple linked list to maintain a list of groups over their limit. In the future, we might want to create a heap of objects ordered by the amount by which they exceed soft limit.
2. Distribute the excessive (non-contended) resources between groups in the ratio of their soft limits

series
------
memory-controller-res_counters-soft-limit-setup.patch memory-controller-add-soft-limit-interface.patch memory-controller-reclaim-on-contention.patch memory-controller-add-soft-limit-documentation.patch

Signature · 10 lines
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL

--
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>