Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5679342yba; Thu, 11 Apr 2019 03:29:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzz4zOo2qtwiTMU1Q0GNnYM7OyBQutGBcS4ZA/v/XCeroyrrATxl+i5xU955SiGAszROFDc X-Received: by 2002:a63:720e:: with SMTP id n14mr45646450pgc.93.1554978565558; Thu, 11 Apr 2019 03:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554978565; cv=none; d=google.com; s=arc-20160816; b=AzIY+LgbHuMHw1+Np3hm8A6m+NjEsUY+SQoQCFFP26ItQvd1WHbXq9nwJs3hpodNO3 Z5KFNOz7HJAcQAHHRE+qvHQ1t05pc2tQQXCsK5JnpUtX1hiTs6thAnVPNs/mCzg/7uD7 zkfhEDBbajRpFL6AkyOt4LclhaMcRX5QUU1Du0qV2R3dykAm4L22oSdoSQt2UE+1QtXr hSblBeZh8HwNcd1fYO9V1J4sMjrPmSiO4LtFHq5LUp0kghvnaV3nLlKXZyRUrVNVTwUY 9POJw9jhnWdpIZM/L97Ra4LNs6ahffg0RyU5zdhtjYp0/vdIJxrXFiOtqRsvV6hjZRis PBOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Kn1CQ1tYlKG5aPBdLbq4769GlOaJ+hSDTJk4frbl//4=; b=rm+Whuf54Ct74iV0UBhPWQs3VrLlx7GuwKfxMXgB8v2huQg5JlFT37hB0vah2mK4JV nIlq5SjIBBqJOYSjpypVE62lMf209otJEz+iOb7DX1krnEUIDaJm7j72SwSohlInp6GG m+LbkoxnZC19Usr5EeTfmPPzm033qYL5xPBHBv37mocAhJdTC6Gt7TJDjV/nYIdzx5f4 TBmZfRO3xF7GrnnXauf+aSr6T/T0THTPGdEhUAUX1TrjAtKoOzcNf5ErGW/4gc60chGc tK4YHd+D79hTLHevKaZai3LeFtLzfX5MDjox0aZRQ7ZJeQAzky7MP/Kl8FABxo3jCSyD /wBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wSXQKdFi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si16566681pls.76.2019.04.11.03.29.09; Thu, 11 Apr 2019 03:29:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wSXQKdFi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726732AbfDKK0o (ORCPT + 99 others); Thu, 11 Apr 2019 06:26:44 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:40248 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbfDKK0m (ORCPT ); Thu, 11 Apr 2019 06:26:42 -0400 Received: by mail-yw1-f68.google.com with SMTP id p64so1858068ywg.7 for ; Thu, 11 Apr 2019 03:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Kn1CQ1tYlKG5aPBdLbq4769GlOaJ+hSDTJk4frbl//4=; b=wSXQKdFiLT7eRRV1xpEWlnn6oDoyrVoxEQpm7cWhC24G4u9LO5gywM4Mub9N6WDcar myRjy2THqlrNXGW+mbO4FlbVGHTmlIdEdysola3NWYAhWp6ATRsm+S6W//rxaUXC3bzI I5gFR8F4BSs1FKUYuY4IHHvIGZ8yzYmnRnR10tLXw3vWVfo8++FGgugTe5hM6zqma3Kj Y9VLykXXohkBPWKGPkhmvVwwtgmTAfU2t1CRdfwb7pqML4XdiJxLj9zi0J3cG7qcCZBD Rc1q1BsaNLLnQv89XCSkNSm4AnlfMXoPs4FO6mHzU10QXZ3ml7W4i3ZZS6yDYmD6Rp0A jQeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Kn1CQ1tYlKG5aPBdLbq4769GlOaJ+hSDTJk4frbl//4=; b=ZepLCQntCt435kK6vZ7+tSMugi927Pf/fe13E0i/2JR6NwfOE+QPq9OxtoZmnJ+VhI 6Snufi/2E7tKUFDylG+P2eFTcWpinwDudXRNB7KWnUy7A39v0wwYGa09mlkKTXBuiEdZ ZVPzG2rU1OceYaNfeuhlh9dR1XNGQtXXIjVNEVF1lFYdeXCHHd/GXrZFb1AvD23JZq2C nfnV1KnZE7Ycmu9mTc28+r9v/z5EM1s8VltpSxpcBLhi5hygtghvXsbCdbFpcb2Gll99 kuFjyObH4CMnEjrkYNj0b/urPrX2g1oWVAEOzDkCRmnTpLGfwkVuIauCJgWp7IV8EnN1 nZ1w== X-Gm-Message-State: APjAAAWjDv5sTExDd0EW/GN9ThajEmRO490AY1CgFdPeO94a4aFlcksR l5H5zF6/aZX9ZBqdcvJdnKn8yLxnaXEnp+8EJ7Y8PQ== X-Received: by 2002:a0d:d407:: with SMTP id w7mr36829790ywd.50.1554978401447; Thu, 11 Apr 2019 03:26:41 -0700 (PDT) MIME-Version: 1.0 References: <20190410101947.8603-1-juha-matti.tilli@foreca.com> In-Reply-To: From: Eric Dumazet Date: Thu, 11 Apr 2019 03:26:30 -0700 Message-ID: Subject: Re: [PATCH] net: add big honking pfmemalloc OOM warning To: Juha-Matti Tilli Cc: LKML , netdev , Rafael Aquini , Murphy Zhou , Yongcheng Yang , Jianhong Yin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 11:26 PM Juha-Matti Tilli wrote: > > On Wed, Apr 10, 2019 at 6:36 PM Eric Dumazet wrote: > > Before diving into the details, can we first double check which exact > > kernel version you are using ? > > > > In the past some pfmemalloc bugs have been solved, I do not want spend > > time finding them a second time. > > Of course I can tell the kernel version. > > The NFS server is 3.10.0-862.14.4.el7.foreca.x86_64 where "foreca" > means we've applied a custom Samsung SSD TRIM patch, nothing else > different from regular CentOS / RHEL kernel. > > The NFS client is 3.10.0-957.5.1.el7.x86_64. > > The pfmemalloc problem happens at the server, not at the client. > > The exact patches in this kernel may be a bit complicated to > determine, because RHEL apparently likes to maintain their own kernel > version. They do not have the SNMP counter even, which is why I opened > a bug report to RHEL Bugzilla. I have extracted source code, so if you > can tell a list of git commit SHA1 hashes that could fix the issue, I > can check manually whether they're there, and open bug reports to RHEL > bugzilla to have them backported if not there. > > I at least see this in the exact kernel version I'm using: Here (netdev/lkml) we deal with current kernels. Chances are very high the bug(s) you are fighting was(were) already fixed. Please repro the bug using latest David Miller net tree, otherwise we will _not_ accept any patch. Thank you > > static inline bool ixgbe_page_is_reserved(struct page *page) > { > return (page_to_nid(page) != numa_mem_id()) || page_is_pfmemalloc(page); > } > > ...so ixgbe shouldn't be reusing pfmemalloc pages. > > BR, Juha-Matti