login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
17
Re: [PATCH -mm] memcg: fix handling of shmem migration
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Daisuke Nishimura
Subject:
Re: [PATCH -mm] memcg: fix handling of shmem migration
Date: Tuesday, September 16, 2008 - 11:45 pm
On Wed, 17 Sep 2008 15:38:26 +0900, KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
quoted text
> On Wed, 17 Sep 2008 15:19:51 +0900 > Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> wrote: > > > Hmm, something like this? > > > > --- > > @@ -734,6 +734,9 @@ int mem_cgroup_prepare_migration(struct page *page, struct page *newpa > > if (mem_cgroup_subsys.disabled) > > return 0; > > > > + if (PageSwapBacked(page)) > > + SetPageSwapBacked(newpage); > > + > > lock_page_cgroup(page); > > pc = page_get_page_cgroup(page); > > if (pc) { > > --- > > > > Or, adding MEM_CGROUP_CHARGE_TYPE_SHMEM and > > > > --- > > @@ -740,7 +740,10 @@ int mem_cgroup_prepare_migration(struct page *page, struct page *newp > > mem = pc->mem_cgroup; > > css_get(&mem->css); > > if (pc->flags & PAGE_CGROUP_FLAG_CACHE) > > - ctype = MEM_CGROUP_CHARGE_TYPE_CACHE; > > + if (page_is_file_cache(page)) > > + ctype = MEM_CGROUP_CHARGE_TYPE_CACHE; > > + else > > + ctype = MEM_CGROUP_CHARGE_TYPE_SHMEM; > > } > > unlock_page_cgroup(page); > > if (mem) { > > --- > > (Of course, mem_cgroup_charge_common should be modified too.) > > > like this :) I don't want to change logic in migration.c > (and this is special case handling for memcg.) >
OK. I'll rewrite and resend it later. Thanks, Daisuke Nishimura. --
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 -mm] memcg: fix handling of shmem migration
, Daisuke Nishimura
, (Tue Sep 16, 9:31 pm)
Re: [PATCH -mm] memcg: fix handling of shmem migration
, KAMEZAWA Hiroyuki
, (Tue Sep 16, 10:46 pm)
Re: [PATCH -mm] memcg: fix handling of shmem migration
, KAMEZAWA Hiroyuki
, (Tue Sep 16, 10:50 pm)
Re: [PATCH -mm] memcg: fix handling of shmem migration
, Daisuke Nishimura
, (Tue Sep 16, 11:19 pm)
Re: [PATCH -mm] memcg: fix handling of shmem migration
, KAMEZAWA Hiroyuki
, (Tue Sep 16, 11:38 pm)
Re: [PATCH -mm] memcg: fix handling of shmem migration
, Daisuke Nishimura
, (Tue Sep 16, 11:45 pm)
[PATCH -mm] memcg: fix handling of shmem migration(v2)
, Daisuke Nishimura
, (Wed Sep 17, 12:55 am)
Re: [PATCH -mm] memcg: fix handling of shmem migration(v2)
, KAMEZAWA Hiroyuki
, (Wed Sep 17, 2:18 am)
Re: [PATCH -mm] memcg: fix handling of shmem migration(v2)
, Andrew Morton
, (Wed Sep 17, 3:51 pm)
Re: [PATCH -mm] memcg: fix handling of shmem migration(v2)
, Daisuke Nishimura
, (Wed Sep 17, 7:03 pm)
Re: [PATCH -mm] memcg: fix handling of shmem migration(v2)
, KAMEZAWA Hiroyuki
, (Wed Sep 17, 7:38 pm)
Re: [PATCH -mm] memcg: fix handling of shmem migration(v2)
, Balbir Singh
, (Wed Sep 17, 10:43 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Nick Piggin
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rather than rcu
Kyle Moffett
Re: [PATCH 1/4] stringbuf: A string buffer implementation
Ingo Molnar
Re: [PATCH 00/12] mm/x86: bootmem
Andrew Morton
Re: [patch 1/5] wait: use lock bitops for __wait_on_bit_lock
git
:
Stephen Boyd
Re: [PATCH] Speed up bash completion loading
Jakub Narebski
Re: Avery Pennarun's git-subtree?
Junio C Hamano
Re: [PATCH v2 04/13] Teach rebase interactive the mark command
Catalin Marinas
Re: [ANNOUNCE] Stacked GIT 0.14.2
Eric Wong
[PATCH 5/5] rerere: add the diff command
git-commits-head
:
Linux Kernel Mailing List
[POWERPC] fsl_soc: add support to gianfar for fixed-link property
Linux Kernel Mailing List
fat: fix parse_options()
Linux Kernel Mailing List
ipmi: add oem message handling
Linux Kernel Mailing List
powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n
Linux Kernel Mailing List
KVM: x86 emulator: during rep emulation decrement ECX only if emulation succeeded
linux-netdev
:
Paweł Staszewski
Re: DCA/IOAT problem
Jarek Poplawski
Re: [PATCH iproute2] Re: HTB accuracy for high speed
Ingo Oeser
Re: [NET-NEXT PATCH 3/3] e1000e: add support for new 82574L part
Rick Jones
Re: UDP path MTU discovery
Dmitry Kozlov
Re: [PATCH v8] PPTP: PPP over IPv4 (Point-to-Point Tunneling Protocol)
openbsd-misc
:
David Vasek
Re: how to undelete?
Gruppo BCC
Banca inviato una notifica che e necessario completare
Pau Amaro-Seoane
Re: First install: Grub doesn't find partitions
Nick Holland
Re: Unattended OpenBSD Installation
stuart van Zee
Re: CVS hosed
Colocation donated by:
Syndicate