Re: [PATCH v2 net-next] net: ethtool: convert large order kmalloc allocations to vzalloc

2017-01-31 Thread David Miller
From: Alexei Starovoitov Date: Mon, 30 Jan 2017 18:25:18 -0800 > under memory pressure 'ethtool -S' command may warn: ... > ~1160 mlx5 counters ~= order 4 allocation which is unlikely to succeed > under memory pressure. Convert them to vzalloc() as ethtool_get_regs() does. > Also take care of dr

Re: [PATCH v2 net-next] net: ethtool: convert large order kmalloc allocations to vzalloc

2017-01-30 Thread Joe Perches
On Mon, 2017-01-30 at 19:41 -0800, Alexei Starovoitov wrote: > On 1/30/17 7:28 PM, Joe Perches wrote: > > On Mon, 2017-01-30 at 18:25 -0800, Alexei Starovoitov wrote: > > > under memory pressure 'ethtool -S' command may warn: > > > [ 2374.385195] ethtool: page allocation failure: order:4, mode:0x24

Re: [PATCH v2 net-next] net: ethtool: convert large order kmalloc allocations to vzalloc

2017-01-30 Thread Alexei Starovoitov
On 1/30/17 7:28 PM, Joe Perches wrote: On Mon, 2017-01-30 at 18:25 -0800, Alexei Starovoitov wrote: under memory pressure 'ethtool -S' command may warn: [ 2374.385195] ethtool: page allocation failure: order:4, mode:0x242c0c0 [ 2374.405573] CPU: 12 PID: 40211 Comm: ethtool Not tainted [ 2374.423

Re: [PATCH v2 net-next] net: ethtool: convert large order kmalloc allocations to vzalloc

2017-01-30 Thread Joe Perches
On Mon, 2017-01-30 at 18:25 -0800, Alexei Starovoitov wrote: > under memory pressure 'ethtool -S' command may warn: > [ 2374.385195] ethtool: page allocation failure: order:4, mode:0x242c0c0 > [ 2374.405573] CPU: 12 PID: 40211 Comm: ethtool Not tainted > [ 2374.423071] Call Trace: > [ 2374.423076]

[PATCH v2 net-next] net: ethtool: convert large order kmalloc allocations to vzalloc

2017-01-30 Thread Alexei Starovoitov
under memory pressure 'ethtool -S' command may warn: [ 2374.385195] ethtool: page allocation failure: order:4, mode:0x242c0c0 [ 2374.405573] CPU: 12 PID: 40211 Comm: ethtool Not tainted [ 2374.423071] Call Trace: [ 2374.423076] [] dump_stack+0x4d/0x64 [ 2374.423080] [] warn_alloc_failed+0xeb/0x15