Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp839143ybg; Wed, 23 Oct 2019 06:37:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMWPPFwGJny5JQBTkdwawULliSZVD8oS+14pAYEs75HKe/A6wveuFAcpRAevMLNLFEfHCE X-Received: by 2002:a17:906:5c0a:: with SMTP id e10mr32834106ejq.285.1571837828781; Wed, 23 Oct 2019 06:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571837828; cv=none; d=google.com; s=arc-20160816; b=OAy0ZJYpIjdaYl/X/PqjqWPnQmpY6Vdxk9kskRm9LNpvMoXWYBFKE4rFOuWSFNy37+ u/dOzFtgrguUywl76eMIbgMOubrbxSnK+ygtTW/lW77QwoQORp/TlPa/eyz9ZfrqnWA2 932LxAQnkUQgAU+Y+U+YEnHNWcDT6HirZyJKm6q27I9yd6kGHc/lYe+bGeckSsGajWH8 HP+9nvPspJ8AVhqlQWrHx4Hg3i2U7dMotnMJT4Xmb4cEDoZdfR8omf4I8QytDmo4SJrI nyV1pZ9PEoIKQ/KKJaO8jRCcTbBiYb77Z8w6XykXBlZLqr8X9pE9cNlrA9MQRWbhj45l /70A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=mKyOrNdcShBVuby78giN6WHF0/2rdo1R9G5aayTHBy4=; b=Z3664XPuEOqDJYI9qRib3DNjnOK5u9jfbrIHuFyE0r1ZtV6gGM81O/VBIp13skd6q+ 6BR24fPb/Zz1DfCNv0J1E1jiLpn9w49YrMYO4vhTgHTIQZ+ha2Co5qiPSNPJtaTdD1MD mFRqga/zuuNQVK9kndJRy6kFbQM248GlOxGtGbcEVpiUGpq1MUgNvmuqx5+QPSNJ0tTg 0B5R8UxrKoj/xOyofcMpkZrAgcSJwrtSeC2uLzgpIRyXAENCVKlUOqtYr2AxSYcVSRNZ MTZeC6XrNmqbfS48V05QlsoTMZ25hZJq9OYsDkyWvXKiNqS3rofFoX+nytSqwPDYk8bd H38g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=DQf113s2; 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 o3si8564341edi.374.2019.10.23.06.36.45; Wed, 23 Oct 2019 06:37:08 -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=DQf113s2; 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 S2391615AbfJWMmo (ORCPT + 99 others); Wed, 23 Oct 2019 08:42:44 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:39939 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732361AbfJWMmo (ORCPT ); Wed, 23 Oct 2019 08:42:44 -0400 Received: by mail-qk1-f194.google.com with SMTP id y81so15684090qkb.7 for ; Wed, 23 Oct 2019 05:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=mKyOrNdcShBVuby78giN6WHF0/2rdo1R9G5aayTHBy4=; b=DQf113s2Ove9W20kNFDkOTSoIFdDb3YWXnkZWNQ87u6IGupJcMQbUlbei0LZXxZQs/ TqpXedoG0Czy54pJzsg6c0oIBRDYsRS5dWGPDslcttanQD3uNlsKuiBl6G92fUXi+jXA NY8AYQdI6IeuI0f8EKfDfvytMOLr8a2f/JHG5wYJhXEAptTMOLr+mpljwKjUj/Napzq1 96agON74xwbA/UQWQUx7ktbirN503MLZuUDG19lI1UZyOrsLXJ8qb9ogaJJ8wxlOLXt5 Qqql8yuW4FkEMeIJwKoBx9JwiJI6UCKohvK4E3WZGkchw1m4oy2DtwDVa3MCF2y+Ya4Q vEnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=mKyOrNdcShBVuby78giN6WHF0/2rdo1R9G5aayTHBy4=; b=A+qYF+K8FjvivvH9xV+hFL4RTR2qhVtMpMVupLA/Ns3UmF5h/hUZJMmWgCOjYMaRWO 1pjUjkBqwTRVO2TXlacWaexwsu1bBsx7t0gWiUyZR6QRFRXr1SlUqFpn6P46V0Nc+lzU 2m3mMSChyjNo+hl1XGNO8DpqujCuJiYTbzCTrpRTdkzVxu3KfgqWE13ULbTChq6FBAvz HSs+tAGmjKe6sTMiDtesJW7dk0Sl77ryrQ/Ngy5/RNeeM56rUoYylzhaIuzEtmg0DdoC zCk4OxWLcZC1yA4ywBTOQPFqEiCbx8Eke8jMe6XTCtetB0hoL3DonNzq8gReH5rwGdaQ B5Ng== X-Gm-Message-State: APjAAAVZSRMfvuxoSatWVX/oTYKqQYRbf0GIr6WHtZ6LYTfw9gUgpbLk HFS+4iEFZpuk+6nK0Xgb41tAjg== X-Received: by 2002:a37:a8d3:: with SMTP id r202mr7705859qke.405.1571834561570; Wed, 23 Oct 2019 05:42:41 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id j7sm17172579qtc.73.2019.10.23.05.42.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Oct 2019 05:42:40 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] mm/vmstat: Reduce zone lock hold time when reading /proc/pagetypeinfo Date: Wed, 23 Oct 2019 08:42:40 -0400 Message-Id: References: <20191023095607.GE3016@techsingularity.net> Cc: Michal Hocko , Mel Gorman , Waiman Long , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Roman Gushchin , Vlastimil Babka , Konstantin Khlebnikov , Jann Horn , Song Liu , Greg Kroah-Hartman , Rafael Aquini In-Reply-To: <20191023095607.GE3016@techsingularity.net> To: Mel Gorman X-Mailer: iPhone Mail (17A878) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Oct 23, 2019, at 5:56 AM, Mel Gorman wrote: >=20 > Again, the cost is when reading a proc file. =46rom what Andrew said, > the lock is necessary to safely walk the list but if anything. I would > be ok with limiting the length of the walk but honestly, I would also > be ok with simply deleting the proc file. The utility for debugging a > problem with it is limited now (it was more important when fragmentation > avoidance was first introduced) and there is little an admin can do with > the information. I can't remember the last time I asked for the contents > of the file when trying to debug a problem. There is a possibility that > someone will complain but I'm not aware of any utility that reads the > information and does something useful with it. In the unlikely event > something breaks, the file can be re-added with a limited walk. Agree. It is better to remove this file all together in linux-next first for= a while to see if anyone complains loudly.=