[Yum-devel] Fastest mirror selection plugin

Luke Macken lmacken at redhat.com
Sun Aug 14 01:47:22 UTC 2005


On Sat, Aug 13, 2005 at 06:36:54PM -0700, Michael Stenner wrote:
| Your assumptions are incorrect.  The way select works is that you give
| it sevreal file objects (or sockets) and it waits until ANY of them is
| ready, or until some timeout passes.  In our case, if we were waiting
| for more than one (which I agree is a good idea) then we would note
| the elapsed time when one finished and then hit select again on the
| remaining sockets.  Thus, it's still parallelized and would take the
| same amount of time.

Ah, ok, I misunderstood.  I haven't dealt with select() in a while, and
didn't know if the sockets would be blocking or not.

In that case, I think that implementation would probably be better.

| I think that's a nice first step and it's quicker.  Guessing at the
| throughput will
| 
|   a) take longer
|   b) require downloading more
|   c) require that we know something about the server so that we can
|      download something of reasonable size.

Yep, totally not worth it in our case.


luke



More information about the Yum-devel mailing list