Re: Sudden and massive page cache eviction

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simon Kirby
Date: Tuesday, November 30, 2010 - 11:36 pm

Hello!  Sorry, I didn't see your email until now.

On Thu, Nov 25, 2010 at 04:59:25PM +0100, Peter Sch??ller wrote:


The way I could "see" it was with http://0x.ca/sim/ref/2.6.36/vmstat_dump
, which updates fast enough (if your terminal doesn't suck) to actually
see the 10 Hz wakeups and similar patterns.  pageoutrun goes up each time
balance_pgdat() passes the "loop_again" label.

Watching http://0x.ca/sim/ref/2.6.36/buddyinfo_dump at the same time
shows that while pageoutrun is increasing, Normal pages are being
allocated and freed all very quickly but not reaching the watermark,
and the other kswapd-related counters seem to show this.


Yes, though there are a couple of issues here.  See the "Free memory
never fully used, swapping" thread and Mel Gorman's comments/patches. 

His patches fix kswapd fighting the allocator for me, but I'm still
running into problems with what seems to be fragmentation making it
difficult for kswapd to meet the higher order watermarks after a few
days.  Even with everything in slub set order 0 except order 1 where
absolutely required is still seeming to result in lots of free memory
after a week or so of normal load.


Yes :)


Well, nothing seems to care about higher order watermarks unless
something atually tries to allocate from them, so if you don't have
any order-3 allocations, it's unlikely that it will be met after
you've filled free memory.  This isn't immediately obvious, because
zone_watermark_ok() works by subtracting free pages in _lower_ orders
from the total free pages in a zone.  So, it's the free blocks in the
specified order and _bigger_ that matter in buddyinfo.  Also,
min_free_kbytes and lowmem_reserve_ratio prevent all of the buddies
from being split even if _only_ order 0 allocations have ever occurred.

Anyway, how did it go?  Did you find anything interesting? :)

Simon-
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Sudden and massive page cache eviction, Peter Schüller, (Fri Nov 12, 9:20 am)
Re: Sudden and massive page cache eviction, Andrew Morton, (Mon Nov 22, 5:11 pm)
Re: Sudden and massive page cache eviction, Dave Hansen, (Tue Nov 23, 1:38 am)
Re: Sudden and massive page cache eviction, Peter Schüller, (Tue Nov 23, 2:44 am)
Re: Sudden and massive page cache eviction, Dave Hansen, (Tue Nov 23, 9:19 am)
Re: Sudden and massive page cache eviction, Peter Schüller, (Wed Nov 24, 7:02 am)
Re: Sudden and massive page cache eviction, Peter Schüller, (Wed Nov 24, 7:14 am)
Re: Sudden and massive page cache eviction, Pekka Enberg, (Wed Nov 24, 7:20 am)
Re: Sudden and massive page cache eviction, Peter Schüller, (Wed Nov 24, 8:32 am)
Re: Sudden and massive page cache eviction, Dave Hansen, (Wed Nov 24, 10:32 am)
Re: Sudden and massive page cache eviction, Pekka Enberg, (Wed Nov 24, 10:46 am)
Re: Sudden and massive page cache eviction, Simon Kirby, (Wed Nov 24, 6:18 pm)
Re: Sudden and massive page cache eviction, Peter Schüller, (Thu Nov 25, 8:33 am)
Re: Sudden and massive page cache eviction, Peter Schüller, (Thu Nov 25, 8:59 am)
Re: Sudden and massive page cache eviction, Simon Kirby, (Tue Nov 30, 11:36 pm)
Re: Sudden and massive page cache eviction, Simon Kirby, (Wed Dec 1, 2:15 am)