public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Davy Durham <pubaddr2@davyandbeth.com>
To: bert hubert <bert.hubert@netherlabs.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: select() efficiency / epoll
Date: Tue, 23 Aug 2005 04:49:14 -0500	[thread overview]
Message-ID: <430AF11A.5000303@davyandbeth.com> (raw)
In-Reply-To: <20050722212454.GB18988@outpost.ds9a.nl>

So, I've been trying to use epoll.. on linux-2.6.11-6mdk


However, I'm getting segfaults because some pointers in places are 
getting set to low integer values (which didn't used to have those values).

The deal is that my application is multi-threaded, and I was wondering 
if epoll had issues if you use epoll_ctl while an epoll_wait is waiting 
or something like that.  I'm also compiling with -D_MULTI_THREADED.  I'm 
not new to threading, but am stumped at this point.

I'm not ruling out it being my code, but wanted to ask about epoll since 
it's so new.

Any ideas?

Thanks,
  Davy


bert hubert wrote:

>On Fri, Jul 22, 2005 at 04:18:46PM -0500, Davy Durham wrote:
>  
>
>>Please forgive and redirect me if this is not the right place to ask 
>>this question:
>>
>>I'm looking to write a sort of messaging system that would take input 
>>from any number of entities that "register" with it.. it would then 
>>route the messages to outputs and so forth..
>>    
>>
>
>Look at epoll, or libevent, which uses epoll to be quick in this scenario.
>
>
>  
>


  reply	other threads:[~2005-08-23 17:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-22 21:18 select() efficiency Davy Durham
2005-07-22 21:24 ` bert hubert
2005-08-23  9:49   ` Davy Durham [this message]
2005-08-23 18:24     ` select() efficiency / epoll bert hubert
2005-08-23 11:01       ` Davy Durham
2005-08-23 11:25         ` Davy Durham
2005-08-23 19:12         ` Willy Tarreau
2005-08-23 11:24           ` Davy Durham
2005-08-23 19:45             ` Willy Tarreau
2005-08-23 11:55               ` Davy Durham
2005-08-23 20:20                 ` Willy Tarreau
2005-08-23 23:21                   ` Davide Libenzi
2005-08-23 17:08                     ` Davy Durham
2005-08-24  5:09                       ` Davide Libenzi
2005-08-23 22:35                         ` Davy Durham
2005-08-23 19:30     ` Jari Sundell
2005-08-23 11:53       ` Davy Durham
2005-08-23 20:42         ` Jari Sundell
2005-08-23 17:11           ` Davy Durham
2005-08-23 17:40           ` Davy Durham

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=430AF11A.5000303@davyandbeth.com \
    --to=pubaddr2@davyandbeth.com \
    --cc=bert.hubert@netherlabs.nl \
    --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