login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
28
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Venkatesh Pallipadi
Subject:
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages.
Date: Friday, August 27, 2010 - 6:30 pm
On Fri, Aug 27, 2010 at 9:35 AM, Ying Han <yinghan@google.com> wrote:
quoted text
> On Thu, Aug 26, 2010 at 10:00 PM, Minchan Kim <minchan.kim@gmail.com> wrote: >> >> On Fri, Aug 27, 2010 at 12:31 PM, Ying Han <yinghan@google.com> wrote: >> > On Thu, Aug 26, 2010 at 6:03 PM, Minchan Kim <minchan.kim@gmail.com> wrote: >> >> >> >> Hello. >> >> >> >> On Fri, Aug 27, 2010 at 9:11 AM, Ying Han <yinghan@google.com> wrote: >> >> > Fix a missed place where checks nr_swap_pages to do shrink_active_list. Make the >> >> > change that moves the check to common function inactive_anon_is_low. >> >> > >> >> >> >> Hmm.. AFAIR, we discussed it at that time but we concluded it's not good. >> >> That's because nr_swap_pages < 0 means both "NO SWAP" and "NOT enough >> >> swap space now". If we have a swap device or file but not enough space >> >> now, we need to aging anon pages to make inactive list enough size. >> >> Otherwise, working set pages would be swapped out more fast before >> >> promotion. >> > >> > 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? >> >> True. I also wanted it but we have to care swap configured but >> non-enabling still yet system as well as non-swap configured system at >> that time. > > Agree. In our case, we cares about the case where swap is not enabled > but is configured . >> >> If your system is no swap configured, how about this? >> (It's a not formal proper patch but just quick patch to show the concept). > > In our system, we do have swap configured. In vmscan.c, there are > couple of places where we skip scanning > and shrinking anon lru while the condition if(nr_swap_pages <= 0) is > true. It still make sense to me to add it > to the shrink_active() condition as the initial patch. > > Also, we found it is quite often to hit the condition > inactive_anon_is_low on machine with small numa node size, since the > zone->inactive_ratio is set based on the zone->present_pages. >
Does "total_swap_pages" help? Thanks, Venki --
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: fix missing place to check nr_swap_pages.
, Ying Han
, (Thu Aug 26, 5:11 pm)
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages.
, Minchan Kim
, (Thu Aug 26, 6:03 pm)
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.
, Minchan Kim
, (Thu Aug 26, 10:00 pm)
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages.
, Ying Han
, (Fri Aug 27, 9:35 am)
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages.
, Venkatesh Pallipadi
, (Fri Aug 27, 6:30 pm)
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages.
, Minchan Kim
, (Sun Aug 29, 8:40 am)
Re: [PATCH] vmscan: fix missing place to check nr_swap_pages.
, Minchan Kim
, (Sun Aug 29, 8:42 am)
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