Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5533130yba; Wed, 10 Apr 2019 23:29:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7vQtVVzYTeIIkt60FdH0+Cqqxdznx4KluHvV0FTamHwpXnwF0z2F7d6v44tI/244yjUtB X-Received: by 2002:a62:62c3:: with SMTP id w186mr16088450pfb.73.1554964155654; Wed, 10 Apr 2019 23:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554964155; cv=none; d=google.com; s=arc-20160816; b=RJhIe/mppP11M37/aTLLdmQaciQxdXy1Rbkm/5Z1zvnU+fCC5Yt60gnwL9w9EJWK+f dzj4RaEguSFeuwGlPs6xjQ8195w+unzUHh9oJIOSMHUGFwM9ZmAwbGCpqFncE0IWtYb0 xCW9rtY2KLwjxXfRouN9IkEbOYL8mtDYqPD6V10A0cLwuHjbMHsqQuktHxhTH+AgkeM8 GqVPwKpAZY2ncXn4Xag3xw07csRFChusWRfVp3ADt0OWTKzy99u5ZV4Sj/C5yTy+j1lk sTdfy4EJ7bDMwNyuQs86vzOTM6AlBMXsMnaIN4OKJSPpROOhlvyRIaM4Ul7sZfPEFhCY gajg== 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=XBlYTTQ+rwt23q5R6DRfoOejUm/EuCQ+hMmOxtX/Ais=; b=vF003wp9dberSjVHdQETUknGZ1X7d8OjruDmRWsuZL5FSrYXY+SUTT1znIy9yCVkWa UvUFmkL0DZTS0d4rWIucJHjm4wFMeOgRQLrUu+P5p3PfBQRq4uax/rLjGxfKwtoI443J B47VgH0yjX+RvLLf6uxJSUuQJGSs1ngsVaVs+eNQHEHaAtY29VjnMv8JvScn4pfOynLL pilDycCJgNV2A+PBIu61btxSWIv5ailMAnTkRWcAKYHp8rG76GzBhFGFP8MXme3mqRiQ KGKMobp1rYio5iGIBJTRPkQSndZiWUD2mgag60OmIaLjKx8HcAMlseiR2RfFrr9rC+yf aqGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foreca.com header.s=google header.b=fGN46b3X; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si33683366pgk.76.2019.04.10.23.28.59; Wed, 10 Apr 2019 23:29:15 -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=@foreca.com header.s=google header.b=fGN46b3X; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbfDKG0P (ORCPT + 99 others); Thu, 11 Apr 2019 02:26:15 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:37988 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbfDKG0O (ORCPT ); Thu, 11 Apr 2019 02:26:14 -0400 Received: by mail-yb1-f193.google.com with SMTP id w206so1803455ybg.5 for ; Wed, 10 Apr 2019 23:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foreca.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XBlYTTQ+rwt23q5R6DRfoOejUm/EuCQ+hMmOxtX/Ais=; b=fGN46b3XaG1ZzLAKHET7HvsBGTfCtcHPQnCbIHj/58KI5sek59EahshSzC2EY82cnb ks+ZtcUhcBFPERvM/Hz4rxyrBBV1SISS23tcAEj8umarY06j0fcKlVqJ7Ec5Xl6TjsJQ JCtVY7lz9PdxH4PnaviopnJkbtkBHjxpWMiiM= 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=XBlYTTQ+rwt23q5R6DRfoOejUm/EuCQ+hMmOxtX/Ais=; b=gryjKVBolBlZO7awr9abxzX05VWuEX5OfilYZELyNrXB+xJhrHi2k3bOFR+jCGsrpG AoX+512WYiblyjTnhHhp/SDVqdnUesfdFo7Qfyl/vUrB6Lecm90bq7gK5uL8rdwFn5s6 +9Ewop19kC1OdhFlpp1o2llNGEGZr0E5Ifpx/yjhz1NctEYwYyqOmpfXO0tBlmxSgrHN qZ11Kr6O2m03YrbDEBUhmk6G4etptJjLl2UjN2z/xZPWcxNjtMMUrgfIZOraf6lVF5P6 D8CvZif0CWj6ExS3ztOCgDnnlldn36olSsSwma1rAJ7YLgv40QM3ewGjQbV54qFSyeeO 1Z2A== X-Gm-Message-State: APjAAAWoAqvVOlOeRxcSXHjJENU+AxYS1M4Ny5fJxuO0wpiBrVrnM0Ep AQm/vUJ7NUZNVgEyxbh9vH4Z5VY5nxDGWNivrouyVQ== X-Received: by 2002:a25:7a81:: with SMTP id v123mr39074063ybc.144.1554963973890; Wed, 10 Apr 2019 23:26:13 -0700 (PDT) MIME-Version: 1.0 References: <20190410101947.8603-1-juha-matti.tilli@foreca.com> In-Reply-To: From: Juha-Matti Tilli Date: Thu, 11 Apr 2019 09:26:02 +0300 Message-ID: Subject: Re: [PATCH] net: add big honking pfmemalloc OOM warning To: Eric Dumazet 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 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: 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