Skip to content

Volatile Ranges v9

John Stultz linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14vrange: Add basic data structure and functionsinclude/linux/vrange.h include/linux/vrange_types.h lib/Makefile +2 more+258 -20 replies
2/14vrange: Add vrange support to mm_structsinclude/linux/mm_types.h include/linux/vrange.h kernel/fork.c +1 more+61 -10 replies
3/14vrange: Clear volatility on new mmapsinclude/linux/vrange.h mm/mmap.c mm/vrange.c+15 -00 replies
4/14vrange: Add support for volatile ranges on file mappingsfs/inode.c include/linux/fs.h+8 -00 replies
5/14vrange: Add new vrange(2) system callarch/x86/syscalls/syscall_64.tbl include/linux/syscalls.h include/uapi/asm-generic/mman-common.h +2 more+171 -020 replies
6/14vrange: Add basic functions to purge volatile pagesinclude/linux/vrange.h mm/internal.h mm/vrange.c+194 -21 reply
7/14vrange: Purge volatile pages when memory is tightinclude/linux/rmap.h mm/ksm.c mm/rmap.c +1 more+43 -152 replies
8/14vrange: Send SIGBUS when user try to access purged pageinclude/linux/swap.h include/linux/vrange.h mm/memory.c +2 more+75 -30 replies
9/14vrange: Add vrange LRU list for purginginclude/linux/vrange_types.h mm/vrange.c+58 -50 replies
10/14vrange: Add core shrinking logic for swapless systemmm/vrange.c+86 -30 replies
11/14vrange: Purging vrange-anon pages from shrinkermm/vrange.c+178 -10 replies
12/14vrange: Support background purging for vrange-filemm/vrange.c+49 -70 replies
13/14vrange: Allocate vroot dynamicallyfs/inode.c include/linux/fs.h include/linux/mm_types.h +4 more+255 -180 replies
14/14vrange: Add vmstat counter about purged pageinclude/linux/vm_event_item.h mm/vmstat.c mm/vrange.c+14 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

Cc Andrew Morton <[email protected]>
Cc Android Kernel Team <[email protected]>
Cc Robert Love <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Dmitry Adamushko <[email protected]>
Cc Dave Chinner <[email protected]>
Cc Neil Brown <[email protected]>
Cc Andrea Righi <[email protected]>
Cc Andrea Arcangeli <[email protected]>
Cc Aneesh Kumar K.V <[email protected]>
Cc Mike Hommey <[email protected]>
Cc Taras Glek <[email protected]>
Cc Dhaval Giani <[email protected]>
Cc Jan Kara <[email protected]>
Cc KOSAKI Motohiro <[email protected]>
Cc Michel Lespinasse <[email protected]>
Cc Rob Clark <[email protected]>
Cc Minchan Kim <[email protected]>

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>