mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Gregory Price (Meta)" <gourry@gourry.net>
To: "Gregory Price (Meta)" <gourry@gourry.net>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	kernel-team@meta.com,  akpm@linux-foundation.org,
	david@kernel.org, ljs@kernel.org,  liam@infradead.org,
	vbabka@kernel.org, rppt@kernel.org, surenb@google.com,
	 mhocko@suse.com, peterz@infradead.org, juri.lelli@redhat.com,
	 vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
	rostedt@goodmis.org,  bsegall@google.com,
	mgorman@techsingularity.net, mingo@kernel.org,
	 vschneid@redhat.com, kprateek.nayak@amd.com, ziy@nvidia.com,
	 baolin.wang@linux.alibaba.com, nico.pache@linux.dev,
	ryan.roberts@arm.com,  dev.jain@arm.com, baohua@kernel.org,
	lance.yang@linux.dev,  usama.arif@linux.dev, kas@kernel.org,
	joshua.hahnjy@gmail.com,  rakie.kim@sk.com,
	ying.huang@linux.alibaba.com, matthew.brost@intel.com,
	 byungchul@sk.com, apopple@nvidia.com, jannh@google.com,
	pfalcato@suse.de,  hannes@cmpxchg.org, osalvador@suse.de,
	raghavendra.kt@amd.com,  stable@vger.kernel.org
Subject: Re: [PATCH v5 5/7] sched/numa: scan PID-inactive VMAs for promotion
Date: Fri, 13 Nov 2026 15:44:10 -0500	[thread overview]
Message-ID: <179460265050.482102.15374067770225444971.b4-reply@b4> (raw)
In-Reply-To: <179434297609.2530531.2349001562856798404.b4-reply@b4>

On 2026-11-10 15:36 -0500, Gregory Price (Meta) wrote:
> On 2026-11-10 10:04 -0500, Gregory Price (Meta) wrote:
> ... snip ...
> 
> Sashiko report feedback
> > --- a/kernel/sched/fair.c
> > +++ b/kernel/sched/fair.c
> > @@ -4249,7 +4249,7 @@ static bool vma_needs_placement_scan(struct vm_area_struct *vma)
> >  	 * threads can help scan this vma, force a vma scan.
> >  	 */
> >  	if (READ_ONCE(mm->numa_scan_seq) >
> > -	   (vma->numab_state->prev_scan_seq + get_nr_threads(current)))
> > +	   (vma->numab_state->prev_placement_scan_seq + get_nr_threads(current)))
> >  		return true;
> ... snip ...
> > +		if (placement_scan)
> > +			vma->numab_state->prev_placement_scan_seq = mm->numa_scan_seq;
> 
> Sashiko took issue with these skips, but its reported impact is
> overstated.  It tries to point out a pre-existing condition:
> 
>   prev_scan_seq skips an update on a rare corner condition, but
>   now the same skip applies to prev_placement_scan_seq.
> 
> In modes 1 (placement) and 2 (tiering), the behavior is exactly the
> same as it was.
> 
> In mode 3 (placement + tiering) the result is that the starvation
> counter isn't reset - but everything still works anyway because the
> VMA is still being scanned.
> 
> I can follow up with *another* commit, but it's really low impact.
> Not sure it's worth the churn.
> 

I will refresh this next week and just address it in another commit.

-- 
~Gregory


  reply	other threads:[~2026-11-13 20:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 15:04 [PATCH v5 0/7] sched/numa: stop VMA scan filters from gating promotion Gregory Price (Meta)
2026-11-10 15:04 ` [PATCH v5 1/7] mm: support promotion-only NUMA hinting scans Gregory Price (Meta)
2026-11-10 15:04 ` [PATCH v5 2/7] mm: allow shared folios to be promoted to a fast tier Gregory Price (Meta)
2026-11-12  4:04   ` Bharata B Rao
2026-11-10 15:04 ` [PATCH v5 3/7] sched/numa: scan read-only file mappings in tiering mode Gregory Price (Meta)
2026-11-10 15:04 ` [PATCH v5 4/7] sched/numa: separate VMA placement from scan continuation Gregory Price (Meta)
2026-11-10 15:04 ` [PATCH v5 5/7] sched/numa: scan PID-inactive VMAs for promotion Gregory Price (Meta)
2026-11-10 20:36   ` Gregory Price (Meta)
2026-11-13 20:44     ` Gregory Price (Meta) [this message]
2026-11-10 15:04 ` [PATCH v5 6/7] mm: use BIT() for change_protection() flags Gregory Price (Meta)
2026-11-10 15:16   ` Lorenzo Stoakes (ARM)
2026-11-10 15:04 ` [PATCH v5 7/7] mm: use VMA flag helpers in NUMA balancing Gregory Price (Meta)
2026-11-10 15:15   ` Lorenzo Stoakes (ARM)
2026-11-10 16:24     ` Gregory Price (Meta)

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=179460265050.482102.15374067770225444971.b4-reply@b4 \
    --to=gourry@gourry.net \
    --cc=akpm@linux-foundation.org \
    --cc=apopple@nvidia.com \
    --cc=baohua@kernel.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=bsegall@google.com \
    --cc=byungchul@sk.com \
    --cc=david@kernel.org \
    --cc=dev.jain@arm.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=hannes@cmpxchg.org \
    --cc=jannh@google.com \
    --cc=joshua.hahnjy@gmail.com \
    --cc=juri.lelli@redhat.com \
    --cc=kas@kernel.org \
    --cc=kernel-team@meta.com \
    --cc=kprateek.nayak@amd.com \
    --cc=lance.yang@linux.dev \
    --cc=liam@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=matthew.brost@intel.com \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@suse.com \
    --cc=mingo@kernel.org \
    --cc=nico.pache@linux.dev \
    --cc=osalvador@suse.de \
    --cc=peterz@infradead.org \
    --cc=pfalcato@suse.de \
    --cc=raghavendra.kt@amd.com \
    --cc=rakie.kim@sk.com \
    --cc=rostedt@goodmis.org \
    --cc=rppt@kernel.org \
    --cc=ryan.roberts@arm.com \
    --cc=stable@vger.kernel.org \
    --cc=surenb@google.com \
    --cc=usama.arif@linux.dev \
    --cc=vbabka@kernel.org \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.com \
    --cc=ying.huang@linux.alibaba.com \
    --cc=ziy@nvidia.com \
    /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

all inboxes | Powered by JetHome®