zsmalloc: adjust ZS_ALMOST_FULL
authorMinchan Kim <[email protected]>
Wed, 15 Apr 2015 23:15:33 +0000 (16:15 -0700)
committerLinus Torvalds <[email protected]>
Wed, 15 Apr 2015 23:35:20 +0000 (16:35 -0700)
commitd3d07c92ff69f784bb8c3279fa87678bfa2f7f6f
treeea13c63b576a82c469a5a0ef9c874f64964837a6
parent312fcae227037619dc858c9ccd362c7b847730a2
zsmalloc: adjust ZS_ALMOST_FULL

Curretly, zsmalloc regards a zspage as ZS_ALMOST_EMPTY if the zspage has
under 1/4 used objects(ie, fullness_threshold_frac).  It could make result
in loose packing since zsmalloc migrates only ZS_ALMOST_EMPTY zspage out.

This patch changes the rule so that zsmalloc makes zspage which has above
3/4 used object ZS_ALMOST_FULL so it could make tight packing.

Signed-off-by: Minchan Kim <[email protected]>
Cc: Juneho Choi <[email protected]>
Cc: Gunho Lee <[email protected]>
Cc: Luigi Semenzato <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: Jerome Marchand <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/zsmalloc.c