diff options
| author | Minchan Kim <minchan@kernel.org> | 2013-05-09 16:21:28 +0900 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-22 14:44:20 -0700 |
| commit | 384da356db5f3527e0f37a6182cd80605b4581d9 (patch) | |
| tree | c4b42311546b01bf987d9373c8c7c78e0ba8890c /mm/Kconfig | |
| parent | 06de050ac6a250930f5b95dc153744d64dbc13c4 (diff) | |
mm: Support address range reclaim
This patch adds address range reclaim of a process.
The requirement is following as,
Like webkit1, it uses a address space for handling multi tabs.
IOW, it uses *one* process model so all tabs shares address space
of the process. In such scenario, per-process reclaim is rather
coarse-grained so this patch supports more fine-grained reclaim
for being able to reclaim target address range of the process.
For reclaim target range, you should use following format.
echo [addr] [size-byte] > /proc/pid/reclaim
The addr should be page-aligned.
So now reclaim konb's interface is following as.
echo file > /proc/pid/reclaim
reclaim file-backed pages only
echo anon > /proc/pid/reclaim
reclaim anonymous pages only
echo all > /proc/pid/reclaim
reclaim all pages
echo 0x100000 8K > /proc/pid/reclaim
reclaim pages in (0x100000 - 0x102000)
Change-Id: I111131d31be1cfcfa246617b634a9a8bc4078098
Signed-off-by: Minchan Kim <minchan@kernel.org>
Patch-mainline: linux-mm @ 9 May 2013 08:39:01
[vinmenon@codeaurora.org: trivial merge conflict fixes]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Diffstat (limited to 'mm/Kconfig')
| -rw-r--r-- | mm/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/Kconfig b/mm/Kconfig index 05a9e569f00c..b880dce3fafd 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -728,4 +728,7 @@ config PROCESS_RECLAIM (echo anon > /proc/PID/reclaim) reclaims anonymous pages only. (echo all > /proc/PID/reclaim) reclaims all pages. + (echo addr size-byte > /proc/PID/reclaim) reclaims pages in + (addr, addr + size-bytes) of the process. + Any other vaule is ignored. |
