Re: Analogue of Windows I/O completion ports on Linux?
From: Erik de Castro Lopo (nospam_at_mega-nerd.com)
Date: 09/24/05
- Next message: Kasper Dupont: "Re: reliable way to set a kernel thread priority"
- Previous message: Pete Zaitcev (OTID3): "Re: USB request queuing?"
- In reply to: Krzys Ostrowski: "Analogue of Windows I/O completion ports on Linux?"
- Next in thread: David Schwartz: "Re: Analogue of Windows I/O completion ports on Linux?"
- Reply: David Schwartz: "Re: Analogue of Windows I/O completion ports on Linux?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 24 Sep 2005 16:11:24 +1000
Krzys Ostrowski wrote:
>
> Hi,
>
> I'm looking for advice on how I can port to Linux a
ok
> high-perf Windows app
:-)
> using I/O completion ports for network communication. The model I'm looking
> for is multiple UDP sockets attached to a single port that I can wait on
> with timeout. This allows me to limit to a single thread polling on the
> completion port, managing its own timer and scheduling, and processing
> events sequentially.
Use select()? The man page is pretty good.
> Is there some way to achieve this without hacking in
> the kernel? Any recent or planned kernel additions or extensions that
> somebody would be aware of?
>
> I'm well aware of the option to get asynchronous notifications but neither
> that nor any multithreaded solution are not what I'm looking for. My
> experiments show that at least in Windows platform, these are inferior in
> terms of performance
If you want performance you should forget about what windows does and find
out how to best do it on Linux. On Linux I think you will probably maximize
performance by using blocking I/O with select() in a single thread.
Erik
-- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ Linux, the UNIX defragmentation tool.
- Next message: Kasper Dupont: "Re: reliable way to set a kernel thread priority"
- Previous message: Pete Zaitcev (OTID3): "Re: USB request queuing?"
- In reply to: Krzys Ostrowski: "Analogue of Windows I/O completion ports on Linux?"
- Next in thread: David Schwartz: "Re: Analogue of Windows I/O completion ports on Linux?"
- Reply: David Schwartz: "Re: Analogue of Windows I/O completion ports on Linux?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|