Re: [PATCH]vmscan: handle underflow for get_scan_ratio

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wu Fengguang
Date: Monday, April 5, 2010 - 6:50 pm

On Tue, Apr 06, 2010 at 09:25:36AM +0800, Li, Shaohua wrote:


1 anon page scanned for every N file pages scanned?

Is N a _huge_ enough ratio so that the anon list will be very light scanned?

Rik: here is a little background.

Under streaming IO, the current get_scan_ratio() will get a percent[0]
that is (much) less than 1, so underflows to 0.

It has the bad effect of completely disabling the scan of anon list,
which leads to OOM in Shaohua's test case. OTOH, it also has the good
side effect of keeping anon pages in memory and totally prevent swap
IO.

Shaohua's patch improves the computation precision by computing nr[]
directly in get_scan_ratio(). This is good in general, however will
enable light scan of the anon list on streaming IO.

Thanks,
Fengguang
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH]vmscan: handle underflow for get_scan_ratio, Shaohua Li, (Mon Mar 29, 10:53 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Mon Mar 29, 11:08 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Shaohua Li, (Mon Mar 29, 11:32 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Mon Mar 29, 11:40 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Shaohua Li, (Mon Mar 29, 11:53 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Tue Mar 30, 12:31 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Minchan Kim, (Tue Mar 30, 3:17 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Tue Mar 30, 3:25 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Balbir Singh, (Tue Mar 30, 4:56 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Tue Mar 30, 10:38 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Tue Mar 30, 10:41 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Tue Mar 30, 10:51 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Tue Mar 30, 10:53 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Tue Mar 30, 11:00 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Tue Mar 30, 11:03 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Andrew Morton, (Thu Apr 1, 3:16 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Fri Apr 2, 2:13 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Fri Apr 2, 2:14 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Sat Apr 3, 5:48 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Sun Apr 4, 7:19 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Mon Apr 5, 6:22 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Mon Apr 5, 6:36 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Mon Apr 5, 6:50 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Mon Apr 5, 7:06 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Mon Apr 5, 7:30 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Mon Apr 5, 7:58 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Mon Apr 5, 8:31 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Rik van Riel, (Mon Apr 5, 8:36 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Rik van Riel, (Mon Apr 5, 8:40 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Mon Apr 5, 9:49 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Wu Fengguang, (Mon Apr 5, 10:03 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Andrew Morton, (Fri Apr 9, 2:20 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Rik van Riel, (Fri Apr 9, 2:25 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Mon Apr 12, 6:30 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, Rik van Riel, (Mon Apr 12, 7:42 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Tue Apr 13, 12:55 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Tue Apr 13, 1:55 am)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio, KOSAKI Motohiro, (Wed Apr 14, 8:25 pm)