lkml.org 
[lkml]   [2008]   [Jan]   [14]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateTue, 15 Jan 2008 11:20:56 +0900
FromKOSAKI Motohiro <>
SubjectRe: [RFC][PATCH 3/5] add /dev/mem_notify device
Hi Kame

> > +	if (pressure) {
> > +		nr_wakeup = max_t(int, atomic_read(&nr_watcher_task)>>4, 100);
> > +		atomic_long_set(&last_mem_notify, jiffies);
> > +		wake_up_locked_nr(&mem_wait, nr_wakeup);
> > +	}
> What is this for ? and Why ?
> Are there too many waiters ?

my intent is for avoid thundering herd.
100 is heuristic value.

and too many wakeup cause too much memory freed.
I don't want it.

of course, if any problem happened, I will change.
Do you dislike it?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-01-15 01:25    [from the cache]
©2003-2008