[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240901220931.53d3ad335ae9ac3fe7ef3928@linux-foundation.org>
Date: Sun, 1 Sep 2024 22:09:31 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Suren Baghdasaryan <surenb@...gle.com>
Cc: kent.overstreet@...ux.dev, corbet@....net, arnd@...db.de,
mcgrof@...nel.org, rppt@...nel.org, paulmck@...nel.org, thuth@...hat.com,
tglx@...utronix.de, bp@...en8.de, xiongwei.song@...driver.com,
ardb@...nel.org, david@...hat.com, vbabka@...e.cz, mhocko@...e.com,
hannes@...xchg.org, roman.gushchin@...ux.dev, dave@...olabs.net,
willy@...radead.org, liam.howlett@...cle.com, pasha.tatashin@...een.com,
souravpanda@...gle.com, keescook@...omium.org, dennis@...nel.org,
jhubbard@...dia.com, yuzhao@...gle.com, vvvvvv@...gle.com,
rostedt@...dmis.org, iamjoonsoo.kim@....com, rientjes@...gle.com,
minchan@...gle.com, kaleshsingh@...gle.com, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
linux-mm@...ck.org, linux-modules@...r.kernel.org, kernel-team@...roid.com
Subject: Re: [PATCH v2 5/6] alloc_tag: make page allocation tag reference
size configurable
On Sun, 1 Sep 2024 21:41:27 -0700 Suren Baghdasaryan <surenb@...gle.com> wrote:
> Introduce CONFIG_PGALLOC_TAG_REF_BITS to control the size of the
> page allocation tag references. When the size is configured to be
> less than a direct pointer, the tags are searched using an index
> stored as the tag reference.
>
> ...
>
> +config PGALLOC_TAG_REF_BITS
> + int "Number of bits for page allocation tag reference (10-64)"
> + range 10 64
> + default "64"
> + depends on MEM_ALLOC_PROFILING
> + help
> + Number of bits used to encode a page allocation tag reference.
> +
> + Smaller number results in less memory overhead but limits the number of
> + allocations which can be tagged (including allocations from modules).
> +
In other words, "we have no idea what's best for you, you're on your
own".
I pity our poor users.
Can we at least tell them what they should look at to determine whether
whatever random number they chose was helpful or harmful?
Powered by blists - more mailing lists