Slashdot Mirror


Boosting Socket Performance on Linux

Cop writes "The Sockets API lets you develop client and server applications that can communicate across a local network or across the world via the Internet. Like any API, you can use the Sockets API in ways that promote high performance -- or inhibit it. This article explores four ways to use the Sockets API to squeeze the greatest performance out your application and to tune the GNU/Linux® environment to achieve the best results."

2 of 138 comments (clear)

  1. somewhat old... by midom · · Score: 0, Redundant
    Where're news? where's the discovery? This has been for ages... And still...

    Most time is spent in select()/poll() anyway. And there's sendfile() for web/ftp servers, hey, that saves syscalls!

    Want nodelay? use UDP! :-)

    Hehehe, go spend your time on serious issues, folks ;-)

  2. Re:I've always wanted to know if it is possible by blofeld42 · · Score: 0, Redundant

    Signals, as in Unix signals? kill sends a signal to the process controlling the socket.

    kill -SIGHUP 1234

    If you want to send data to the process running on the socket, just use telnet

    telnet foo.com 80
    GET /index.html