lkml.org 
[lkml]   [2013]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 14/50] sched: Set the scan rate proportional to the memory usage of the task being scanned
On Mon, Sep 16, 2013 at 05:18:22PM +0200, Peter Zijlstra wrote:
> On Tue, Sep 10, 2013 at 10:31:54AM +0100, Mel Gorman wrote:
> > @@ -860,9 +908,14 @@ void task_numa_fault(int node, int pages, bool migrated)
> > * If pages are properly placed (did not migrate) then scan slower.
> > * This is reset periodically in case of phase changes
> > */
> > - if (!migrated)
> > - p->numa_scan_period = min(sysctl_numa_balancing_scan_period_max,
> > + if (!migrated) {
> > + /* Initialise if necessary */
> > + if (!p->numa_scan_period_max)
> > + p->numa_scan_period_max = task_scan_max(p);
> > +
> > + p->numa_scan_period = min(p->numa_scan_period_max,
> > p->numa_scan_period + jiffies_to_msecs(10));
>
> So the next patch changes the jiffies_to_msec() thing.. is that really
> worth a whole separate patch?
>

No, I can collapse them.

> Also, I really don't believe any of that is 'right', increasing the scan
> period by a fixed amount for every !migrated page is just wrong.
>

At the moment Rik and I are both looking at adapting the scan rate based
on whether the faults trapped since the last scan window were local or
remote faults. It should be able to sensibly adapt the scan rate
independently of the RSS of the process.

--
Mel Gorman
SUSE Labs


\
 
 \ /
  Last update: 2013-09-16 18:01    [W:0.412 / U:3.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site