login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
12
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: Shaohua Li
Subject:
Re: [PATCH]vmscan: handle underflow for get_scan_ratio
Date: Sunday, April 11, 2010 - 6:57 pm
On Sat, Apr 10, 2010 at 05:20:57AM +0800, Andrew Morton wrote:
quoted text
> On Fri, 9 Apr 2010 14:51:04 +0800 > Shaohua Li <shaohua.li@intel.com> wrote: > > > get_scan_ratio() calculates percentage and if the percentage is < 1%, it will > > round percentage down to 0% and cause we completely ignore scanning anon/file > > pages to reclaim memory even the total anon/file pages are very big. > > > > To avoid underflow, we don't use percentage, instead we directly calculate > > how many pages should be scaned. In this way, we should get several scanned pages > > for < 1% percent. > > > > This has some benefits: > > 1. increase our calculation precision > > 2. making our scan more smoothly. Without this, if percent[x] is underflow, > > shrink_zone() doesn't scan any pages and suddenly it scans all pages when priority > > is zero. With this, even priority isn't zero, shrink_zone() gets chance to scan > > some pages. > > > > Note, this patch doesn't really change logics, but just increase precision. For > > system with a lot of memory, this might slightly changes behavior. For example, > > in a sequential file read workload, without the patch, we don't swap any anon > > pages. With it, if anon memory size is bigger than 16G, we will see one anon page > > swapped. The 16G is calculated as PAGE_SIZE * priority(4096) * (fp/ap). fp/ap > > is assumed to be 1024 which is common in this workload. So the impact sounds not > > a big deal. > > I grabbed this. > > Did we decide that this needed to be backported into 2.6.33.x? If so, > some words explaining the reasoning would be needed. > > Come to that, it's not obvious that we need this in 2.6.34 either.
Not needed.
quoted text
> is the user-visible impact here?
Should be very small I think. Thanks, Shaohua --
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
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Gautham R Shenoy
[PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
Jeffrey V. Merkey
Re: Versioning file system
James Bottomley
Re: [PATCH -mm 1/2] scsi: remove dma_is_consistent usage in 53c700
David Miller
Re: NO_HZ: timer interrupt stuck
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Miles Bader
Re: way to automatically add untracked files?
Harvey Harrison
Re: [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem
Alex Riesen
Re: git exclude patterns for directory
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
netfilter: nf_conntrack_sip: add T.38 FAX support
Linux Kernel Mailing List
drivers/acpi: use kasprintf
linux-netdev
:
Timo Teräs
ip xfrm policy semantics
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
frantisek holop
Re: mount ffs as msdos, system hangs
Colocation donated by:
Syndicate