Re: [PATCH net-next 2/4] page_pool: Don't recycle non-reusable pages

2019-10-23 Thread Saeed Mahameed
On Wed, 2019-10-23 at 20:38 +0200, Jesper Dangaard Brouer wrote: > On Tue, 22 Oct 2019 04:44:21 + > Saeed Mahameed wrote: > > > A page is NOT reusable when at least one of the following is true: > > 1) allocated when system was under some pressure. > > (page_is_pfmemalloc) > > 2) belongs to a

Re: [PATCH net-next 2/4] page_pool: Don't recycle non-reusable pages

2019-10-23 Thread Jesper Dangaard Brouer
On Tue, 22 Oct 2019 04:44:21 + Saeed Mahameed wrote: > A page is NOT reusable when at least one of the following is true: > 1) allocated when system was under some pressure. (page_is_pfmemalloc) > 2) belongs to a different NUMA node than pool->p.nid. > > To update pool->p.nid users should ca

[PATCH net-next 2/4] page_pool: Don't recycle non-reusable pages

2019-10-21 Thread Saeed Mahameed
A page is NOT reusable when at least one of the following is true: 1) allocated when system was under some pressure. (page_is_pfmemalloc) 2) belongs to a different NUMA node than pool->p.nid. To update pool->p.nid users should call page_pool_update_nid(). Holding on to such pages in the pool will