Re: Analogue of Windows I/O completion ports on Linux?

From: Erik de Castro Lopo (nospam_at_mega-nerd.com)
Date: 09/24/05


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.


Relevant Pages

  • Re: uCLinux on Samsung S3C4510B (ARM7TDMI) based wireless router
    ... serial port or printer port, ... linux or further. ... > router, access point and print server, all at the same time, preferably ... > and openap-ng) options as well as uCLinux. ...
    (comp.os.linux.embedded)
  • Re: Unix / Linux Program Port to OS/2 with GCC and LIBC: HowTo Support / Use of Unix Function "Symb
    ... The discussion of the MPlayer port comes up with the above subject. ... OS/2 port on Hobbes: http://hobbes.nmsu.edu/cgi-bin/h-search?key=coreutils_5.93 ... The Linux symbolic link function is introduced ...
    (comp.os.os2.multimedia)
  • Re: TOP Network Interface Port of a Sun Ultra 30
    ... What I had was a PCI card in my Linux ... this device connects to an Ethernet port. ... on the Sun that makes it not as possible to support the DEVICES I have on ... significant speed difference if I were to connect this to a network card ...
    (comp.sys.sun.hardware)
  • Re: Serial port blues
    ... digital amateur radio on Linux, because I'm curious whether or not the ... the serial port can only be controled by the kernel. ... processes without needing to hit the reset button. ...
    (Linux-Kernel)
  • RE: seeking a better understanding
    ... were to breach that port, could they do more than deface my website? ... or do I need a middle box running some form of firewall ... Other boxes are Linux. ... use on a linux machine, and do the spot trojans as the MS ones do? ...
    (Security-Basics)