login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
18
Re: [PATCH] memcgroup: check and initialize page->cgroup in memmap_init_zone
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Shi Weihua
Subject:
Re: [PATCH] memcgroup: check and initialize page->cgroup in memmap_init_zone
Date: Thursday, April 17, 2008 - 8:49 pm
Balbir Singh wrote::
quoted text
> Andrew Morton wrote: >> On Fri, 18 Apr 2008 10:46:30 +0800 Shi Weihua <shiwh@cn.fujitsu.com> wrote: >> >>> When we test memory controller in Fujitsu PrimeQuest(arch: ia64), >>> the compiled kernel boots failed, the following message occured on >>> the telnet terminal. >>> ------------------------------------- >>> .......... >>> ELILO boot: Uncompressing Linux... done >>> Loading file initrd-2.6.25-rc9-00067-gb87e81e.img...done >>> _ (system freezed) >>> ------------------------------------- >>> >>> We found commit 9442ec9df40d952b0de185ae5638a74970388e01 >>> causes this boot failure by git-bisect. >>> And, we found the following change caused the boot failure. >>> ------------------------------------- >>> @@ -2528,7 +2535,6 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zon >>> set_page_links(page, zone, nid, pfn); >>> init_page_count(page); >>> reset_page_mapcount(page); >>> - page_assign_page_cgroup(page, NULL); >>> SetPageReserved(page); >>> >>> /* >>> ------------------------------------- >>> In this patch, the Author Hugh Dickins said >>> "...memmap_init_zone doesn't need it either, ... >>> Linux assumes pointers in zeroed structures are NULL pointers." > > > >>> But it seems it's not always the case, so we should check and initialize >>> page->cgroup anyways. >>> > > The comment from Hugh is correct, which implies that in this case page->cgroup > is not zeroed. > >>> Signed-off-by: Shi Weihua <shiwh@cn.fujitsu.com> >>> --- >>> diff --git a/mm/page_alloc.c b/mm/page_alloc.c >>> index 402a504..506d4cf 100644 >>> --- a/mm/page_alloc.c >>> +++ b/mm/page_alloc.c >>> @@ -2518,6 +2518,7 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, >>> struct page *page; >>> unsigned long end_pfn = start_pfn + size; >>> unsigned long pfn; >>> + void *pc; >>> >>> for (pfn = start_pfn; pfn < end_pfn; pfn++) { >>> /* >>> @@ -2535,6 +2536,9 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, >>> set_page_links(page, zone, nid, pfn); >>> init_page_count(page); >>> reset_page_mapcount(page); >>> + pc = page_get_page_cgroup(page); >>> + if (pc) >>> + page_reset_bad_cgroup(page); >>> SetPageReserved(page); >>> >> hm, fishy. Perhaps the architecture isn't zeroing the memmap arrays? >> > > The mem_map array should be cleared. I need to see the code to check where the > clearing takes place. > >> Or perhaps that page was used and then later freed before we got to >> memmap_init_zone() and was freed with a non-zero ->page_cgroup. Which is >> unlikely given that page.page_cgroup was only just added and is only >> present if CONFIG_CGROUP_MEM_RES_CTLR. > > Please share your .config? Is this a kexec/kdump reboot by any chance? >
.config is shared in previous mails. kexec/kdump has not been used. Thanks -Shi --
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] memcgroup: check and initialize page->cgroup in me ...
, Shi Weihua
, (Thu Apr 17, 7:46 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, KAMEZAWA Hiroyuki
, (Thu Apr 17, 8:04 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, Andrew Morton
, (Thu Apr 17, 8:14 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, Shi Weihua
, (Thu Apr 17, 8:14 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, KAMEZAWA Hiroyuki
, (Thu Apr 17, 8:32 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, Balbir Singh
, (Thu Apr 17, 8:37 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, Shi Weihua
, (Thu Apr 17, 8:49 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, KAMEZAWA Hiroyuki
, (Thu Apr 17, 10:09 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, Shi Weihua
, (Thu Apr 17, 10:43 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, KAMEZAWA Hiroyuki
, (Thu Apr 17, 10:57 pm)
Re: [PATCH] memcgroup: check and initialize page->cgroup i ...
, KAMEZAWA Hiroyuki
, (Thu Apr 17, 11:47 pm)
[PATCH]Fix usemap for DISCONTIG/FLATMEM with not-aligned z ...
, KAMEZAWA Hiroyuki
, (Fri Apr 18, 5:12 am)
Re: [PATCH]Fix usemap for DISCONTIG/FLATMEM with not-align ...
, Mel Gorman
, (Fri Apr 18, 9:15 am)
Re: Re: [PATCH]Fix usemap for DISCONTIG/FLATMEM with not-a ...
, kamezawa.hiroyu
, (Fri Apr 18, 10:25 am)
Re: [PATCH]Fix usemap for DISCONTIG/FLATMEM with not-align ...
, Dave Hansen
, (Fri Apr 18, 10:41 am)
Re: [PATCH]Fix usemap for DISCONTIG/FLATMEM with not-align ...
, KAMEZAWA Hiroyuki
, (Sun Apr 20, 7:20 pm)
Re: [PATCH]Fix usemap for DISCONTIG/FLATMEM with not-align ...
, Mel Gorman
, (Mon Apr 21, 3:12 am)
Re: [PATCH]Fix usemap for DISCONTIG/FLATMEM with not-align ...
, KAMEZAWA Hiroyuki
, (Mon Apr 21, 3:29 am)
Re: [PATCH]Fix usemap for DISCONTIG/FLATMEM with not-align ...
, Hugh Dickins
, (Mon Apr 21, 4:56 am)
Re: Re: [PATCH]Fix usemap for DISCONTIG/FLATMEM with not-a ...
, kamezawa.hiroyu
, (Mon Apr 21, 6:02 am)
[BUGFIX][PATCH] Fix usemap initialization v2
, KAMEZAWA Hiroyuki
, (Mon Apr 21, 6:40 pm)
Re: [BUGFIX][PATCH] Fix usemap initialization v2
, Hugh Dickins
, (Tue Apr 22, 3:12 am)
Re: [BUGFIX][PATCH] Fix usemap initialization v2
, KAMEZAWA Hiroyuki
, (Tue Apr 22, 6:45 pm)
Re: [BUGFIX][PATCH] Fix usemap initialization v2
, Shi Weihua
, (Tue Apr 22, 7:17 pm)
[BUGFIX][PATCH] Fix usemap initialization v3
, KAMEZAWA Hiroyuki
, (Tue Apr 22, 9:46 pm)
Re: [BUGFIX][PATCH] Fix usemap initialization v3
, Shi Weihua
, (Tue Apr 22, 11:19 pm)
Re: [BUGFIX][PATCH] Fix usemap initialization v3
, KAMEZAWA Hiroyuki
, (Wed Apr 23, 1:04 am)
Re: [BUGFIX][PATCH] Fix usemap initialization v3
, Mel Gorman
, (Wed Apr 23, 5:46 am)
Re: [BUGFIX][PATCH] Fix usemap initialization v3
, Andrew Morton
, (Sun Apr 27, 12:18 pm)
Re: [BUGFIX][PATCH] Fix usemap initialization v3
, Balbir Singh
, (Sun Apr 27, 12:30 pm)
Re: [BUGFIX][PATCH] Fix usemap initialization v3
, Hugh Dickins
, (Sun Apr 27, 3:50 pm)
Re: [BUGFIX][PATCH] Fix usemap initialization v3
, KAMEZAWA Hiroyuki
, (Sun Apr 27, 5:39 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Oleg Nesterov
Re: init's children list is long and slows reaping children.
kogiidena
[PATCH 1/1] leds: LED Bitpattern Trigger
Stefan Richter
Re: [patch 00/04] RFC: Staging tree (drivers/staging)
David Miller
Re: [Ksummit-2008-discuss] Fixing the Kernel Janitors project
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] dma: use new dmabounce_sync_for_xxx() for dma_sync_single_xxx()
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Ryan McBride
Re: Packets Per Second Limit?
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Jacob Yocom-Piatt
Re: Same shit all over again
Colocation donated by:
Syndicate