[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2101121627490.20570@www.lameter.com>
Date: Tue, 12 Jan 2021 16:35:28 +0000 (UTC)
From: Christoph Lameter <cl@...ux.com>
To: Jann Horn <jannh@...gle.com>
cc: Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux-MM <linux-mm@...ck.org>,
kernel list <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Roman Gushchin <guro@...com>,
Johannes Weiner <hannes@...xchg.org>,
Shakeel Butt <shakeelb@...gle.com>,
Suren Baghdasaryan <surenb@...gle.com>,
Minchan Kim <minchan@...nel.org>
Subject: Re: SLUB: percpu partial object count is highly inaccurate, causing
some memory wastage and maybe also worse tail latencies?
On Tue, 12 Jan 2021, Jann Horn wrote:
> [This is not something I intend to work on myself. But since I
> stumbled over this issue, I figured I should at least document/report
> it, in case anyone is willing to pick it up.]
Well yeah all true. There is however a slabinfo tool that has an -s option
to shrink all slabs.
slabinfo -s
So you could put that somewhere that executes if the system is
idle or put it into cron or so.
This is a heavy handed operation through. You could switch off partial cpu
slabs completely to avoid the issue. Nothing came to mind in the past on
how to solve this without sacrificing significant performance or cause
some system processing at random times while the shrinking runs. No one
wants any of that.
Being able to do it from userspace cleanly shifts the burden to userspace ;-)
You can even do random heavy system processing from user space if you put
a sleep there for random seconds between the shrinking runs.
Powered by blists - more mailing lists