From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mel Gorman Subject: Re: [PATCH 08/17] net: Do not coalesce skbs belonging to PFMEMALLOC sockets Date: Wed, 20 Jun 2012 14:36:56 +0100 Message-ID: <20120620133656.GH4011@suse.de> References: <1340192652-31658-1-git-send-email-mgorman@suse.de> <1340192652-31658-9-git-send-email-mgorman@suse.de> <1340193892.4604.865.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Cc: Andrew Morton , Linux-MM , Linux-Netdev , LKML , David Miller , Neil Brown , Peter Zijlstra , Mike Christie , Eric B Munson , Sebastian Andrzej Siewior To: Eric Dumazet Return-path: Content-Disposition: inline In-Reply-To: <1340193892.4604.865.camel@edumazet-glaptop> Sender: owner-linux-mm@kvack.org List-Id: netdev.vger.kernel.org On Wed, Jun 20, 2012 at 02:04:52PM +0200, Eric Dumazet wrote: > On Wed, 2012-06-20 at 12:44 +0100, Mel Gorman wrote: > > Commit [bad43ca8: net: introduce skb_try_coalesce()] introduced an > > optimisation to coalesce skbs to reduce memory usage and cache line > > misses. In the case where the socket is used for swapping this can result > > in a warning like the following. > > > > [ 110.476565] nbd0: page allocation failure: order:0, mode:0x20 > > [ 110.476568] Pid: 2714, comm: nbd0 Not tainted 3.5.0-rc2-swapnbd-v12r2-slab #3 > > [ 110.476569] Call Trace: > > [ 110.476573] [] warn_alloc_failed+0xf3/0x160 > > [ 110.476578] [] __alloc_pages_nodemask+0x6e2/0x930 > > > > > > > > This makes absolutely no sense to me. > > This patch changes input path, while your stack trace is about output > path and a packet being fragmented. > The intention was to avoid any coalescing in the input path due to avoid packets that "were held back due to TCP_CORK or attempt at coalescing tiny packet". I recognise that it is clumsy and will take the approach instead of having __tcp_push_pending_frames() use sk_gfp_atomic() in the output path. Thanks. -- Mel Gorman SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org