Skip to content

swapcgroup(v2)

Daisuke Nishimura containers linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4swapcgroup: add cgroup filesinit/Kconfig mm/memcontrol.c+74 -00 replies
2/4swapcgroup: add member to swap_info_struct for cgroupinclude/linux/swap.h mm/swapfile.c+35 -03 replies
3/4swapcgroup: implement charge/unchargeinclude/linux/memcontrol.h include/linux/swap.h mm/memcontrol.c +3 more+85 -54 replies
4/4swapcgroup: modify vm_swap_full for cgroupinclude/linux/memcontrol.h include/linux/swap.h mm/memcontrol.c +2 more+53 -38 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/4] swapcgroup(v2)

Hi.

I updated my swapcgroup patch.

Major changes from previous version(*1):
- Rebased on 2.6.26-rc2-mm1 + KAMEZAWA-san's performance improvement patchset v4.
- Implemented as a add-on to memory cgroup.
So, there is no need to add a new member to page_cgroup now.
- (NEW)Modified vm_swap_full() to calculate the rate of swap usage per cgroup.

Patchs:
- [1/4] add cgroup files
- [2/4] add member to swap_info_struct for cgroup
- [3/4] implement charge/uncharge
- [4/4] modify vm_swap_full for cgroup

ToDo:
- handle force_empty.
- make it possible for users to select if they use this feature or not, and avoid overhead for users not using this feature.
- move charges along with task move between cgroups.

*1
https://lists.linux-foundation.org/pipermail/containers/2008-March/010216.html

Thanks,
Daisuke Nishimura.