From: "Changli Gao" <xiaosuo@gmail.com>
To: "Andi Kleen" <andi@firstfloor.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Improve scalability of epoll_ctl
Date: Wed, 9 Jan 2008 09:20:08 +0800 [thread overview]
Message-ID: <412e6f7f0801081720i61bf2986md68d19db11685218@mail.gmail.com> (raw)
In-Reply-To: <p73k5mkqmrx.fsf@bingen.suse.de>
On Jan 9, 2008 12:56 AM, Andi Kleen <andi@firstfloor.org> wrote:
>
> Are you sure it's faster? vmalloc/vfree can be quite slow because
> they have to change the MMU state of the kernel and take global
> locks.
I don't think so. In fact, the memory of fdtable is allocated by
vmalloc when its size is bigger than PAGE_SIZE:
static inline void * alloc_fdmem(unsigned int size)
{
if (size <= PAGE_SIZE)
return kmalloc(size, GFP_KERNEL);
else
return vmalloc(size);
}
>
> The other problem is that on 32bit systems vmalloc space is somewhat
> limited -- you might have added an unintended scaling limit.
As I have talked above, I am sure open(), socket() and etc. will first
encounter it.
--
Regards,
Changli Gao(xiaosuo@gmail.com)
prev parent reply other threads:[~2008-01-09 1:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 15:34 Changli Gao
2008-01-08 16:26 ` Eric Dumazet
2008-01-08 20:30 ` Davide Libenzi
2008-01-08 16:56 ` Andi Kleen
2008-01-09 1:20 ` Changli Gao [this message]
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=412e6f7f0801081720i61bf2986md68d19db11685218@mail.gmail.com \
--to=xiaosuo@gmail.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®