Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1499782

Re: [PATCH] Don't touch single threaded PTEs which are on the right node

From Andi Kleen <ak@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Don't touch single threaded PTEs which are on the right node
Date 2016-10-12 17:50 +0200
Message-ID <srtX3-6nc-9@gated-at.bofh.it> (permalink)
References <srbQu-2QB-15@gated-at.bofh.it> <srkKb-61-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> You shouldn't need to check the number of mm_users and the node the task
> is running on for every PTE being scanned.

Ok.

> 
> A more important corner case is if the VMA is shared with a task running on
> another node. By avoiding the NUMA hinting faults here, the hinting faults
> trapped by the remote process will appear exclusive and allow migration of
> the page. This will happen even if the single-threade task is continually
> using the pages.
> 
> When you said "we had some problems", you didn't describe the workload or
> what the problems were (I'm assuming latency/jitter). Would restricting
> this check to private VMAs be sufficient?

The problem we ran into was that prefetches were not working, but
yes it would also cause extra latencies and jitter and in general
is unnecessary overhead.

It is super easy to reproduce. Just run main() {for(;;);}
It will eventually get some of its pages unmapped.

Yes doing it for private only would be fine. I'll add a check
for that.

-Andi

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] Don't touch single threaded PTEs which are on the right node Andi Kleen <andi@firstfloor.org> - 2016-10-11 22:30 +0200
  Re: [PATCH] Don't touch single threaded PTEs which are on the right  node Mel Gorman <mgorman@suse.de> - 2016-10-12 08:00 +0200
    Re: [PATCH] Don't touch single threaded PTEs which are on the right  node Andi Kleen <ak@linux.intel.com> - 2016-10-12 17:50 +0200

csiph-web