From: Lai Jiangshan <laijs@cn.fujitsu.com>
To: Paul Menage <menage@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Containers <containers@lists.linux-foundation.org>
Subject: Re: [PATCH] cgroup(fix critical bug): new handling for tasks file
Date: Thu, 28 Aug 2008 20:09:38 +0800 [thread overview]
Message-ID: <48B69582.4000208@cn.fujitsu.com> (raw)
In-Reply-To: <6599ad830808270536i353e1807kaac4e9fb74301bb0@mail.gmail.com>
Paul Menage wrote:
> On Tue, Aug 26, 2008 at 9:29 PM, Lai Jiangshan <laijs@cn.fujitsu.com> wrote:
>> And vmalloc can malloc larger memory than kmalloc, is vmalloc() enough?
>> If not, I think using an array of pages is the best choice.
>
> vmalloc would be simpler, certainly, but it has a higher overhead. And
> since we're dealing with arrays of integers here, it's not too hard to
> manage multiple arrays. Oh, except for sorting them, which would be
> more of a pain. So yes, maybe vmalloc() would be a better choice at
> first.
>
Yep, these are hard. Which method is your favorite?
My original purpose was to fix a bug as I described.
This bug and the problem that offering big enough array for a huge
cgroup are orthogonal!
Could you consider/test that is it a bug as I described(and is it as
critical as I described, maybe I was too nervous)?
And this is also a problem: opening a cgroup.tasks twice or will waste
a lot of _physical_ memory.
Thanks! Lai
next prev parent reply other threads:[~2008-08-28 12:11 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 1:47 [PATCH] cgroup(fix critical bug): new handling for tasks file Lai Jiangshan
[not found] ` <48B360CE.2010501-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-08-26 2:29 ` Paul Menage
2008-08-26 2:29 ` Paul Menage
2008-08-26 5:22 ` Lai Jiangshan
2008-08-26 22:40 ` Paul Menage
[not found] ` <48B39319.7070403-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-08-26 22:40 ` Paul Menage
2008-08-26 22:44 ` Paul Menage
2008-08-26 22:44 ` Paul Menage
[not found] ` <6599ad830808261544w308a850m865ac0c0a1552c77-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-08-27 4:29 ` Lai Jiangshan
2008-08-27 4:29 ` Lai Jiangshan
2008-08-27 12:36 ` Paul Menage
2008-08-28 12:09 ` Lai Jiangshan [this message]
2008-09-05 5:34 ` Paul Menage
2008-09-08 8:19 ` Lai Jiangshan
[not found] ` <48C4E012.4060400-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-09-08 15:42 ` Paul Menage
2008-09-08 15:42 ` Paul Menage
[not found] ` <48C0C4F7.2080702-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2008-09-08 8:19 ` Lai Jiangshan
2008-09-08 21:16 ` Andrew Morton
2008-09-08 21:16 ` Andrew Morton
2008-09-08 22:05 ` Paul Menage
[not found] ` <20080908141635.3ce77adc.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2008-09-08 22:05 ` Paul Menage
[not found] ` <48B69582.4000208-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-09-05 5:34 ` Paul Menage
[not found] ` <6599ad830808270536i353e1807kaac4e9fb74301bb0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-08-28 12:09 ` Lai Jiangshan
[not found] ` <48B4D81D.2040200-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-08-27 12:36 ` Paul Menage
[not found] ` <6599ad830808251929p10dfc9d2ub11e4db0cd4f9f3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-08-26 5:22 ` Lai Jiangshan
-- strict thread matches above, loose matches on Subject: below --
2008-08-26 1:47 Lai Jiangshan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48B69582.4000208@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=containers@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.