From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755203AbbHNN0v (ORCPT ); Fri, 14 Aug 2015 09:26:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:54946 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbbHNN0t (ORCPT ); Fri, 14 Aug 2015 09:26:49 -0400 Subject: Re: [PATCH] mm: make page pfmemalloc check more robust To: Eric Dumazet References: <1439456364-4530-1-git-send-email-mhocko@kernel.org> <55CC5FA0.300@suse.cz> <1439476856.7960.8.camel@edumazet-glaptop2.roam.corp.google.com> Cc: mhocko@kernel.org, linux-mm@kvack.org, Mel Gorman , Jiri Bohac , Andrew Morton , "David S. Miller" , LKML , netdev@vger.kernel.org, Michal Hocko From: Vlastimil Babka Message-ID: <55CDEC95.5050307@suse.cz> Date: Fri, 14 Aug 2015 15:26:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1439476856.7960.8.camel@edumazet-glaptop2.roam.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/13/2015 04:40 PM, Eric Dumazet wrote: > On Thu, 2015-08-13 at 11:13 +0200, Vlastimil Babka wrote: > >> Given that this apparently isn't the first case of this localhost issue, >> I wonder if network code should just clear skb->pfmemalloc during send >> (or maybe just send over localhost). That would be probably easier than >> distinguish the __skb_fill_page_desc() callers for send vs receive. > > Would this still needed after this patch ? Not until another corner case is discovered :) Or something passes a genuine pfmemalloc page to a socket (sending contents of some slab objects perhaps, where the slab page was allocated as pfmemalloc? Dunno if that can happen right now). > It is sad we do not have a SNMP counter to at least count how often we > drop skb because pfmemalloc is set. > > I'll provide such a patch. > >