Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-16 Thread Mel Gorman
On Mon, Jan 16, 2017 at 03:25:18PM +0100, Jesper Dangaard Brouer wrote: > On Mon, 9 Jan 2017 16:35:18 + > Mel Gorman wrote: > > > This patch adds a new page allocator interface via alloc_pages_bulk, > > __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-16 Thread Mel Gorman
On Mon, Jan 16, 2017 at 03:25:18PM +0100, Jesper Dangaard Brouer wrote: > On Mon, 9 Jan 2017 16:35:18 + > Mel Gorman wrote: > > > This patch adds a new page allocator interface via alloc_pages_bulk, > > __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a > > number of

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-16 Thread Jesper Dangaard Brouer
On Mon, 9 Jan 2017 16:35:18 + Mel Gorman wrote: > This patch adds a new page allocator interface via alloc_pages_bulk, > __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a > number of pages to be allocated and added to a list. They can be

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-16 Thread Jesper Dangaard Brouer
On Mon, 9 Jan 2017 16:35:18 + Mel Gorman wrote: > This patch adds a new page allocator interface via alloc_pages_bulk, > __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a > number of pages to be allocated and added to a list. They can be freed in > bulk using

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-10 Thread Mel Gorman
On Tue, Jan 10, 2017 at 12:00:27PM +0800, Hillf Danton wrote: > > It shows a roughly 50-60% reduction in the cost of allocating pages. > > The free paths are not improved as much but relatively little can be batched > > there. It's not quite as fast as it could be but taking further shortcuts > >

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-10 Thread Mel Gorman
On Tue, Jan 10, 2017 at 12:00:27PM +0800, Hillf Danton wrote: > > It shows a roughly 50-60% reduction in the cost of allocating pages. > > The free paths are not improved as much but relatively little can be batched > > there. It's not quite as fast as it could be but taking further shortcuts > >

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-09 Thread Hillf Danton
On Tuesday, January 10, 2017 12:35 AM Mel Gorman wrote: > > This patch adds a new page allocator interface via alloc_pages_bulk, > __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a > number of pages to be allocated and added to a list. They can be freed in > bulk using

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-09 Thread Hillf Danton
On Tuesday, January 10, 2017 12:35 AM Mel Gorman wrote: > > This patch adds a new page allocator interface via alloc_pages_bulk, > __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a > number of pages to be allocated and added to a list. They can be freed in > bulk using

[PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-09 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. They can be freed in bulk using free_pages_bulk(). Note that it would theoretically be possible to use

[PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-09 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. They can be freed in bulk using free_pages_bulk(). Note that it would theoretically be possible to use

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-04 Thread Mel Gorman
On Wed, Jan 04, 2017 at 02:48:44PM +0100, Jesper Dangaard Brouer wrote: > On Wed, 4 Jan 2017 11:10:49 + > > The API is not guaranteed to return the requested number of pages and > > may fail if the preferred allocation zone has limited free memory, > > the cpuset changes during the allocation

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-04 Thread Mel Gorman
On Wed, Jan 04, 2017 at 02:48:44PM +0100, Jesper Dangaard Brouer wrote: > On Wed, 4 Jan 2017 11:10:49 + > > The API is not guaranteed to return the requested number of pages and > > may fail if the preferred allocation zone has limited free memory, > > the cpuset changes during the allocation

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-04 Thread Jesper Dangaard Brouer
On Wed, 4 Jan 2017 11:10:49 + Mel Gorman wrote: > This patch adds a new page allocator interface via alloc_pages_bulk, > __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests > a number of pages to be allocated and added to a list. They can be >

Re: [PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-04 Thread Jesper Dangaard Brouer
On Wed, 4 Jan 2017 11:10:49 + Mel Gorman wrote: > This patch adds a new page allocator interface via alloc_pages_bulk, > __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests > a number of pages to be allocated and added to a list. They can be > freed in bulk using

[PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-04 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. They can be freed in bulk using free_hot_cold_page_list. The API is not guaranteed to return the

[PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-04 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. They can be freed in bulk using free_hot_cold_page_list. The API is not guaranteed to return the