[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: free_memory_available() bug in pre-91-1
On Wed, 25 Mar 1998, H.H.vanRiel wrote:
>
> I've just found a bug in free_memory_available() as
> implemented in pre-91-1...
Ugh, yes. How about pre-91-2, which I just put out? It has more of the
code the way I _think_ it should be, and it should try a lot harder to not
hog the CPU with kswapd.
On a 512MB machine, the "tries" variable easily defaulted to try to page
out 8192 pages at a time, which was what we in the business call "Bad For
Interactive Use" (TM). The new one tries to throw out much fewer pages,
and is happier about being called more often - so kswapd really should be
more of a "background" thing rather than quite easily becoming
foregrounded.
All of this is completely untested in real life, but has gone through the
very strict "Looks Ok To Me" bs-filter. Thus it is obviously perfect and
can have no bugs. As such everybody should immediately upgrade and be
happy forever after.
Linus