Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1610691ybg; Wed, 23 Oct 2019 19:31:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwn7zwvTJy8DQ8zRiKF/OjtF1XUa4MzMQ78C2JDCRejQ0UgtdNC4f71ql0FMvAv0/2Av+q0 X-Received: by 2002:a50:e71a:: with SMTP id a26mr40517346edn.265.1571884309245; Wed, 23 Oct 2019 19:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571884309; cv=none; d=google.com; s=arc-20160816; b=dpv7d8iHVHCpkNw0MBCNKlyEkzlF2IRdxJOPkzqGMZqvoKEE/AvyzzJ67/37ZsLo8u R6wlfsanzsj/7FD5eP5RD5lNB5savv+Ztl5et7xt+b6GlQdqWF2/bgZDK68kdXWA7qtB Bzp/6irqyZpCslWBZ4xfn9q8v/sD/STfDAFGiJ5tXLpI0cEKFKmeVnQ0Ia8g3mL3sEs4 e8aHcWeHzwvJb7oYzWasfGb13gxcyE6PbEgV1H0IGljF3aYgE1tzeMVknpxXxYVtySfV 6jQ8i5XmGRBWAy0yF0voHI8BJDA/TMb3b6/eiEfwy8b880jQVEFIPeO3oXzkBiME+hFI lIQw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=cdptM1wjryYnQhJm9RmuX5FaBmrJ2EY+9SJ+YV4u0fQ=; b=eO/S/JkAqeb5pKvZOLh0cauk2mQj/raq2IDNxEHSUEpiMnMU85fPaYT11I3K0esxso 7GGPketu49F0g2/9UTx8K4hh9iOmrpeD7y9vctgK2A3f7ULQOB3tHMuOUiIB5nNE+pOR N3yKPqnzEMMPLN9oGTdL/b7P2yYedWZMMw4lIBfIVY2Q5gru7YLgGyrRuyYdeeo33UIr 12TTGTenrQxTMW8QggkIsRQhMTT010SBNNvPDnluCiBS9yy+1U2tVqHCf29F2zqJrrvi JX2fAfsexc87mmHNPS7LPJiqi0w5VVXScbqSxxCJHAp9sxHz7KW0H+ssqZmc5pOugZLh 9zUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UEm10kwh; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ob24si6655211ejb.295.2019.10.23.19.31.23; Wed, 23 Oct 2019 19:31:49 -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=@redhat.com header.s=mimecast20190719 header.b=UEm10kwh; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406412AbfJWPBP (ORCPT + 99 others); Wed, 23 Oct 2019 11:01:15 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:20779 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2391753AbfJWPBP (ORCPT ); Wed, 23 Oct 2019 11:01:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571842872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cdptM1wjryYnQhJm9RmuX5FaBmrJ2EY+9SJ+YV4u0fQ=; b=UEm10kwh/Gl+wyW634T5RyoDn0MZNkGl6QXiPnJTq67e2nRucJWzy7+Vk7bzmz9YfuzvZx osVKyGYUCkAhh+kFfcMclZAbeS9g5KOL1xx1q5cZdt9SrXCr9MkkIDCmze+VW1D9uaUXUy n9A/C396JBXuWa1xXYKHGEE5DsY/6uw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-226-Y09mMa8JNFO1Wvt2DH_ATQ-1; Wed, 23 Oct 2019 11:01:08 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 281081005500; Wed, 23 Oct 2019 15:01:06 +0000 (UTC) Received: from llong.remote.csb (dhcp-17-59.bos.redhat.com [10.18.17.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id C8AA919C77; Wed, 23 Oct 2019 15:01:04 +0000 (UTC) Subject: Re: [PATCH] mm/vmstat: Reduce zone lock hold time when reading /proc/pagetypeinfo To: Qian Cai , 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 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> From: Waiman Long Organization: Red Hat Message-ID: Date: Wed, 23 Oct 2019 11:01:04 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1571842093.5937.84.camel@lca.pw> Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: Y09mMa8JNFO1Wvt2DH_ATQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 wil= l 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. Cheers, Longman