Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1630064ybg; Wed, 23 Oct 2019 20:00:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjdy7RBcj7G7anitbp0szoUbsTkSpYH7F8iwoArsH4tMlgj4TqcPZ6LMYENyWMs/Mp00lV X-Received: by 2002:a50:e606:: with SMTP id y6mr40906456edm.261.1571886004529; Wed, 23 Oct 2019 20:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571886004; cv=none; d=google.com; s=arc-20160816; b=YwR73r+UfYZyD+i1pxaP0eidOj6X7wAF/Bc3FJ6A3v1DBlrQq35Y+jnH6yVo7pyMQE b40YXv6s5a9OuEggbtf9PnP1AxNJp0joyDm8RlVeKQQumXzvAkJ2JBL0xYa5vcyNVu0n YIAyVQABdLUjR+Vx0VQpeIX8uRKr3MRmJwNDc/xe1+yZ5orNzT0VzNuoSIovJJ3j9hhS eZi7S+s+09oj9xo1fjiCsj5nw6RIjqwLcG36VxmQ3Efffl62JEATZh2eKE8BfTKV3ngJ Dy5BMyVFBGo+nd4FVfl/2DSGJkFwgm81thxd5Vzd3LIN7ToFX9a32Uez1Fu82CtkG/A+ +YKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=SLjhfsX3TyBTxi+fadpIVv6MU4Vj9o2A3I+zpLB2nks=; b=Prmu93wKCgGjHAzeQ5R77/jL0eAqfN/pavNn7ITkTZdHw/SFv8HJK4/CIT9SgdKAYG Qrg/EaFIzKldThlhW6TvMK3rv/Ci5MGYEVcr6StP7x6K8QyCGDKJ9IRMiIpzhPpUCr/Z dAK92AE2pynUB2r7aBbssXIkarzFHH5RmbiE99pevl7S0Mwb4SKnoUZHQH02Y8n3vepI CLABj5pTl0poWxQCDgIzNo0jC3CVW+55VFW99OWFsrmNoHL2wwsgpmKuNJefcwTQFfdM frY1sEd83NaxWRUx9pF98YS4iOeeNhe9nEd9gjtIvUehPOFvZUmL8iKFuwo+ZHt3qVr4 xtNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=dpZNxdHO; 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 y2si15940295eds.98.2019.10.23.19.59.16; Wed, 23 Oct 2019 20:00:04 -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=@lca.pw header.s=google header.b=dpZNxdHO; 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 S2404051AbfJWPFx (ORCPT + 99 others); Wed, 23 Oct 2019 11:05:53 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:34320 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390530AbfJWPFw (ORCPT ); Wed, 23 Oct 2019 11:05:52 -0400 Received: by mail-qk1-f193.google.com with SMTP id f18so19455917qkm.1 for ; Wed, 23 Oct 2019 08:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=SLjhfsX3TyBTxi+fadpIVv6MU4Vj9o2A3I+zpLB2nks=; b=dpZNxdHOy4bVG236Wqmg3LjjIOL2Pb9HsX5jejGqUUraI6L7k/lsMZBeRntTpSU5Zr 2mubf6q7jQDqSpXmaO/S2FbhM+f3yB+wYQ6jQ6ip80Aq/icFyQ6jJOIr2NmmAeMEQCEe D2gmG1kN+UrdPCg4s+WBcPnkZ+W6uxER0eOfSKinvsCmgJCdRAPxvaUMNxdRVBlcoTKW RUJvGibJhkDLc+eIv6fhxBdEZzRuMWmhunkFVKX5RyYb2djcEou9Se3RJAzmn1s9LqEG Cr/I82a6yc29yyiX9frfgfKomvb7oNbcSG45U8PBW5Ggg81miqNowwQ1jWN5KoDfhPra HL0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=SLjhfsX3TyBTxi+fadpIVv6MU4Vj9o2A3I+zpLB2nks=; b=X11TV6QkcAURBTJger3h3ULAlhyXj6lCYBThdbcH/XsjKouC/rzutP97YjoWptfPBB UynGyTgo0hXBBlNsj0AcROnD7/BDmuFO9F67h59QIdGUf6Q6WQDmaDPtJkk5QF16hEHy ia73uUFlMy46sZp/ZaELOBN0P27Quzc5S8meFV6vw6HG7SEXg34sub2Ywws2JBtACnKj DO3ax0/GkSgBdj5xKGP4O31l6iEFHUE8681v+H5oNTZM2IeDw8uWzTld5SNMmSrKWMvR FfY48OUEjT0GRbQrcL73Nm6M1ttx30VqMe2UVfoKXtu8jjIQ1iVCB79YRdcv6s9ISPxy oLgA== X-Gm-Message-State: APjAAAVTUcBXtWa65F9EkF5sAJ+C5IAvesvuPirIR+JXEiIQ2cbYn7NV BDo3RiDja++16UqCLuemtjdxmQ== X-Received: by 2002:a37:8dc6:: with SMTP id p189mr8546331qkd.421.1571843151739; Wed, 23 Oct 2019 08:05:51 -0700 (PDT) Received: from dhcp-41-57.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 18sm8420462qky.109.2019.10.23.08.05.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Oct 2019 08:05:51 -0700 (PDT) Message-ID: <1571843149.5937.86.camel@lca.pw> Subject: Re: [PATCH] mm/vmstat: Reduce zone lock hold time when reading /proc/pagetypeinfo From: Qian Cai To: Waiman Long , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Michal Hocko , Roman Gushchin , Vlastimil Babka , Konstantin Khlebnikov , Jann Horn , Song Liu , Greg Kroah-Hartman , Rafael Aquini Date: Wed, 23 Oct 2019 11:05:49 -0400 In-Reply-To: References: <20191022162156.17316-1-longman@redhat.com> <20191022145902.d9c4a719c0b32175e06e4eee@linux-foundation.org> <2236495a-ead0-e08e-3fb6-f3ab906b75b6@redhat.com> <1571842093.5937.84.camel@lca.pw> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-10.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-10-23 at 11:01 -0400, Waiman Long wrote: > On 10/23/19 10:48 AM, Qian Cai wrote: > > > > this still isn't a bulletproof fix. Maybe just terminate the list > > > > walk if freecount reaches 1024. Would anyone really care? > > > > > > > > Sigh. I wonder if anyone really uses this thing for anything > > > > important. Can we just remove it all? > > > > > > > > > > Removing it will be a breakage of kernel API. > > > > Who cares about breaking this part of the API that essentially nobody will use > > this file? > > > > There are certainly tools that use /proc/pagetypeinfo and this is how > the problem is found. I am not against removing it, but we have to be > careful and deprecate it in way that minimize user impact. What are those tools?