linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Lee McQueen <mcq@disroot.org>
To: Michal Hocko <mhocko@suse.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	David Hildenbrand <david@kernel.org>,
	Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
	"Liam R . Howlett" <Liam.Howlett@oracle.com>,
	Vlastimil Babka <vbabka@kernel.org>,
	Mike Rapoport <rppt@kernel.org>,
	Suren Baghdasaryan <surenb@google.com>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v3] mm/vmpressure: scale window size based on machine memory
Date: Fri, 06 Mar 2026 17:44:08 +0100	[thread overview]
Message-ID: <31c4680848b833d53b1979b45d5a368d@disroot.org> (raw)
In-Reply-To: <aar4T90zjolmTGFa@tiehlicka>

On 2026-03-06 16:52, Michal Hocko wrote:
> On Wed 04-03-26 22:30:38, Benjamin Lee McQueen wrote:
>> the vmpressure window size has been fixed at 512 pages
>> (SWAP_CLUSTER_MAX * 16), ever since the file's inception. a TODO in
>> the file notes that the vmpressure window size should be scaled
>> similarly to vmstat's scaling, via machine size.
>> 
>> the problem with fixed window size on large memory systems:
> 
> Thank you for this much more detail insight into your thinking. This is
> a good start. I am still missing an overall motivation though. Are you
> trying to address a theoretical concern (the said TODO) or do you have
> any practical workload that generates bogus vmpressure events. 

yes, as i don't personally have a workload that explicitly requires
vmpresssure to not generate bogus events, it is still technically a "bug"
that can still be improved.  i believe many legacy systems would benefit
from this as they still use vmpressure notifications.

i agree PSI is the preferred interface, but vmpressure is still used in
other production environments, like Android's LMKD, right?

-ben



      reply	other threads:[~2026-03-06 16:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27 22:15 [PATCH] mm/vmpressure: scale window size based on machine memory and CPU count Benjamin Lee McQueen
2026-03-02  8:56 ` Michal Hocko
2026-03-02 12:15   ` Lorenzo Stoakes
2026-03-05  4:30     ` [RFC PATCH v3] mm/vmpressure: scale window size based on machine memory Benjamin Lee McQueen
2026-03-06 15:52       ` Michal Hocko
2026-03-06 16:44         ` Benjamin Lee McQueen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=31c4680848b833d53b1979b45d5a368d@disroot.org \
    --to=mcq@disroot.org \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=mhocko@suse.com \
    --cc=rppt@kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox