From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D361C2B9F4 for ; Fri, 25 Jun 2021 05:59:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 192526140F for ; Fri, 25 Jun 2021 05:59:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 192526140F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2B2D26B0036; Fri, 25 Jun 2021 01:58:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 28A1A6B005D; Fri, 25 Jun 2021 01:58:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 152826B006C; Fri, 25 Jun 2021 01:58:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0144.hostedemail.com [216.40.44.144]) by kanga.kvack.org (Postfix) with ESMTP id DA4546B0036 for ; Fri, 25 Jun 2021 01:58:58 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 1271822C06 for ; Fri, 25 Jun 2021 05:58:59 +0000 (UTC) X-FDA: 78291192798.22.70AB5A2 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf20.hostedemail.com (Postfix) with ESMTP id 89CD6366 for ; Fri, 25 Jun 2021 05:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624600738; 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: in-reply-to:in-reply-to:references:references; bh=d4K9nQTvedmwdvXMvLbqggOtPVmYLvoAes83xgcBXlc=; b=N9yq2EAvTfNuypHP0Lwh4hNam840VVTrFKIEpijkWY5o/AM6tLzuX4cWxC3CxgbH0KXJoL 7lEw6uZpgEE3RDvcRGfOeiitB5SPx86xPahNlg+jNBfHrxjmcXXXslLgRbuccHCnP+7nfM lEMJEqiYAX0aooS8tAKfBhDfMfbAE0s= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-25-Xz3G65b5MJmNRhAiybom8A-1; Fri, 25 Jun 2021 01:58:56 -0400 X-MC-Unique: Xz3G65b5MJmNRhAiybom8A-1 Received: by mail-wm1-f71.google.com with SMTP id o3-20020a05600c5103b02901aeb7a4ac06so3744159wms.5 for ; Thu, 24 Jun 2021 22:58:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=d4K9nQTvedmwdvXMvLbqggOtPVmYLvoAes83xgcBXlc=; b=INZBQte+4qoKem914k5crR36tVSgak87hw7azvWK3oUkPnkYSsiS9ETadJaC96EL7d K0aODK/26OxqskZxetQBN5Ic2QzpMop7gwo3iOsPppTKdEauTC/LwKboKV6Wf6pvYSkQ iQkxhxca2ZRnOsI5YJugrQYzkTHJ/2HQRcX75bLZ7lgQgC46kw3xOyxjwDnDyhidiXT5 uoHEjiFejgplBsDyADcxxGG4xJdbWuWl9Jl+1lHZeIOJ0yvVda4VEAHR7VmB/eRp8Bkf LTrD1yb0D+Q1VHjpx8ayx29su1bAwGILR/kKNjBfkqgJ5UfGgZDGE15LKr7UacWlplAj +BEQ== X-Gm-Message-State: AOAM533lVsX+SIQTslsgnAXiWSJOV6lVpjB/kz3gz9he+rOk5miGqP+3 4qWvWOCQ0wabIA5+2lDXzYnJNcun0X+reVLRG3mj18Xnpsqv1l7UQ4Vxpa1Z9OgjnDvanp0XyYW vb/PuH+qm2U4= X-Received: by 2002:adf:f689:: with SMTP id v9mr8681107wrp.314.1624600735604; Thu, 24 Jun 2021 22:58:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrE/C9IiJiiBZmtHnh5vRytdM8UZc8yuEPiya4jPaIkUYlRVxGTi7ahSp4MkMavGo37f8Tqw== X-Received: by 2002:adf:f689:: with SMTP id v9mr8681093wrp.314.1624600735412; Thu, 24 Jun 2021 22:58:55 -0700 (PDT) Received: from redhat.com ([77.124.79.210]) by smtp.gmail.com with ESMTPSA id w8sm4915282wre.70.2021.06.24.22.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 22:58:54 -0700 (PDT) Date: Fri, 25 Jun 2021 01:58:51 -0400 From: "Michael S. Tsirkin" To: Gavin Shan Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, alexander.duyck@gmail.com, david@redhat.com, akpm@linux-foundation.org, anshuman.khandual@arm.com, catalin.marinas@arm.com, will@kernel.org, shan.gavin@gmail.com Subject: Re: [PATCH v5 0/4] mm/page_reporting: Make page reporting work on arm64 with 64KB page size Message-ID: <20210625015826-mutt-send-email-mst@kernel.org> References: <20210625042150.46964-1-gshan@redhat.com> MIME-Version: 1.0 In-Reply-To: <20210625042150.46964-1-gshan@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=N9yq2EAv; spf=none (imf20.hostedemail.com: domain of mst@redhat.com has no SPF policy when checking 216.205.24.124) smtp.mailfrom=mst@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Stat-Signature: w79z46okbmq9rguy1ymy4ecxzdfzj76e X-Rspamd-Queue-Id: 89CD6366 X-Rspamd-Server: rspam06 X-HE-Tag: 1624600738-625618 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Jun 25, 2021 at 12:21:46PM +0800, Gavin Shan wrote: > The page reporting threshold is currently equal to @pageblock_order, which > is 13 and 512MB on arm64 with 64KB base page size selected. The page > reporting won't be triggered if the freeing page can't come up with a free > area like that huge. The condition is hard to be met, especially when the > system memory becomes fragmented. > > This series intends to solve the issue by having page reporting threshold > as 5 (2MB) on arm64 with 64KB base page size. The patches are organized as: > > PATCH[1/4] Fix some coding style in __page_reporting_request(). > PATCH[2/4] Represents page reporting order with variable so that it can > be exported as module parameter. > PATCH[3/4] Allows the device driver (e.g. virtio_balloon) to specify > the page reporting order when the device info is registered. > PATCH[4/4] Specifies the page reporting order to 5, corresponding to > 2MB in size on ARM64 when 64KB base page size is used. I sent comments on v4. They still apply I think. Want me to repeat them here? > Changelog > ========= > v5: > * Restore @page_reporting_order to @pageblock_order when > device is registered in PATCH[2/4] to keep "git bisect" > friendly at least. (Alex) > v4: > * Set @page_reporting_order to MAX_ORDER. Its value is > specified by the driver or falls back to @pageblock_order > when page reporting device is registered. (Alex) > * Include "module.h" in page_reporting.c (Andrew) > v3: > * Avoid overhead introduced by function all (Alex) > * Export page reporting order as module parameter (Gavin) > v2: > * Rewrite the patches as Alex suggested (Alex) > > Gavin Shan (4): > mm/page_reporting: Fix code style in __page_reporting_request() > mm/page_reporting: Export reporting order as module parameter > mm/page_reporting: Allow driver to specify reporting > virtio_balloon: Specify page reporting order if needed > > .../admin-guide/kernel-parameters.txt | 6 +++++ > drivers/virtio/virtio_balloon.c | 17 ++++++++++++++ > include/linux/page_reporting.h | 3 +++ > mm/page_reporting.c | 22 +++++++++++++++---- > mm/page_reporting.h | 5 ++--- > 5 files changed, 46 insertions(+), 7 deletions(-) > > -- > 2.23.0