login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
2
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
<kamezawa.hiroyu@...>
To: YAMAMOTO Takashi <yamamoto@...>
Cc: <kamezawa.hiroyu@...>, <linux-mm@...>, <linux-kernel@...>, <balbir@...>, <xemul@...>, <menage@...>, <lizf@...>
Subject:
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
Date: Monday, June 2, 2008 - 5:52 am
----- Original Message -----
quoted text
>> @@ -135,13 +138,118 @@ ssize_t res_counter_write(struct res_cou >> if (*end != '__PLACEHOLDER__0_') >> goto out_free; >> } >> - spin_lock_irqsave(&counter->lock, flags); >> - val = res_counter_member(counter, member); >> - *val = tmp; >> - spin_unlock_irqrestore(&counter->lock, flags); >> - ret = nbytes; >> + if (member != RES_LIMIT || !callback) { > >is there any reason to check member != RES_LIMIT here, >rather than in callers?
Hmm...ok. This is messy. I'll rearrange this.
quoted text
> >> +/* >> + * Move resource to its parent. >> + * child->limit -= val. >> + * parent->usage -= val. >> + * parent->limit -= val. > >s/limit/for_children/ > >> + */ >> + >> +int res_counter_repay_resource(struct res_counter *child, >> + struct res_counter *parent, >> + unsigned long long val, >> + res_shrink_callback_t callback, int retry) > >can you reduce gratuitous differences between >res_counter_borrow_resource and res_counter_repay_resource? >eg. 'success' vs 'done', how to decrement 'retry'. >
Ah, sorry. I'll rewrite. I'll make next version's quality better. Thanks, -Kame --
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/2] memcg: simple hierarchy (v2)
, KAMEZAWA Hiroyuki
, (Thu May 29, 9:43 pm)
Re: [RFC][PATCH 0/2] memcg: simple hierarchy (v2)
, Rik van Riel
, (Thu May 29, 9:46 pm)
[RFC][PATCH 2/2] memcg: memcg hierarchy
, KAMEZAWA Hiroyuki
, (Thu May 29, 9:46 pm)
[RFC][PATCH 1/2] memcg: res_counter hierarchy
, KAMEZAWA Hiroyuki
, (Thu May 29, 9:45 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, YAMAMOTO Takashi
, (Sun Jun 1, 10:15 pm)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
,
, (Mon Jun 2, 5:52 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Balbir Singh
, (Fri May 30, 6:20 pm)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
,
, (Fri May 30, 9:59 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Balbir Singh
, (Sat May 31, 7:20 am)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
,
, (Sat May 31, 10:47 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Balbir Singh
, (Sat May 31, 1:18 pm)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
,
, (Sat May 31, 8:35 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Balbir Singh
, (Mon Jun 2, 2:16 am)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
,
, (Mon Jun 2, 5:48 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Hiten Pandya
Re: up? (emacs docbook xml ide)
Andy Whitcroft
clam
Kamalesh Babulal
Re: 2.6.23-rc6-mm1
git
:
linux-netdev
:
Stephen Hemminger
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
10 users
and
864 guests
online.
Online users
drywallsupplie
buildersperthh
thetruthsixpac
redaask397
cordic
murphybedsayndm
nomorepanicrab
internetmarkban
sequestrationhe
playgolfucm
Syndicate