Volatile Ranges v9
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 24 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | vrange: Add basic data structure and functionsinclude/ include/ lib/ +2 more | +258 | 0 replies | |
| 2/14 | vrange: Add vrange support to mm_structsinclude/ include/ kernel/ +1 more | +61 | 0 replies | |
| 3/14 | vrange: Clear volatility on new mmapsinclude/ mm/ mm/ | +15 | 0 replies | |
| 4/14 | vrange: Add support for volatile ranges on file mappingsfs/ include/ | +8 | 0 replies | |
| 5/14 | vrange: Add new vrange(2) system callarch/ include/ include/ +2 more | +171 | 20 replies | |
| 6/14 | vrange: Add basic functions to purge volatile pagesinclude/ mm/ mm/ | +194 | 1 reply | |
| 7/14 | vrange: Purge volatile pages when memory is tightinclude/ mm/ mm/ +1 more | +43 | 2 replies | |
| 8/14 | vrange: Send SIGBUS when user try to access purged pageinclude/ include/ mm/ +2 more | +75 | 0 replies | |
| 9/14 | vrange: Add vrange LRU list for purginginclude/ mm/ | +58 | 0 replies | |
| 10/14 | vrange: Add core shrinking logic for swapless systemmm/ | +86 | 0 replies | |
| 11/14 | vrange: Purging vrange-anon pages from shrinkermm/ | +178 | 0 replies | |
| 12/14 | vrange: Support background purging for vrange-filemm/ | +49 | 0 replies | |
| 13/14 | vrange: Allocate vroot dynamicallyfs/ include/ include/ +4 more | +255 | 0 replies | |
| 14/14 | vrange: Add vmstat counter about purged pageinclude/ mm/ mm/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/14] Volatile Ranges v9
So its been awhile since the last release of the volatile ranges patches, and while Minchan and I have been busy with other things, we have been slowly chipping away at issues and differences trying to get a patchset that we both agree on.
There's still a few smaller issues, but we figured any further polishing of the patch series in private would be unproductive and it would be much better to send the patches out for review and comment and get some wider opinions.
Whats new in v9:
* Updated to v3.11
* Added vrange purging logic to purge anonymous pages on swapless systems
* Added logic to allocate the vroot structure dynamically to avoid added overhead to mm and address_space structures
* Lots of minor tweaks, changes and cleanups
Still TODO:
* Sort out better solution for clearing volatility on new mmaps
- Minchan has a different approach here
* Sort out apparent shrinker livelock that occasionally crops up under severe pressure
Feedback or thoughts here would be particularly helpful!
As is apparent from the author list, Minchan has really been the one doing the heavy lifting here, and I've only been finding and fixing a few bugs, refactoring the code for readability, and trying to clarify commit messages. So many many thanks to Minchan here for all his great work, and putting up with my sometimes misguided "editing".
Also, thanks to Dhaval for his maintaining and vastly improving the volatile ranges test suite, which can be found here:
https://github.com/volatile-ranges-test/vranges-test
These patches can also be pulled from git here:
git://git.linaro.org/people/jstultz/android-dev.git dev/vrange-v9
We'd really welcome any feedback and comments on the patch series.
thanks
-john
John Stultz (2):
vrange: Clear volatility on new mmaps
vrange: Add support for volatile ranges on file mappings
Minchan Kim (12):
vrange: Add basic data structure and functions
vrange: Add vrange support to mm_structs
vrange: Add new vrange(2) system call
vrange: Add basic functions to purge volatile pages
vrange: Purge volatile pages when memory is tight
vrange: Send SIGBUS when user try to access purged page
vrange: Add vrange LRU list for purging
vrange: Add core shrinking logic for swapless system
vrange: Purging vrange-anon pages from shrinker
vrange: Support background purging for vrange-file
vrange: Allocate vroot dynamically
vrange: Add vmstat counter about purged page
arch/x86/syscalls/syscall_64.tbl | 1 + fs/inode.c | 4 + include/linux/fs.h | 4 + include/linux/mm_types.h | 4 + include/linux/rmap.h | 11 +- include/linux/swap.h | 6 +- include/linux/syscalls.h | 2 + include/linux/vm_event_item.h | 2 + include/linux/vrange.h | 84 +++ include/linux/vrange_types.h | 28 + include/uapi/asm-generic/mman-common.h | 3 + kernel/fork.c | 12 + kernel/sys_ni.c | 1 + lib/Makefile | 2 +- mm/Makefile | 2 +- mm/internal.h | 2 - mm/ksm.c | 2 +- mm/memory.c | 27 + mm/mincore.c | 5 +- mm/mmap.c | 5 + mm/rmap.c | 28 +- mm/vmscan.c | 17 +- mm/vmstat.c | 2 + mm/vrange.c | 1196 ++++++++++++++++++++++++++++++++ 24 files changed, 1429 insertions(+), 21 deletions(-) create mode 100644 include/linux/vrange.h create mode 100644 include/linux/vrange_types.h create mode 100644 mm/vrange.c
Signature · 7 lines
1.8.1.2 -- 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>