Re: [PATCH] mm: don't account shared file pages in user_reserve_pages

2015-01-30 Thread Konstantin Khlebnikov
On 29.01.2015 23:11, Andrew Shewmaker wrote: On Thu, Jan 29, 2015 at 02:51:27PM +0300, Roman Gushchin wrote: Shared file pages are never accounted in memory overcommit code, so it isn't reasonable to count them in a code that limits the maximal size of a process in OVERCOMMIT_NONE mode. If a

Re: [PATCH] mm: don't account shared file pages in user_reserve_pages

2015-01-30 Thread Konstantin Khlebnikov
On 29.01.2015 23:11, Andrew Shewmaker wrote: On Thu, Jan 29, 2015 at 02:51:27PM +0300, Roman Gushchin wrote: Shared file pages are never accounted in memory overcommit code, so it isn't reasonable to count them in a code that limits the maximal size of a process in OVERCOMMIT_NONE mode. If a

Re: [PATCH] mm: don't account shared file pages in user_reserve_pages

2015-01-29 Thread Andrew Shewmaker
On Thu, Jan 29, 2015 at 02:51:27PM +0300, Roman Gushchin wrote: > Shared file pages are never accounted in memory overcommit code, > so it isn't reasonable to count them in a code that limits the > maximal size of a process in OVERCOMMIT_NONE mode. > > If a process has few large file mappings,

[PATCH] mm: don't account shared file pages in user_reserve_pages

2015-01-29 Thread Roman Gushchin
Shared file pages are never accounted in memory overcommit code, so it isn't reasonable to count them in a code that limits the maximal size of a process in OVERCOMMIT_NONE mode. If a process has few large file mappings, the consequent attempts to allocate anonymous memory may unexpectedly fail

[PATCH] mm: don't account shared file pages in user_reserve_pages

2015-01-29 Thread Roman Gushchin
Shared file pages are never accounted in memory overcommit code, so it isn't reasonable to count them in a code that limits the maximal size of a process in OVERCOMMIT_NONE mode. If a process has few large file mappings, the consequent attempts to allocate anonymous memory may unexpectedly fail

Re: [PATCH] mm: don't account shared file pages in user_reserve_pages

2015-01-29 Thread Andrew Shewmaker
On Thu, Jan 29, 2015 at 02:51:27PM +0300, Roman Gushchin wrote: Shared file pages are never accounted in memory overcommit code, so it isn't reasonable to count them in a code that limits the maximal size of a process in OVERCOMMIT_NONE mode. If a process has few large file mappings, the