bundling efficiency, too good to be true?

R

Roedy Green

Everyone has seen that sending one big file works much more
efficiently than many small files. The effect quite astounding, many
orders of magnitude. It just occurred to me that I don't think I can
account for that huge difference. Where is all the time going?

It then occurred to me, that any sort of technique to reduce the
difference could have a huge effect on the Internet as a whole.
 
A

Arne Vajhøj

Everyone has seen that sending one big file works much more
efficiently than many small files. The effect quite astounding, many
orders of magnitude. It just occurred to me that I don't think I can
account for that huge difference. Where is all the time going?

Given the lack of context, then one can only guess:
- file open and file creation are rather expensive operations
so many small files have huge overhead
- per file protocol overhead
- really small files can not be compressed as efficiently
as larger files

Arne
 
T

Tom Anderson

Everyone has seen that sending one big file works much more efficiently
than many small files. The effect quite astounding, many orders of
magnitude. It just occurred to me that I don't think I can account for
that huge difference. Where is all the time going?

TCP handshake, TCP slow start (look that one up if you don't know it),
roundtrips for control packets at the start of the connection. Losing a
bit of time can have a huge impact on throughput - it's all about the
bandwidth-delay product, which on today's long, fat networks is huge.
It then occurred to me, that any sort of technique to reduce the
difference could have a huge effect on the Internet as a whole.

Yes. It's called pipelining, and it's been in HTTP since 1999.

Although it's not that widely used by browsers, because of worries about
compatibility with servers, which seems a bit of a waste.

tom
 
K

Kevin McMurtrie

Tom Anderson said:
TCP handshake, TCP slow start (look that one up if you don't know it),
roundtrips for control packets at the start of the connection. Losing a
bit of time can have a huge impact on throughput - it's all about the
bandwidth-delay product, which on today's long, fat networks is huge.


Yes. It's called pipelining, and it's been in HTTP since 1999.

Although it's not that widely used by browsers, because of worries about
compatibility with servers, which seems a bit of a waste.

tom

Browsers don't support pipelining because the multiplexer/demultiplexer
is too complicated for the average software engineer. Out-of-order
response processing requires forcing preceding responses in the pipeline
into memory. That's tricky, but not too bad. Now do that and rebuild
the pipeline when the connection closes or drops. Ugly!

At least in the old Innovation HTTPClient, that results in multiple lock
grabs on components of linked list that's prone to failure. The code is
convoluted and it's looking like a total rewrite might be easier.

Last I heard, Microsoft and Apache clients can't pipeline; WebKit can
but it's an experimental feature.
 
A

Arved Sandstrom

Kevin said:
Browsers don't support pipelining because the multiplexer/demultiplexer
is too complicated for the average software engineer.
[ SNIP ]
AHS

Simple solution - don't use average software engineers to work on this
code. There are how many significant web browsers again? Surely it's not
so tough to ensure that the 2 or 3 people per important browser, maybe a
dozen people for the planet overall, are above-average.

Average software engineers (programmers in countries where you can't
legally call a programmer an engineer, or in the US where it's usually a
misnomer) can't reliably code chunked transfer encoding either, yet
significant web browsers have that feature.

If 10% of all programmers are competent to work on problems like this
(that might be generous, it might be 3 or 5 percent) then you've still
got hundreds of thousands of people that can do it.

AHS
 
T

Tom Anderson

Browsers don't support pipelining because the multiplexer/demultiplexer
is too complicated for the average software engineer.

Opera - uses pipelining
Firefox - supports pipelining, not turned on by default
Konqueror - supports pipelining, not turned on by default
IE - does not support pipelining
Safari - does not support pipelining

I guess Opera, Mozilla and KDE all have above-average engineers.
Last I heard, Microsoft and Apache clients can't pipeline;

No surprise about MS. What's the Apache client? I'm not aware of a browser
made by Apache - do you mean some non-browser client? HttpClient, perhaps?

tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top