login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
3
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrea Righi
Subject:
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
Date: Wednesday, March 3, 2010 - 4:48 am
On Wed, Mar 03, 2010 at 08:21:07AM +0900, Daisuke Nishimura wrote:
quoted text
> On Tue, 2 Mar 2010 23:18:23 +0100, Andrea Righi <arighi@develer.com> wrote: > > On Tue, Mar 02, 2010 at 07:20:26PM +0530, Balbir Singh wrote: > > > * KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> [2010-03-02 17:23:16]: > > > > > > > On Tue, 2 Mar 2010 09:01:58 +0100 > > > > Andrea Righi <arighi@develer.com> wrote: > > > > > > > > > On Tue, Mar 02, 2010 at 09:23:09AM +0900, KAMEZAWA Hiroyuki wrote: > > > > > > On Mon, 1 Mar 2010 22:23:40 +0100 > > > > > > Andrea Righi <arighi@develer.com> wrote: > > > > > > > > > > > > > Apply the cgroup dirty pages accounting and limiting infrastructure to > > > > > > > the opportune kernel functions. > > > > > > > > > > > > > > Signed-off-by: Andrea Righi <arighi@develer.com> > > > > > > > > > > > > Seems nice. > > > > > > > > > > > > Hmm. the last problem is moving account between memcg. > > > > > > > > > > > > Right ? > > > > > > > > > > Correct. This was actually the last item of the TODO list. Anyway, I'm > > > > > still considering if it's correct to move dirty pages when a task is > > > > > migrated from a cgroup to another. Currently, dirty pages just remain in > > > > > the original cgroup and are flushed depending on the original cgroup > > > > > settings. That is not totally wrong... at least moving the dirty pages > > > > > between memcgs should be optional (move_charge_at_immigrate?). > > > > > > > > > > > > > My concern is > > > > - migration between memcg is already suppoted > > > > - at task move > > > > - at rmdir > > > > > > > > Then, if you leave DIRTY_PAGE accounting to original cgroup, > > > > the new cgroup (migration target)'s Dirty page accounting may > > > > goes to be negative, or incorrect value. Please check FILE_MAPPED > > > > implementation in __mem_cgroup_move_account() > > > > > > > > As > > > > if (page_mapped(page) && !PageAnon(page)) { > > > > /* Update mapped_file data for mem_cgroup */ > > > > preempt_disable(); > > > > __this_cpu_dec(from->stat->count[MEM_CGROUP_STAT_FILE_MAPPED]); > > > > __this_cpu_inc(to->stat->count[MEM_CGROUP_STAT_FILE_MAPPED]); > > > > preempt_enable(); > > > > } > > > > then, FILE_MAPPED never goes negative. > > > > > > > > > > Absolutely! I am not sure how complex dirty memory migration will be, > > > but one way of working around it would be to disable migration of > > > charges when the feature is enabled (dirty* is set in the memory > > > cgroup). We might need additional logic to allow that to happen. > > > > I've started to look at dirty memory migration. First attempt is to add > > DIRTY, WRITEBACK, etc. to page_cgroup flags and handle them in > > __mem_cgroup_move_account(). Probably I'll have something ready for the > > next version of the patch. I still need to figure if this can work as > > expected... > > > I agree it's a right direction(in fact, I have been planning to post a patch > in that direction), so I leave it to you. > Can you add PCG_FILE_MAPPED flag too ? I think this flag can be handled in the > same way as other flags you're trying to add, and we can change > "if (page_mapped(page) && !PageAnon(page))" to "if (PageCgroupFileMapped(pc)" > in __mem_cgroup_move_account(). It would be cleaner than current code, IMHO.
OK, sounds good to me. I'll introduce PCG_FILE_MAPPED in the next version. Thanks, -Andrea --
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 -mmotm 0/3] memcg: per cgroup dirty limit (v3)
, Andrea Righi
, (Mon Mar 1, 2:23 pm)
[PATCH -mmotm 1/3] memcg: dirty memory documentation
, Andrea Righi
, (Mon Mar 1, 2:23 pm)
[PATCH -mmotm 2/3] memcg: dirty pages accounting and limit ...
, Andrea Righi
, (Mon Mar 1, 2:23 pm)
[PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Mon Mar 1, 2:23 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Vivek Goyal
, (Mon Mar 1, 3:02 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Mon Mar 1, 3:18 pm)
Re: [PATCH -mmotm 2/3] memcg: dirty pages accounting and l ...
, KAMEZAWA Hiroyuki
, (Mon Mar 1, 5:20 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, KAMEZAWA Hiroyuki
, (Mon Mar 1, 5:23 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Tue Mar 2, 1:01 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Daisuke Nishimura
, (Tue Mar 2, 1:12 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, KAMEZAWA Hiroyuki
, (Tue Mar 2, 1:23 am)
Re: [PATCH -mmotm 2/3] memcg: dirty pages accounting and l ...
, Kirill A. Shutemov
, (Tue Mar 2, 3:04 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Kirill A. Shutemov
, (Tue Mar 2, 3:11 am)
Re: [PATCH -mmotm 2/3] memcg: dirty pages accounting and l ...
, Andrea Righi
, (Tue Mar 2, 4:00 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Tue Mar 2, 4:02 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Kirill A. Shutemov
, (Tue Mar 2, 4:09 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Tue Mar 2, 4:34 am)
Re: [PATCH -mmotm 2/3] memcg: dirty pages accounting and l ...
, Balbir Singh
, (Tue Mar 2, 6:02 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Balbir Singh
, (Tue Mar 2, 6:47 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Peter Zijlstra
, (Tue Mar 2, 6:48 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Balbir Singh
, (Tue Mar 2, 6:50 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Kirill A. Shutemov
, (Tue Mar 2, 6:56 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Vivek Goyal
, (Tue Mar 2, 8:05 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Balbir Singh
, (Tue Mar 2, 8:26 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Trond Myklebust
, (Tue Mar 2, 8:49 am)
Re: [PATCH -mmotm 2/3] memcg: dirty pages accounting and l ...
, Greg Thelen
, (Tue Mar 2, 11:08 am)
Re: [PATCH -mmotm 2/3] memcg: dirty pages accounting and l ...
, Andrea Righi
, (Tue Mar 2, 2:50 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Tue Mar 2, 3:14 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Tue Mar 2, 3:18 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Tue Mar 2, 3:22 pm)
Re: [PATCH -mmotm 2/3] memcg: dirty pages accounting and l ...
, Andrea Righi
, (Tue Mar 2, 3:24 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Daisuke Nishimura
, (Tue Mar 2, 4:21 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Vivek Goyal
, (Tue Mar 2, 4:59 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Daisuke Nishimura
, (Tue Mar 2, 7:12 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, KAMEZAWA Hiroyuki
, (Tue Mar 2, 8:29 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Daisuke Nishimura
, (Tue Mar 2, 11:01 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, KAMEZAWA Hiroyuki
, (Tue Mar 2, 11:15 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, KAMEZAWA Hiroyuki
, (Wed Mar 3, 1:21 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Peter Zijlstra
, (Wed Mar 3, 3:07 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Wed Mar 3, 4:47 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Wed Mar 3, 4:48 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Wed Mar 3, 4:50 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Wed Mar 3, 4:56 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Wed Mar 3, 5:05 am)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Andrea Righi
, (Wed Mar 3, 3:03 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, Daisuke Nishimura
, (Wed Mar 3, 4:25 pm)
Re: [PATCH -mmotm 3/3] memcg: dirty pages instrumentation
, KAMEZAWA Hiroyuki
, (Wed Mar 3, 8:45 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
Dave Jones
Re: OT: character encodings (was: Linux 2.6.20-rc4)
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Dan Chokola
Re: how do you "force a pull"?
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
linux-netdev
:
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
Colocation donated by:
Syndicate