Re: Python / Socket speed

2007-02-26 Thread Paul Rubin
John Nagle <[EMAIL PROTECTED]> writes: > Sockets and pipes are a terrible way to do local interprocess > communication, but it's what we've got. The problem is that what you > want is a subroutine call, but what the OS gives you is an I/O operation. Using TCP sockets is ridiculous but Unix d

Re: Python / Socket speed

2007-02-26 Thread John Nagle
Richard Brodie wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Seems like sockets are about 6 times faster on OpenSUSE than on >>Windows XP in Python. >> >>http://pyfanatic.blogspot.com/2007/02/socket-performance.html >> >>Is this related to Python or the OS? > > > It

Re: Python / Socket speed

2007-02-26 Thread casevh
On Feb 26, 7:05 am, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > On 26 Feb, 15:54, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Seems like sockets are about 6 times faster on OpenSUSE than on > > Windows XP in Python. > > >http://pyfanatic.blogspot.com/2007/02/socket-performance.html > > > Is

Re: Python / Socket speed

2007-02-26 Thread Paul Boddie
On 26 Feb, 15:54, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Seems like sockets are about 6 times faster on OpenSUSE than on > Windows XP in Python. > > http://pyfanatic.blogspot.com/2007/02/socket-performance.html > > Is this related to Python or the OS? >From the output: > TCP window size

Re: Python / Socket speed

2007-02-26 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Seems like sockets are about 6 times faster on OpenSUSE than on > Windows XP in Python. > > http://pyfanatic.blogspot.com/2007/02/socket-performance.html > > Is this related to Python or the OS? It's 6 times faster even when not using

Python / Socket speed

2007-02-26 Thread [EMAIL PROTECTED]
Seems like sockets are about 6 times faster on OpenSUSE than on Windows XP in Python. http://pyfanatic.blogspot.com/2007/02/socket-performance.html Is this related to Python or the OS? /MSkou -- http://mail.python.org/mailman/listinfo/python-list

Re: Socket Speed

2005-06-06 Thread Jeff Epler
The machines with the 100mbps ethernet link are slightly different---Pentium 4, 2.8GHz, Python 2.2, RedHat 9. File size: 87490278 Best of 4 runs: 7.50 MB/s reported by "wget". There was other network activity and system load at the time. Jeff pgpNVPeW3ghJL.pgp Description: PGP signature -- h

Re: Socket Speed

2005-06-05 Thread marinus van aswegen
Would you care to do that between two machines on a 100mb link ? On 6/5/05, Jeff Epler <[EMAIL PROTECTED]> wrote: > 300KB/s sounds dreadfully low. > > I simply ran "python /usr/lib/python2.3/SimpleHTTPServer.py &", then > "wget -O /dev/null http://0.0.0.0:8000/70megfile";. On the best of 4 > run

Re: Socket Speed

2005-06-05 Thread marinus van aswegen
Hi Jeff Would you care to do that between two machines on a 100mb link ? M On 6/5/05, Jeff Epler <[EMAIL PROTECTED]> wrote: > 300KB/s sounds dreadfully low. > > I simply ran "python /usr/lib/python2.3/SimpleHTTPServer.py &", then > "wget -O /dev/null http://0.0.0.0:8000/70megfile";. On the bes

Re: Socket Speed

2005-06-05 Thread Dave Brueck
[EMAIL PROTECTED] wrote: > Hi All > > I'm busy writing a python p2p program and would like some advice. > > I'm pushing about 300k/s and would like to know if there are any python > tricks I could pull to speed things up. I'm thinking about unrolling > some of the loops and recuding calls to my c

Re: Socket Speed

2005-06-05 Thread Jeff Epler
300KB/s sounds dreadfully low. I simply ran "python /usr/lib/python2.3/SimpleHTTPServer.py &", then "wget -O /dev/null http://0.0.0.0:8000/70megfile";. On the best of 4 runs (when the file was cached) wget measured 225.20MB/s. The hardware is a Pentium-M laptop with 768MB RAM runnng at 1.5GHz.

Socket Speed

2005-06-05 Thread mvanaswegen
Hi All I'm busy writing a python p2p program and would like some advice. I'm pushing about 300k/s and would like to know if there are any python tricks I could pull to speed things up. I'm thinking about unrolling some of the loops and recuding calls to my custom socket class and just calling rec