Return-Path: virtio-dev-return-6152-cohuck=redhat.com@lists.oasis-open.org Sender: List-Post: List-Help: List-Unsubscribe: List-Subscribe: Received: from lists.oasis-open.org (oasis-open.org [10.110.1.242]) by lists.oasis-open.org (Postfix) with ESMTP id 0CC00985A54 for ; Mon, 23 Sep 2019 15:47:41 +0000 (UTC) From: David Hildenbrand References: <20190918175109.23474.67039.stgit@localhost.localdomain> <20190918175249.23474.51171.stgit@localhost.localdomain> <20190923041330-mutt-send-email-mst@kernel.org> <20190923105746-mutt-send-email-mst@kernel.org> <20190923113722-mutt-send-email-mst@kernel.org> Message-ID: <49395e48-175f-8483-77f5-5fc3aca8b7cb@redhat.com> Date: Mon, 23 Sep 2019 17:47:24 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: [virtio-dev] Re: [PATCH v10 3/6] mm: Introduce Reported pages To: "Michael S. Tsirkin" , Alexander Duyck Cc: virtio-dev@lists.oasis-open.org, kvm list , Dave Hansen , LKML , Matthew Wilcox , Michal Hocko , linux-mm , Vlastimil Babka , Andrew Morton , Mel Gorman , linux-arm-kernel@lists.infradead.org, Oscar Salvador , Yang Zhang , Pankaj Gupta , Konrad Rzeszutek Wilk , Nitesh Narayan Lal , Rik van Riel , lcapitulino@redhat.com, "Wang, Wei W" , Andrea Arcangeli , Paolo Bonzini , Dan Williams , Alexander Duyck List-ID: On 23.09.19 17:45, David Hildenbrand wrote: > On 23.09.19 17:37, Michael S. Tsirkin wrote: >> On Mon, Sep 23, 2019 at 08:28:00AM -0700, Alexander Duyck wrote: >>> On Mon, Sep 23, 2019 at 8:00 AM Michael S. Tsirkin wrote: >>>> >>>> On Mon, Sep 23, 2019 at 07:50:15AM -0700, Alexander Duyck wrote: >>>>>>> +static inline void >>>>>>> +page_reporting_reset_boundary(struct zone *zone, unsigned int order, int mt) >>>>>>> +{ >>>>>>> + int index; >>>>>>> + >>>>>>> + if (order < PAGE_REPORTING_MIN_ORDER) >>>>>>> + return; >>>>>>> + if (!test_bit(ZONE_PAGE_REPORTING_ACTIVE, &zone->flags)) >>>>>>> + return; >>>>>>> + >>>>>>> + index = get_reporting_index(order, mt); >>>>>>> + reported_boundary[index] = &zone->free_area[order].free_list[mt]; >>>>>>> +} >>>>>> >>>>>> So this seems to be costly. >>>>>> I'm guessing it's the access to flags: >>>>>> >>>>>> >>>>>> /* zone flags, see below */ >>>>>> unsigned long flags; >>>>>> >>>>>> /* Primarily protects free_area */ >>>>>> spinlock_t lock; >>>>>> >>>>>> >>>>>> >>>>>> which is in the same cache line as the lock. >>>>> >>>>> I'm not sure what you mean by this being costly? >>>> >>>> I've just been wondering why does will it scale report a 1.5% regression >>>> with this patch. >>> >>> Are you talking about data you have collected from a test you have >>> run, or the data I have run? >> >> About the kernel test robot auto report that was sent recently. > > https://lkml.org/lkml/2019/9/21/112 > > And if I'm correct, that regression is observable in case reporting is > not enabled. (so with this patch applied only, e.g., on a bare-metal system) > To be even more precise: # CONFIG_PAGE_REPORTING is not set -- Thanks, David / dhildenb --------------------------------------------------------------------- To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org