Re: [PATCH] New EPOLL flag: EPOLLHEAD

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Li Yu
Date: Tuesday, August 3, 2010 - 6:09 am

;), I know that epoll is stackable, i.e. we can use epoll_wait() on fd
that return from epoll_create() However, If we just have a few of
priorities, for example, which are less than 5 (one is controlling
connection, otherwise are some data connections), thus it seem that
stacked epoll() usage is too expensive here, receiving each packet
always requires extra times that switching into kernel in such case,
thus I think that head-inserting ready-events into ep->rdllist is an
excellence solution for this case, in my word, is it right? or have we
more better solution here? Thanks!

Yu

2010/8/3 Davide Libenzi <davidel@xmailserver.org>:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] New EPOLL flag: EPOLLHEAD, Li Yu, (Sun Aug 1, 10:31 pm)
Re: [PATCH] New EPOLL flag: EPOLLHEAD, Davide Libenzi, (Tue Aug 3, 12:12 am)
Re: [PATCH] New EPOLL flag: EPOLLHEAD, Li Yu, (Tue Aug 3, 6:09 am)
Re: [PATCH] New EPOLL flag: EPOLLHEAD, Li Yu, (Tue Aug 3, 11:20 pm)