login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
July
»
10
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrea Righi
Subject:
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
Date: Saturday, July 10, 2010 - 3:06 am
On Fri, Jul 09, 2010 at 07:09:31PM -0400, Munehiro Ikeda wrote:
quoted text
> KAMEZAWA Hiroyuki wrote, on 07/09/2010 03:38 AM: > >On Thu, 08 Jul 2010 23:15:30 -0400 > >Munehiro Ikeda<m-ikeda@ds.jp.nec.com> wrote: > > > >>Signed-off-by: Hirokazu Takahashi<taka@valinux.co.jp> > >>Signed-off-by: Ryo Tsuruta<ryov@valinux.co.jp> > >>Signed-off-by: Andrea Righi<arighi@develer.com> > >>Signed-off-by: Munehiro "Muuhh" Ikeda<m-ikeda@ds.jp.nec.com> > >>--- > >> block/Kconfig.iosched | 8 +++ > >> block/Makefile | 1 + > >> block/blk-iotrack.c | 129 +++++++++++++++++++++++++++++++++++++++++++ > >> include/linux/blk-iotrack.h | 62 +++++++++++++++++++++ > >> include/linux/page_cgroup.h | 25 ++++++++ > >> init/Kconfig | 2 +- > >> mm/page_cgroup.c | 91 +++++++++++++++++++++++++++--- > >> 7 files changed, 309 insertions(+), 9 deletions(-) > >> create mode 100644 block/blk-iotrack.c > >> create mode 100644 include/linux/blk-iotrack.h > > (snip) > > >>+/** > >>+ * blk_iotrack_set_owner() - set the owner ID of a page. > >>+ * @page: the page we want to tag > >>+ * @mm: the mm_struct of a page owner > >>+ * > >>+ * Make a given page have the blkio-cgroup ID of the owner of this page. > >>+ */ > >>+int blk_iotrack_set_owner(struct page *page, struct mm_struct *mm) > >>+{ > >>+ struct blkio_cgroup *blkcg; > >>+ unsigned short id = 0; /* 0: default blkio_cgroup id */ > >>+ > >>+ if (blk_iotrack_disabled()) > >>+ return 0; > >>+ if (!mm) > >>+ goto out; > >>+ > >>+ rcu_read_lock(); > >>+ blkcg = task_to_blkio_cgroup(rcu_dereference(mm->owner)); > >>+ if (likely(blkcg)) > >>+ id = css_id(&blkcg->css); > >>+ rcu_read_unlock(); > >>+out: > >>+ return page_cgroup_set_owner(page, id); > >>+} > >>+ > > > >I think this is bad. I/O should be charged against threads i.e. "current", > >because CFQ/blockio-cgroup provides per-thread control. > >mm->owner is not suitable, I think. > > OK, thanks.
BTW, this should be automatically fixed if you remove anonymous pages tracking. -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:
[RFC][PATCH 00/11] blkiocg async support
, Munehiro Ikeda
, (Thu Jul 8, 7:57 pm)
[RFC][PATCH 01/11] blkiocg async: Make page_cgroup indepen ...
, Munehiro Ikeda
, (Thu Jul 8, 8:14 pm)
[RFC][PATCH 02/11] blkiocg async: The main part of iotrack
, Munehiro Ikeda
, (Thu Jul 8, 8:15 pm)
[RFC][PATCH 03/11] blkiocg async: Hooks for iotrack
, Munehiro Ikeda
, (Thu Jul 8, 8:16 pm)
[RFC][PATCH 04/11] blkiocg async: block_commit_write not t ...
, Munehiro Ikeda
, (Thu Jul 8, 8:16 pm)
[RFC][PATCH 05/11] blkiocg async: __set_page_dirty_nobuffe ...
, Munehiro Ikeda
, (Thu Jul 8, 8:17 pm)
[RFC][PATCH 06/11] blkiocg async: ext4_writepage not to ov ...
, Munehiro Ikeda
, (Thu Jul 8, 8:17 pm)
[RFC][PATCH 07/11] blkiocg async: Pass bio to elevator_ops ...
, Munehiro Ikeda
, (Thu Jul 8, 8:18 pm)
[RFC][PATCH 08/11] blkiocg async: Function to search blkcg ...
, Munehiro Ikeda
, (Thu Jul 8, 8:19 pm)
[RFC][PATCH 09/11] blkiocg async: Functions to get cfqg fr ...
, Munehiro Ikeda
, (Thu Jul 8, 8:20 pm)
[RFC][PATCH 10/11] blkiocg async: Async queue per cfq_group
, Munehiro Ikeda
, (Thu Jul 8, 8:22 pm)
[RFC][PATCH 11/11] blkiocg async: Workload timeslice adjus ...
, Munehiro Ikeda
, (Thu Jul 8, 8:23 pm)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
, KAMEZAWA Hiroyuki
, (Fri Jul 9, 12:35 am)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
, KAMEZAWA Hiroyuki
, (Fri Jul 9, 12:38 am)
Re: [RFC][PATCH 03/11] blkiocg async: Hooks for iotrack
, Andrea Righi
, (Fri Jul 9, 2:24 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Andrea Righi
, (Fri Jul 9, 3:04 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Fri Jul 9, 6:45 am)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
, Munehiro Ikeda
, (Fri Jul 9, 4:06 pm)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
, Munehiro Ikeda
, (Fri Jul 9, 4:09 pm)
Re: [RFC][PATCH 03/11] blkiocg async: Hooks for iotrack
, Munehiro Ikeda
, (Fri Jul 9, 4:43 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Munehiro Ikeda
, (Fri Jul 9, 5:17 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Nauman Rafique
, (Fri Jul 9, 5:55 pm)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
, Andrea Righi
, (Sat Jul 10, 3:06 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Sat Jul 10, 6:24 am)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
, KAMEZAWA Hiroyuki
, (Sun Jul 11, 5:11 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, KAMEZAWA Hiroyuki
, (Sun Jul 11, 5:20 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Mon Jul 12, 6:18 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, KAMEZAWA Hiroyuki
, (Mon Jul 12, 9:36 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Wed Jul 14, 7:29 am)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack
, Munehiro IKEDA
, (Wed Jul 14, 7:46 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, KAMEZAWA Hiroyuki
, (Wed Jul 14, 5:00 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Fri Jul 16, 6:43 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Daniel P. Berrange
, (Fri Jul 16, 7:15 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Fri Jul 16, 7:35 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Daniel P. Berrange
, (Fri Jul 16, 7:53 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Fri Jul 16, 8:12 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Greg Thelen
, (Thu Jul 22, 12:28 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, KAMEZAWA Hiroyuki
, (Thu Jul 22, 4:59 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Balbir Singh
, (Sun Jul 25, 11:41 pm)
Re: [RFC][PATCH 01/11] blkiocg async: Make page_cgroup ind ...
, Balbir Singh
, (Sun Jul 25, 11:49 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, KAMEZAWA Hiroyuki
, (Mon Jul 26, 11:39 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Greg Thelen
, (Mon Jul 26, 11:40 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Daniel P. Berrange
, (Tue Jul 27, 3:40 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Tue Jul 27, 7:03 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Mon Aug 2, 1:58 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Munehiro Ikeda
, (Tue Aug 3, 7:31 am)
Re: [RFC][PATCH 00/11] blkiocg async support
, Nauman Rafique
, (Tue Aug 3, 12:24 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Vivek Goyal
, (Tue Aug 3, 1:15 pm)
Re: [RFC][PATCH 00/11] blkiocg async support
, Munehiro Ikeda
, (Wed Aug 4, 7:32 am)
Re: [RFC][PATCH 10/11] blkiocg async: Async queue per cfq_ ...
, Nauman Rafique
, (Thu Aug 12, 6:24 pm)
Re: [RFC][PATCH 10/11] blkiocg async: Async queue per cfq_ ...
, Munehiro Ikeda
, (Fri Aug 13, 2:00 pm)
Re: [RFC][PATCH 10/11] blkiocg async: Async queue per cfq_ ...
, Nauman Rafique
, (Fri Aug 13, 4:01 pm)
Re: [RFC][PATCH 10/11] blkiocg async: Async queue per cfq_ ...
, Munehiro Ikeda
, (Fri Aug 13, 5:49 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Kay Sievers
Re: char/tpm: tpm_infineon no longer loaded for HP 2510p laptop
Eric W. Biederman
[PATCH 8/8] sysfs: user namespaces: fix bug with clone(CLONE_NEWUSER) with fairsched
S K
Re: cpufreq doesn't seem to work in Intel Q9300
Bart Van Assche
Re: Is gcc thread-unsafe?
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
git
:
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] git-mv: Keep moved index entries inact
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
linux-netdev
:
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
Jeff Kirsher
[net-2.6 PATCH 2/5] e1000e: increase swflag acquisition timeout for ICHx/PCH
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
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
Linux Kernel Mailing List
sm501: add power control callback
openbsd-misc
:
Jason Dixon
Re: any web management gui for pf ?
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
daniele.pilenga
snmpd hangs on 4.1 looking up hrSWRunTable
Colocation donated by:
Syndicate