login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
2
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Balbir Singh
Subject:
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
Date: Monday, August 2, 2010 - 11:00 am
* KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> [2010-07-29 13:27:03]:
quoted text
> On Thu, 29 Jul 2010 09:32:26 +0900 > KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote: > > > On Wed, 28 Jul 2010 12:45:13 -0700 > > Andrew Morton <akpm@linux-foundation.org> wrote: > > > > My gut reaction to this sort of thing is "run away in terror". It > > > encourages kernel developers to operate like lackadaisical userspace > > > developers and to assume that underlying code can perform heroic and > > > immortal feats. But it can't. This is the kernel and the kernel is a > > > tough and hostile place and callers should be careful and defensive and > > > take great efforts to minimise the strain they put upon other systems. > > > > > > IOW, can we avoid doing this? > > > > > > > I'll use pre-allocated pointer array in the next version. It's simple even > if a bit slow. > > == > struct mem_cgroup *mem_cgroups[CONFIG_MAX_MEM_CGROUPS] __read_mostly; > #define id_to_memcg(id) mem_cgroups[id]; > ==
Hmm.. I thought we were going to reuse css_id() and use that to get to the cgroup. May be I am missing something. -- Three Cheers, Balbir --
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 0/7][memcg] towards I/O aware memory cgroup
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 12:51 am)
[RFC][PATCH 1/7][memcg] virtually indexed array library.
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 12:53 am)
[RFC][PATCH 2/7][memcg] cgroup arbitarary ID allocation
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 12:54 am)
[RFC][PATCH 3/7][memcg] memcg on virt array for quick acce ...
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 12:55 am)
[RFC][PATCH 4/7][memcg] memcg use ID in page_cgroup
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 12:56 am)
[RFC][PATCH 5/7][memcg] memcg lockless update of file mapped
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 12:59 am)
[RFC][PATCH 6/7][memcg] generic file status update
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 1:00 am)
[RFC][PATCH 7/7][memcg] use spin lock instead of bit_spin_ ...
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 1:02 am)
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
, Jonathan Corbet
, (Tue Jul 27, 11:29 am)
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 5:08 pm)
Re: [RFC][PATCH 0/7][memcg] towards I/O aware memory cgroup
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 5:13 pm)
Re: [RFC][PATCH 2/7][memcg] cgroup arbitarary ID allocation
, Vivek Goyal
, (Tue Jul 27, 7:30 pm)
Re: [RFC][PATCH 2/7][memcg] cgroup arbitarary ID allocation
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 7:35 pm)
Re: [RFC][PATCH 4/7][memcg] memcg use ID in page_cgroup
, Vivek Goyal
, (Tue Jul 27, 7:39 pm)
Re: [RFC][PATCH 4/7][memcg] memcg use ID in page_cgroup
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 7:44 pm)
Re: [RFC][PATCH 2/7][memcg] cgroup arbitarary ID allocation
, Vivek Goyal
, (Tue Jul 27, 8:10 pm)
Re: [RFC][PATCH 4/7][memcg] memcg use ID in page_cgroup
, Vivek Goyal
, (Tue Jul 27, 8:13 pm)
Re: [RFC][PATCH 4/7][memcg] memcg use ID in page_cgroup
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 8:18 pm)
Re: [RFC][PATCH 4/7][memcg] memcg use ID in page_cgroup
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 8:21 pm)
Re: [RFC][PATCH 7/7][memcg] use spin lock instead of bit_s ...
, Greg Thelen
, (Tue Jul 27, 11:16 pm)
Re: [RFC][PATCH 7/7][memcg] use spin lock instead of bit_s ...
, KAMEZAWA Hiroyuki
, (Tue Jul 27, 11:20 pm)
Re: [RFC][PATCH 5/7][memcg] memcg lockless update of file ...
, Greg Thelen
, (Wed Jul 28, 12:09 am)
Re: [RFC][PATCH 6/7][memcg] generic file status update
, Greg Thelen
, (Wed Jul 28, 12:12 am)
Re: [RFC][PATCH 5/7][memcg] memcg lockless update of file ...
, KAMEZAWA Hiroyuki
, (Wed Jul 28, 12:13 am)
Re: [RFC][PATCH 6/7][memcg] generic file status update
, KAMEZAWA Hiroyuki
, (Wed Jul 28, 12:14 am)
Re: [RFC][PATCH 4/7][memcg] memcg use ID in page_cgroup
, Vivek Goyal
, (Wed Jul 28, 7:17 am)
Re: [RFC][PATCH 0/7][memcg] towards I/O aware memory cgroup
, Balbir Singh
, (Wed Jul 28, 7:42 am)
Re: [RFC][PATCH 4/7][memcg] memcg use ID in page_cgroup
, Munehiro Ikeda
, (Wed Jul 28, 8:43 am)
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
, Andrew Morton
, (Wed Jul 28, 12:45 pm)
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
, KAMEZAWA Hiroyuki
, (Wed Jul 28, 5:32 pm)
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
, KAMEZAWA Hiroyuki
, (Wed Jul 28, 9:27 pm)
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
, Balbir Singh
, (Mon Aug 2, 11:00 am)
Re: [RFC][PATCH 2/7][memcg] cgroup arbitarary ID allocation
, Balbir Singh
, (Mon Aug 2, 11:04 am)
Re: [RFC][PATCH 7/7][memcg] use spin lock instead of bit_s ...
, Balbir Singh
, (Mon Aug 2, 11:09 am)
Re: [RFC][PATCH 1/7][memcg] virtually indexed array library.
, KAMEZAWA Hiroyuki
, (Mon Aug 2, 4:45 pm)
Re: [RFC][PATCH 2/7][memcg] cgroup arbitarary ID allocation
, KAMEZAWA Hiroyuki
, (Mon Aug 2, 4:45 pm)
Re: [RFC][PATCH 7/7][memcg] use spin lock instead of bit_s ...
, KAMEZAWA Hiroyuki
, (Mon Aug 2, 4:46 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Nick Piggin
Re: dealing with barriers (was Re: [PATCH] firewire: fw-core: enforce write order ...
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Linux Kernel Mailing List
bnx2x: Moving includes
Colocation donated by:
Syndicate