Re: select() efficiency / epoll

2005-08-24 Thread Davy Durham
Davide Libenzi wrote: There is no known problem in using epoll_ctl() in one thread while another does epoll_wait(). I suggest you to ask Valgrind to take a look at you binary. Since I have no clue of what your software does, please create the *minimal* code snippet that exploit the eventual

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
Jari Sundell wrote: On 8/23/05, Davy Durham <[EMAIL PROTECTED]> wrote: I was hoping you would mention in your reply that you knew epoll_data_t was an union and you didn't touch epoll_data::fd, so i wouldn't have to say it explicitly. ;) Oh!.. unless the epoll_data_t is

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
Jari Sundell wrote: On 8/23/05, Davy Durham <[EMAIL PROTECTED]> wrote: I was hoping you would mention in your reply that you knew epoll_data_t was an union and you didn't touch epoll_data::fd, so i wouldn't have to say it explicitly. ;) No, I saw that epoll_data_t was a

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
Davide Libenzi wrote: I should mention that the 2.4 patch is old WRT mainline epoll in 2.6 (I stopped maintaining it when 2.6 went "stable"). I'd definitely suggest to use 2.6 if you are looking at epoll. I am using linux-2.6.11 and glibc-2.3.4 .. and using select() in it's place seems to

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
Thanks for the info.. I did find this thread and was wondering if this patch ever got put in http://www.ussg.iu.edu/hypermail/linux/kernel/0303.3/1139.html Willy Tarreau wrote: On Tue, Aug 23, 2005 at 06:24:42AM -0500, Davy Durham wrote: That's probably a good idea. Where would I

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
Jari Sundell wrote: On 8/23/05, Davy Durham <[EMAIL PROTECTED]> wrote: 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). Is it possible that you are overwritting the po

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
That's probably a good idea. Where would I find out what other projects use it? Willy Tarreau wrote: Hi, On Tue, Aug 23, 2005 at 06:01:15AM -0500, Davy Durham wrote: I just mean that when I debug and catch the segv, it's dies because some pointers now have corrupted values.

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
Davy Durham wrote: I'm currently re-writing some code to make it use select() instead of epoll_wait() and see if everything is suddently fixed. If so, then I will suspect that epoll has a problem. But it's still not ruled out being my fault since it could be a timing issue that

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
bert hubert wrote: On Tue, Aug 23, 2005 at 04:49:14AM -0500, Davy Durham wrote: 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). epoll is pretty heavily benchmarked and hence

Re: select() efficiency / epoll

2005-08-23 Thread Davy Durham
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

Re: /proc question

2005-08-04 Thread Davy Durham
Jan Engelhardt wrote: I have a zombie process which has apparently died for some unknown reason.. I know it was terminated by a signal (found that from the 9th field (sheduler flags) in /proc/pid/stat) Start the process under the observation of strace. However, I'm trying to figure o

/proc question

2005-08-04 Thread Davy Durham
After much research.. I have a question regarding /proc I have a zombie process which has apparently died for some unknown reason.. I know it was terminated by a signal (found that from the 9th field (sheduler flags) in /proc/pid/stat) However, I'm trying to figure out what signal killed it.

select() efficiency

2005-07-22 Thread Davy Durham
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.. I'm guessing that the mes

Suspend/Resume

2005-04-21 Thread Davy Durham
Hi, I've been trying for the last few days to get my D810 to suspend and resume in linux. I'm doing it from klaptop in kde using Fedora Core 3, but I've now compiled my own linux-2.6.12-rc2-mm3 kernel since I've seen some ACPI changes going in. At 2.6.11 it would seem to suspend ok, but when

Dell D810 Laptop Suspend/Resume

2005-04-20 Thread Davy Durham
Hi, I've been trying for the last few days to get my D810 to suspend and resume in linux. I'm doing it from klaptop in kde using Fedora Core 3, but I've now compiled my own linux-2.6.12-rc2-mm3 kernel since I've seen some ACPI changes going in. At 2.6.11 it would seem to suspend ok, but when