[lkml]   [2000]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: /proc/sys/vm/freepages not writable.

> > 1. The inactive_target is 1 second worth of allocations, minus
> > the amount of frees in 1 second, averaged over a minute
> So it cannot take load bursts. That's ok for a default, but for special loads
> it would be good if there was a way for the administrator to overwrite that,
> similar to the old freepages.

How about taking a decaying average (loadavg style) of the peak allocation-free
rate on a minute-by-minute basis. Then make the number of seconds at that
rate to use as the inactive_target a tunable parameter. That way, a user
could, if necessary, tune based on their expected type of load (length of
load bursts), and the alg. would tune to the load level (height of those
bursts). For a consistent load, peak rate ~= avg. rate, and this decays to
the current behavior, except that the "1 second of allocations" is tunable.

I haven't actually looked at the code, so I don't know how easy/hard this is to
implement, and while it does reintroduce a tuning parameter, it should be needed
less often, and has a much more user-meaningful value (burst length) than # of
free pages to keep handy, which depends on the code, and could change between

Fear is the mind killer. -- Frank Herbert, "Dune"
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.059 / U:2.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site