Re: [PATCH] page_frag: Recover from memory pressure

2020-11-14 Thread Dongli Zhang
>From linux-next, this patch is not in akpm branch. According to discussion with Matthew offline, I will take the author of this patch as Matthew was providing review for patch and suggesting a better alternative. Therefore, it will be much more easier or me to track this patch. I will re-send t

Re: [PATCH] page_frag: Recover from memory pressure

2020-11-09 Thread Eric Dumazet
On 11/9/20 3:32 PM, Matthew Wilcox wrote: > On Thu, Nov 05, 2020 at 02:02:24PM +, Matthew Wilcox wrote: >> On Thu, Nov 05, 2020 at 02:21:25PM +0100, Eric Dumazet wrote: >>> On 11/5/20 5:21 AM, Matthew Wilcox (Oracle) wrote: When the machine is under extreme memory pressure, the page_fra

Re: [PATCH] page_frag: Recover from memory pressure

2020-11-09 Thread Matthew Wilcox
On Thu, Nov 05, 2020 at 02:02:24PM +, Matthew Wilcox wrote: > On Thu, Nov 05, 2020 at 02:21:25PM +0100, Eric Dumazet wrote: > > On 11/5/20 5:21 AM, Matthew Wilcox (Oracle) wrote: > > > When the machine is under extreme memory pressure, the page_frag allocator > > > signals this to the networkin

Re: [PATCH] page_frag: Recover from memory pressure

2020-11-05 Thread Matthew Wilcox
On Thu, Nov 05, 2020 at 02:21:25PM +0100, Eric Dumazet wrote: > On 11/5/20 5:21 AM, Matthew Wilcox (Oracle) wrote: > > When the machine is under extreme memory pressure, the page_frag allocator > > signals this to the networking stack by marking allocations with the > > 'pfmemalloc' flag, which cau

Re: [PATCH] page_frag: Recover from memory pressure

2020-11-05 Thread Eric Dumazet
On 11/5/20 5:21 AM, Matthew Wilcox (Oracle) wrote: > When the machine is under extreme memory pressure, the page_frag allocator > signals this to the networking stack by marking allocations with the > 'pfmemalloc' flag, which causes non-essential packets to be dropped. > Unfortunately, even afte

Re: [PATCH] page_frag: Recover from memory pressure

2020-11-05 Thread Vlastimil Babka
On 11/5/20 1:05 PM, Matthew Wilcox wrote: On Thu, Nov 05, 2020 at 12:56:43PM +0100, Vlastimil Babka wrote: > +++ b/mm/page_alloc.c > @@ -5139,6 +5139,10 @@ void *page_frag_alloc(struct page_frag_cache *nc, >if (!page_ref_sub_and_test(page, nc->pagecnt_bias)) >goto

Re: [PATCH] page_frag: Recover from memory pressure

2020-11-05 Thread Matthew Wilcox
On Thu, Nov 05, 2020 at 12:56:43PM +0100, Vlastimil Babka wrote: > > +++ b/mm/page_alloc.c > > @@ -5139,6 +5139,10 @@ void *page_frag_alloc(struct page_frag_cache *nc, > > if (!page_ref_sub_and_test(page, nc->pagecnt_bias)) > > goto refill; > > + if (nc->pf

Re: [PATCH] page_frag: Recover from memory pressure

2020-11-05 Thread Vlastimil Babka
On 11/5/20 5:21 AM, Matthew Wilcox (Oracle) wrote: When the machine is under extreme memory pressure, the page_frag allocator signals this to the networking stack by marking allocations with the 'pfmemalloc' flag, which causes non-essential packets to be dropped. Unfortunately, even after the mac

[PATCH] page_frag: Recover from memory pressure

2020-11-04 Thread Matthew Wilcox (Oracle)
When the machine is under extreme memory pressure, the page_frag allocator signals this to the networking stack by marking allocations with the 'pfmemalloc' flag, which causes non-essential packets to be dropped. Unfortunately, even after the machine recovers from the low memory condition, the page