The patch titled Subject: task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix has been added to the -mm tree. Its filename is task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix clarify behaviour in documentation Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> Cc: Petr Cermak <petrcermak@xxxxxxxxxxxx> Cc: Primiano Tucci <primiano@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/filesystems/proc.txt | 3 ++- fs/proc/task_mmu.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff -puN Documentation/filesystems/proc.txt~task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix Documentation/filesystems/proc.txt --- a/Documentation/filesystems/proc.txt~task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix +++ a/Documentation/filesystems/proc.txt @@ -488,7 +488,8 @@ To clear the bits for the file mapped pa To clear the soft-dirty bit > echo 4 > /proc/PID/clear_refs -To reset the peak resident set size ("high water mark") +To reset the peak resident set size ("high water mark") to the process's +current value: > echo 5 > /proc/PID/clear_refs Any other value written to /proc/PID/clear_refs will have no effect. diff -puN fs/proc/task_mmu.c~task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix fs/proc/task_mmu.c --- a/fs/proc/task_mmu.c~task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix +++ a/fs/proc/task_mmu.c @@ -859,7 +859,7 @@ static ssize_t clear_refs_write(struct f if (type == CLEAR_REFS_MM_HIWATER_RSS) { /* * Writing 5 to /proc/pid/clear_refs resets the peak resident - * set size. + * set size to this mm's current rss value. */ down_write(&mm->mmap_sem); reset_mm_hiwater_rss(mm); _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are origin.patch i-need-old-gcc.patch arch-alpha-kernel-systblss-remove-debug-check.patch lib-show_mem-this-patch-adds-cma-reserved-infromation.patch mailmap-update-akpm-osdlorg.patch mm-introduce-do_shared_fault-and-drop-do_fault-fix-fix.patch mm-page_allocc-__alloc_pages_nodemask-dont-alter-arg-gfp_mask.patch mm-page_allocc-__alloc_pages_nodemask-dont-alter-arg-gfp_mask-fix.patch mm-prevent-endless-growth-of-anon_vma-hierarchy-fix.patch input-route-kbd-leds-through-the-generic-leds-layer.patch o2dlm-fix-null-pointer-dereference-in-o2dlm_blocking_ast_wrapper.patch ocfs2-add-functions-to-add-and-remove-inode-in-orphan-dir.patch mm.patch mm-replace-remap_file_pages-syscall-with-emulation.patch x86-add-pmd_-for-thp-fix.patch sparc-add-pmd_-for-thp-fix.patch do_shared_fault-check-that-mmap_sem-is-held.patch task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix.patch linux-next.patch drivers-gpio-gpio-zevioc-fix-build.patch tools-testing-selftests-makefile-alphasort-the-targets-list.patch journal_add_journal_head-debug.patch journal_add_journal_head-debug-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch mutex-subsystem-synchro-test-module.patch slab-leaks3-default-y.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html