[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <be281873-7c28-12b4-7eb5-50d08042549f@intel.com>
Date: Wed, 31 Aug 2022 08:13:20 -0700
From: Dave Hansen <dave.hansen@...el.com>
To: Yu Zhao <yuzhao@...gle.com>, linux-mm@...ck.org
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Andi Kleen <ak@...ux.intel.com>,
Aneesh Kumar <aneesh.kumar@...ux.ibm.com>,
Catalin Marinas <catalin.marinas@....com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Hillf Danton <hdanton@...a.com>, Jens Axboe <axboe@...nel.dk>,
Johannes Weiner <hannes@...xchg.org>,
Jonathan Corbet <corbet@....net>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Matthew Wilcox <willy@...radead.org>,
Mel Gorman <mgorman@...e.de>,
Michael Larabel <Michael@...haellarabel.com>,
Michal Hocko <mhocko@...nel.org>,
Mike Rapoport <rppt@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Tejun Heo <tj@...nel.org>, Vlastimil Babka <vbabka@...e.cz>,
Will Deacon <will@...nel.org>,
linux-arm-kernel@...ts.infradead.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, x86@...nel.org,
page-reclaim@...gle.com
Subject: Re: OpenWrt / MIPS benchmark with MGLRU
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.
Powered by blists - more mailing lists