On 2002.02.16, Simos Gabrielidis <[EMAIL PROTECTED]> wrote:
> it takes 31
> seconds to upload a 2346 Kbytes file when IOBufSize is 2000; it takes 30
> seconds to upload the same file when IOBufSize is anywhere between 16000 to
> 8000000. Note that all testing is done on my internal 100Mb/sec network
> where copying the same file to the server (using samba or ftp) is almost
> instantaneous! (less than 1 second)

Simos,

Give us a hint.  What OS/platform are you running on?  My guess
is x86 Linux.  You mention 100 mbit ethernet - full or half duplex?
What version of AOLserver are you using?  If an older version, are
you using nsd76 or nsd8x?

Also, how are you "uploading" the 2346 Kbyte file?  HTTP POST using
multipart/form-data or application/x-www-form-urlencoded?  You do
realize that you're sending a LOT more than 2346 Kbytes over the wire
compared to uploading the file via FTP, right?  When it's encoded for
HTTP POST, you end up sending over nearly 3x the amount of bytes
for it's encoded representation.  So, your 2346 KB file is really
sending around 7000 KB of data across the wire.  Then, there's
processing overhead of decoding that data back down to the actual
2346 KB itself.  On top of that, you've got Tcl's internal
representation of your binary data overhead (until everything
in the AOLserver core uses TclObj's...) so that could be slowing
things down.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)

Reply via email to