Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp648531rwe; Wed, 31 Aug 2022 08:40:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR6/H1HcbjJjefNg2cfcGyDJ/vq7IO73nIvh+aoObL6Js9qqKa2rvRb0+rZKyR8nFOltarS+ X-Received: by 2002:a17:906:dc8f:b0:741:9f54:96ff with SMTP id cs15-20020a170906dc8f00b007419f5496ffmr8981811ejc.682.1661960420321; Wed, 31 Aug 2022 08:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661960420; cv=none; d=google.com; s=arc-20160816; b=aGOfHgSo+dbUf1bEAXTdDe3HLodtu6KsD9cH6OW2mUNE8KPyBUeTGx0jlKMXY6WHvX ts23+ddu/vDQMkmff8ZV4cSmLUDStzmvLyPaewhvuzGLJGiSLgYRB7DAKM4GiSLzobOf XC540GiV5bo7J+kdh0fqhYPqrIXmqY6BshJy+Hx2yqf7ZmAmWMsHXgHN1d+oE8XrqewY 6ouFLfeH5o3Y97upsF8wMu1ZBpX2+v8t2UMLUosse8kJY4kq5U6Y06cbyFZQfsOnUvl/ AFepbPfVfk2YaC1/QKjVYYOTesWBir97Ne4HhX+1UGnlAq5KfPtxcab3iZsSdspXoN+D 0qwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Q+W9pQZpC1jkEyVSiVCOsM1q4v1xTtYJkNUumhOODfw=; b=ATICMbZSXqRjLiNueSaO7MeUMrU/iRxZdc7b6zAGqGhNu8YV/IMTYQo1mBd8AXB84i jDEl3AsdoJTtzyuu6MzxnzCk6N2hJ9Q7P2xAE7qCe9OFnsPQ3Q+EdasMQ4ImaKQWnEph ixjkFM1k4t07FVvyirz274CGJTSbR4OfC31K9Hh/o5PNfYjns20htkQZF7nyeK5xJm/i GVUyKA/7YYbcZ70AOHEp2Xa21coKPYtAlyY7vW0h0fJnxEjAv6T1J8HvnLoRfRbCuvom ahkleWvtqH8NLT7n0q0Cs7tgNAM+VMwg76wxiDX/YuxDCVLkXyOZVRxeDpmweMW1Q4RD dt4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ao1HR0iH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a1709060c1300b0073db945fcc0si4830393ejf.214.2022.08.31.08.39.54; Wed, 31 Aug 2022 08:40:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ao1HR0iH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231609AbiHaPNZ (ORCPT + 99 others); Wed, 31 Aug 2022 11:13:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbiHaPNX (ORCPT ); Wed, 31 Aug 2022 11:13:23 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2972D5981; Wed, 31 Aug 2022 08:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661958802; x=1693494802; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Yf2gNNoFyU0e/oBX5JjGSbyHp3Rxy0ZZcWvgHdfDez4=; b=Ao1HR0iH1FUcghu+dUP31ArQ609HtLfZ3mIMRYWzw91nCkBMYb8xv7t0 qcTFwdoV6ynnvQ6Mhyh42kn7XL1IczqOumCWB7NfuBm254GMHkvXkhLSa zOMLwNDSh8aexnEKb+SsF8577PfQLtInzysN94UUNxu4+xtZ3lGoQBZSD bS/E8zZ1m8kaPiC3+ores/p3sb3ktNC4gYp8XDnoSjYTe8gOcHQpyrwFB W5i77wIzi0+5m3w7qncZcrEgnA66MVKUz2dooC8fQYiezIwDwVmiI4o3I aQmvU9bqK8BGIkLSlul/7SNEsC7A+Hsq5EdGpCGePaxlimIigdzf1asky Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="381765761" X-IronPort-AV: E=Sophos;i="5.93,278,1654585200"; d="scan'208";a="381765761" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 08:13:22 -0700 X-IronPort-AV: E=Sophos;i="5.93,278,1654585200"; d="scan'208";a="738133205" Received: from aametzl-mobl.amr.corp.intel.com (HELO [10.251.3.56]) ([10.251.3.56]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 08:13:20 -0700 Message-ID: Date: Wed, 31 Aug 2022 08:13:20 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: OpenWrt / MIPS benchmark with MGLRU Content-Language: en-US To: Yu Zhao , linux-mm@kvack.org Cc: Andrew Morton , Andi Kleen , Aneesh Kumar , Catalin Marinas , Dave Hansen , Hillf Danton , Jens Axboe , Johannes Weiner , Jonathan Corbet , Linus Torvalds , Matthew Wilcox , Mel Gorman , Michael Larabel , Michal Hocko , Mike Rapoport , Peter Zijlstra , Tejun Heo , Vlastimil Babka , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, page-reclaim@google.com References: <20220815071332.627393-1-yuzhao@google.com> <20220831041731.3836322-1-yuzhao@google.com> From: Dave Hansen In-Reply-To: <20220831041731.3836322-1-yuzhao@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/30/22 21:17, Yu Zhao wrote: > TLDR > ==== > RAM utilization Throughput (95% CI) P99 Latency (95% CI) > ---------------------------------------------------------- > ~90% NS NS > ~110% +[12, 16]% -[20, 22]% I'll give you points for thinking out of the box on this one. This is a piece of hardware where both latency and bandwidth theoretically matter. I've got a slightly older but similar piece of Ubiquiti hardware with 512MB of RAM. It doesn't run OpenWRT, fwiw. Maybe my firmware is a bit outdated. *But*, most of the heavy lifting for packet flow on these systems is done in hardware. They have some hardware acceleration to be able to _route_ at gigabit speeds, so they're probably not quite as sensitive to software hiccups as lower-end routers. That said, my system at least does not typically have *any* memory pressure. Right now, it hasn't even filled free memory with page cache and it's been up for over a month: # cat /proc/meminfo MemTotal: 491552 kB MemFree: 160188 kB MemAvailable: 373088 kB Cached: 151004 kB I think a better tl;dr would be: MGLRU doesn't help much or cause any regressions on this hardware. Under (atypical) synthetic memory pressure, MGLRU did show some modest but measurable throughput and latency benefits. In other words, this provides more of a data point that MGLRU doesn't hurt medium-ish sized embedded systems. I think you could make an even stronger case with even smaller hardware or something that actually sees memory pressure on a regular basis in the wild.