Re: [PATCH v2 2/2] task_mmu: Add user-space support for resetting mm->hiwater_rss (peak RSS)

From: David Rientjes
Date: Wed Jan 21 2015 - 17:59:04 EST


On Thu, 15 Jan 2015, Kirill A. Shutemov wrote:

> I'm not sure if it should be considered ABI break or not. Just asking.
>
> I would like to hear opinion from other people.
>

I think the bigger concern would be that this, and any new line such as
resettable_hiwater_rss, invalidates itself entirely. Any process that
checks the hwm will not know of other processes that reset it, so the
value itself has no significance anymore. It would just be the mark since
the last clear at an unknown time. Userspace can monitor the rss of a
process by reading /proc/pid/stat, there's no need for the kernel to do
something that userspace can do.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/