login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
6
Re: [PATCH]vmscan: handle underflow for get_scan_ratio
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KOSAKI Motohiro
Subject:
Re: [PATCH]vmscan: handle underflow for get_scan_ratio
Date: Monday, April 5, 2010 - 7:58 pm
> On Tue, Apr 06, 2010 at 10:06:19AM +0800, KOSAKI Motohiro wrote:
quoted text
> > > On Tue, Apr 06, 2010 at 09:25:36AM +0800, Li, Shaohua wrote: > > > > On Sun, Apr 04, 2010 at 10:19:06PM +0800, KOSAKI Motohiro wrote: > > > > > > On Fri, Apr 02, 2010 at 05:14:38PM +0800, KOSAKI Motohiro wrote: > > > > > > > > > > This patch makes a lot of sense than previous. however I think <1% anon ratio > > > > > > > > > > shouldn't happen anyway because file lru doesn't have reclaimable pages. > > > > > > > > > > <1% seems no good reclaim rate. > > > > > > > > > > > > > > > > > > Oops, the above mention is wrong. sorry. only 1 page is still too big. > > > > > > > > > because under streaming io workload, the number of scanning anon pages should > > > > > > > > > be zero. this is very strong requirement. if not, backup operation will makes > > > > > > > > > a lot of swapping out. > > > > > > > > Sounds there is no big impact for the workload which you mentioned with the patch. > > > > > > > > please see below descriptions. > > > > > > > > I updated the description of the patch as fengguang suggested. > > > > > > > > > > > > > > Umm.. sorry, no. > > > > > > > > > > > > > > "one fix but introduce another one bug" is not good deal. instead, > > > > > > > I'll revert the guilty commit at first as akpm mentioned. > > > > > > Even we revert the commit, the patch still has its benefit, as it increases > > > > > > calculation precision, right? > > > > > > > > > > no, you shouldn't ignore the regression case. > > > > > > > I don't think this is serious. In my calculation, there is only 1 page swapped out > > > > for 6G anonmous memory. 1 page should haven't any performance impact. > > > > > > 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. > > > > The problem is, the VM are couteniously discarding no longer used file > > cache. if we are scan extra anon 1 page, we will observe tons swap usage > > after few days. > > > > please don't only think benchmark. > > OK the days-of-streaming-io typically happen in file servers. Suppose > a file server with 16GB memory, 1GB of which is consumed by anonymous > pages, others are for page cache. > > Assume that the exact file:anon ratio computed by the get_scan_ratio() > algorithm is 1000:1. In that case percent[0]=0.1 and is rounded down > to 0, which keeps the anon pages in memory for the few days. > > Now with Shaohua's patch, nr[0] = (262144/4096)/1000 = 0.06 will also > be rounded down to 0. It only becomes >=1 when > - reclaim runs into trouble and priority goes low > - anon list goes huge > > So I guess Shaohua's patch still has reasonable "underflow" threshold :)
Again, I didn't said his patch is no worth. I only said we don't have to ignore the downside. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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
, Shaohua Li
, (Tue Mar 30, 1:13 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
, Shaohua Li
, (Tue Mar 30, 9:53 pm)
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
, Shaohua Li
, (Thu Apr 1, 11:50 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
, Shaohua Li
, (Fri Apr 2, 2:24 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
, Shaohua Li
, (Mon Apr 5, 6:25 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio
, Shaohua Li
, (Mon Apr 5, 6:27 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
, Shaohua Li
, (Mon Apr 5, 10:09 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio
, Shaohua Li
, (Mon Apr 5, 10:36 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio
, Shaohua Li
, (Thu Apr 8, 11:51 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
, Shaohua Li
, (Sun Apr 11, 6:57 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
, Shaohua Li
, (Tue Apr 13, 6:27 pm)
Re: [PATCH]vmscan: handle underflow for get_scan_ratio
, KOSAKI Motohiro
, (Wed Apr 14, 8:25 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate