From: Jason Baron <jbaron@akamai.com>
To: Eric Wong <normalperson@yhbt.net>, Jason Baron <jbaron@akamai.com>
Cc: akpm@linux-foundation.org, famz@redhat.com, nzimmer@sgi.com,
viro@zeniv.linux.org.uk, davidel@xmailserver.org,
rostedt@goodmis.org, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org
Subject: Re: [RFC PATCH 5/5] epoll: introduce epoll connected components (remove the epmutex)
Date: Fri, 16 Jan 2015 12:03:24 -0500 [thread overview]
Message-ID: <54B9445C.4070800@akamai.com> (raw)
In-Reply-To: <20150115231051.GA24252@dcvr.yhbt.net>
On 01/15/2015 06:10 PM, Eric Wong wrote:
> Jason Baron <jbaron@akamai.com> wrote:
>> I've done a bit of performance evaluation on a dual socket, 10 core, hyper
>> threading enabled box: Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz. For the
>> simple epfdN->epfdN->pipefdN topology case where each thread has its
>> own unique files and is doing EPOLL_CTL_ADD and EPOLL_CTL_DEL on the pipefd,
>> I see an almost 300% improvement. This is obviously a very contrived case,
>> but shows the motivation for this patch.
> Any improvements for non-contrived cases? :)
I plan to do some more testing and will post performance findings...
>> +++ b/include/linux/fs.h
>> @@ -835,6 +835,9 @@ struct file {
>> /* Used by fs/eventpoll.c to link all the hooks to this file */
>> struct list_head f_ep_links;
>> struct list_head f_tfile_llink;
>> + /* connected component */
>> + struct list_head f_ep_cc_link;
>> + struct ep_cc __rcu *f_ep_cc;
>> #endif /* #ifdef CONFIG_EPOLL */
> This size increase worries me. Perhaps this can be a separately
> allocated struct to avoid penalizing non-epoll users?
Agreed. That was why I marked this RFC. I was planning to try and shrink
some of the lists to singly-linked lists. But I think breaking it out as 'file_eventpoll'
is a good suggestion. We could simply just always allocate it for an epfd,
and then just allocate it for a 'regular' struct file on the first EPOLL_CTL_ADD.
That would actually result in a net shrinkage of the 'struct file' by 3 pointers from
where we are today. So I think that would be nice.
Thanks,
-Jason
next prev parent reply other threads:[~2015-01-16 17:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 21:02 [RFC PATCH 0/5] Remove global locks from epoll Jason Baron
2015-01-15 21:02 ` [RFC PATCH 1/5] epoll: remove ep_call_nested() from ep_eventpoll_poll() Jason Baron
2015-01-15 21:02 ` [RFC PATCH 2/5] epoll: remove ep_call_nested() from ep_poll_safewake() Jason Baron
2015-01-15 21:02 ` [RFC PATCH 3/5] epoll: add ep_call_nested_nolock() Jason Baron
2015-01-15 21:02 ` [RFC PATCH 4/5] epoll: Allow topology checks to be parallelized Jason Baron
2015-01-15 21:02 ` [RFC PATCH 5/5] epoll: introduce epoll connected components (remove the epmutex) Jason Baron
2015-01-15 23:10 ` Eric Wong
2015-01-16 17:03 ` Jason Baron [this message]
2015-01-16 1:36 ` [RFC PATCH 0/5] Remove global locks from epoll Fam Zheng
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=54B9445C.4070800@akamai.com \
--to=jbaron@akamai.com \
--cc=akpm@linux-foundation.org \
--cc=davidel@xmailserver.org \
--cc=famz@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=normalperson@yhbt.net \
--cc=nzimmer@sgi.com \
--cc=rostedt@goodmis.org \
--cc=viro@zeniv.linux.org.uk \
/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
Powered by JetHome