Re: [PATCH] vmscan: fix missing place to check nr_swap_pages.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ying Han
Date: Thursday, August 26, 2010 - 8:31 pm

On Thu, Aug 26, 2010 at 6:03 PM, Minchan Kim <minchan.kim@gmail.com> wrote:

We found the problem on one of our workloads where more TLB flush
happens without the change. Kswapd seems to be calling
shrink_active_list() which eventually clears access bit of those ptes
and does TLB flush
with ptep_clear_flush_young(). This system does not have swap
configured, and why aging the anon lru in that
case?


Lots of TLB flush hurts the performance especially on large smp system. So does
it make sense if change it to:

+       if (nr_swap_pages == 0)
+               return 0;

--Ying


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

Messages in current thread:
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages., Ying Han, (Thu Aug 26, 8:31 pm)
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages., Venkatesh Pallipadi, (Fri Aug 27, 6:30 pm)