Re: [PATCH v2] mm: use kvzalloc for swap_info_struct allocation

2018-11-05 Thread Aaron Lu
On Mon, Nov 05, 2018 at 03:11:56PM +0100, Michal Hocko wrote: > On Mon 05-11-18 14:17:01, Vasily Averin wrote: > > commit a2468cc9bfdf ("swap: choose swap device according to numa node") > > changed 'avail_lists' field of 'struct swap_info_struct' to an array. > > In popular linux distros it

Re: [PATCH v2] mm: use kvzalloc for swap_info_struct allocation

2018-11-05 Thread Aaron Lu
On Mon, Nov 05, 2018 at 03:11:56PM +0100, Michal Hocko wrote: > On Mon 05-11-18 14:17:01, Vasily Averin wrote: > > commit a2468cc9bfdf ("swap: choose swap device according to numa node") > > changed 'avail_lists' field of 'struct swap_info_struct' to an array. > > In popular linux distros it

Re: [PATCH v2] mm: use kvzalloc for swap_info_struct allocation

2018-11-05 Thread Michal Hocko
On Mon 05-11-18 14:17:01, Vasily Averin wrote: > commit a2468cc9bfdf ("swap: choose swap device according to numa node") > changed 'avail_lists' field of 'struct swap_info_struct' to an array. > In popular linux distros it increased size of swap_info_struct up to > 40 Kbytes and now

Re: [PATCH v2] mm: use kvzalloc for swap_info_struct allocation

2018-11-05 Thread Michal Hocko
On Mon 05-11-18 14:17:01, Vasily Averin wrote: > commit a2468cc9bfdf ("swap: choose swap device according to numa node") > changed 'avail_lists' field of 'struct swap_info_struct' to an array. > In popular linux distros it increased size of swap_info_struct up to > 40 Kbytes and now

[PATCH v2] mm: use kvzalloc for swap_info_struct allocation

2018-11-05 Thread Vasily Averin
commit a2468cc9bfdf ("swap: choose swap device according to numa node") changed 'avail_lists' field of 'struct swap_info_struct' to an array. In popular linux distros it increased size of swap_info_struct up to 40 Kbytes and now swap_info_struct allocation requires order-4 page. Switch to

[PATCH v2] mm: use kvzalloc for swap_info_struct allocation

2018-11-05 Thread Vasily Averin
commit a2468cc9bfdf ("swap: choose swap device according to numa node") changed 'avail_lists' field of 'struct swap_info_struct' to an array. In popular linux distros it increased size of swap_info_struct up to 40 Kbytes and now swap_info_struct allocation requires order-4 page. Switch to