Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2932085pxf; Sun, 14 Mar 2021 18:01:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLNoHnD5Pod6V8x/CJpCrHxKce2JydaXKCJHCpii25y1V0q9JxiPmV8uedbOdDRhUvRqRW X-Received: by 2002:a17:906:688:: with SMTP id u8mr20447158ejb.38.1615770080341; Sun, 14 Mar 2021 18:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615770080; cv=none; d=google.com; s=arc-20160816; b=J3Y0vpHcKcgqfEetqLbMMnglfH60WZg0g0tzNBjYc18IjVjCKn5Hz6y2IdKYgyAm71 DkMPoIiBfM6/rBDrIpkkhyddW6ztkJdzfr6idpM7F8r5oaQLIZ/1tEoiWvDImkFXJtzg aGaKX2EwjGZj2xBdnYbEDEGjFBekBuj4/aN5SOnzBuP+0O4lbuMxp4iEmHSfjHtN5Lda VVEzrm9mlqU4gcJ1f+/o4dbVZcgDEtVHiaKQgQ9D/sf67u0/8sZZyxwPdzR2wKqfLC2q fjp0zfjswCd6qt2TaZEvZZQU3GVWan0SKyR9LlkXiB4QEIhPVahtTQWzc5HS0QnAHgmR qFqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Zc50leSX2oieymemRjcX1In4Wa04eq4VV3W1lZ9TsKU=; b=hZIMQtJRqR6sw3RwMNZCQO/UQsCcvza2dlqvHdRp11Er/HCwxxV/OpG5T9TYjeIveZ 7XAQHahLejmqJyJHJAr78S0XmY8IPbNFe87pnArdUwVjPxlofZy2onZMHpe7wZ17M3SF ul68FLlxKXA9AIEaFvHsBd6sD8o79uyFOFGCWiodYu/XfUwaT/nmQpVDcYWBHhHYou4k x2IHbbCOoxNs5tEnfudnKmh88hV+pOknJKYiaMccSX0R/w+y/ylpTc2NjheA6hQZbeQ3 kUqyD5G+0/L8b7y2vDtfCcApyOonBdFQIEyvgeI3hVYT6WS6Tsv/05pjm1ozwCLWW6jN SAVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=giFIm+Ix; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si9583294edw.87.2021.03.14.18.00.57; Sun, 14 Mar 2021 18:01:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=giFIm+Ix; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbhCOAwu (ORCPT + 99 others); Sun, 14 Mar 2021 20:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbhCOAwe (ORCPT ); Sun, 14 Mar 2021 20:52:34 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 139FBC061574 for ; Sun, 14 Mar 2021 17:52:34 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id f10so7851417ilq.5 for ; Sun, 14 Mar 2021 17:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Zc50leSX2oieymemRjcX1In4Wa04eq4VV3W1lZ9TsKU=; b=giFIm+IxQarWD5opEWon9FvSYpKP+CsgV1c3/qcHH14QnszSL3GG7RZb19uknDZl9m QkeWCQeHkk3joLKBKaYcuwQUBgVbkeZ5DF9dGu68YTfFSIiZwPpBh5hGmPvZOnduRFjr URmeEdq4q1IFZw7X6tfcOXYw6qBg0wikhjrcoDk1lRbgYEsTMzVEuOnmt6m+rq9mxDI/ CU9mH92LL8u2jhe4wxHeVpusoC1k0WgdbzI8bpXsowYbMHfZJct5yIIU6ThnvuYoHyeR vZQVeFe04ZFxbOCb2l5AJoT9Tpagi4PV01N55yWGxmyhfkKCZ2vgRmA/GiyTQEuhqzfl HnTw== 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=Zc50leSX2oieymemRjcX1In4Wa04eq4VV3W1lZ9TsKU=; b=AN5lrv7+qO8cOQ0yFYRMECc4odkbvVJAWThIFXQtBwTe/Bu7nJf+XtXJ0cnynCNOL0 CNQMV1qtAJX46E7cnQHi67ohZZ2b4ozmftNO4UqAJl3Yr9/kt59QpxjmmED6ASYaBT1P jknkFt/U1WDxZXPFbGcTIj8Pu2pWCxqsKFxNFIEOgWKjwdQb/ZlnPDaQqKb8CT4n9d5H b+btREtsLN4UFcuLIoyU0TND9HNXmg8HFGEKipb2IZdPBjPTmMeBSjgBU7Lb29miD6Uq YnS18wQXF+MGoOj6jjvIUKTjhMBy+7B5j76XrECACcT3LrIy8TbezqjNSRDm/SNusLOD Eskw== X-Gm-Message-State: AOAM5316hGd8gEsDSLNK0egBkjkftw4/yqELFXnkeGoc1arKyEnI56CF AyqRiuNDxgf0BHnExSlHl3XzTQ== X-Received: by 2002:a05:6e02:f90:: with SMTP id v16mr9694973ilo.294.1615769553344; Sun, 14 Mar 2021 17:52:33 -0700 (PDT) Received: from google.com ([2620:15c:183:200:4d84:eb70:5c32:32b8]) by smtp.gmail.com with ESMTPSA id c18sm7091908ild.37.2021.03.14.17.52.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 17:52:32 -0700 (PDT) Date: Sun, 14 Mar 2021 18:52:28 -0600 From: Yu Zhao To: Zi Yan Cc: linux-mm@kvack.org, Alex Shi , Andrew Morton , Dave Hansen , Hillf Danton , Johannes Weiner , Joonsoo Kim , Matthew Wilcox , Mel Gorman , Michal Hocko , Roman Gushchin , Vlastimil Babka , Wei Yang , Yang Shi , Ying Huang , linux-kernel@vger.kernel.org, page-reclaim@google.com Subject: Re: [PATCH v1 00/14] Multigenerational LRU Message-ID: References: <20210313075747.3781593-1-yuzhao@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 14, 2021 at 06:48:17PM -0400, Zi Yan wrote: > On 13 Mar 2021, at 2:57, Yu Zhao wrote: > > Problems > > ======== > > 31.03% page_vma_mapped_walk > > 25.59% lzo1x_1_do_compress > > 4.63% do_raw_spin_lock > > 3.89% vma_interval_tree_iter_next > > 3.33% vma_interval_tree_subtree_search > > Solutions > > ========= > > 49.36% lzo1x_1_do_compress > > 4.54% page_vma_mapped_walk > > 4.45% memset_erms > > 3.47% walk_pte_range > > 2.88% zram_bvec_rw > > Is this profile from a system with this patchset applied or not? > Do you mind sharing some profiling data with before and after applying > the patchset? So it would be easier to see the improvement brought by > this patchset. I've snipped everything else to make the context more clear. These two kswapd profiles were collected under roughly the same memory pressure. In other words, kswapd reclaimed (compressed) about the same number of pages and therefore spent about the same amount of CPU time in lzo1x_1_do_compress() in each profile. The percentages of lzo1x_1_do_compress() are different because the total CPU usage are different. Dividing the second percentage by the first, we know we have roughly cut kswapd CPU usage by half. > Are there any performance numbers for specific application (before and > after applying the patches) you can show to demonstrate the improvement? The kswapd profiles are from Chrome OS, i.e., laptops running the v5.11 kernel and the Chrome browser. And we've also collected benchmarks from various workloads on servers and phones running older kernel versions too. Do you have a platform in mind? I'd be happy to share the data with you. Or if you have some workloads/benchmarks, I could collect some numbers from them too.