swap: Add support for reclaiming more memory at boot 08/237208/6
authorDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 24 Aug 2020 06:52:43 +0000 (15:52 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 27 Aug 2020 03:44:18 +0000 (12:44 +0900)
commitad16569219c6ae609ad3eb39a628937b4fea6a87
treef5f57668ebb01f8aba34763fe3d4b3169bea8bb1
parent8133e8861ff7b6db30f1126e15d5213c7fe5438e
swap: Add support for reclaiming more memory at boot

To reclaim more memory on earily reclaim stage, this provides
new configuration for '[SWAP]' section as "ReclaimAtBootThreshold".
If this is set, reclaim at earily stage continuously until the
reclaimed memory is lower than this threshold. Otherwise, default
value is very large (1024MB), so reclaim will be perfomed once as
before.

Change-Id: Icdd9206cf451a64a9c872833af88e91e8d8a6c6e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/swap/swap.c
src/swap/swap.conf