On Fri, Jun 20, 2014 at 8:29 PM, Ryan Rogers <[email protected]>
wrote:

> Just to tidy this thread up, we did run tests, and while 5.3.5 has 3x
> total per-conn throughput than4.1, it is still 4x slower than IIS in
> single-conn throughput.
>
> Is your server asynchronously reading the file in background thread
> separately from spitting out the bytes in the communication thread?  If
> not, that is likely the issue.  The file input thread should be dumping
> into a queue that is being read by the net writer thread.  Each stream
> object should be running independently in it's own thread to eliminate any
> wait-state for vending bytes.  Those wait states, while small, will pile up
> in you in a hurry and severely lessen your total throughput, especially for
> slow HD's..
>

> Naturally, for portability the code would enable this only when multiple
> cores are detected, otherwise it would only serve to slow things down
> further.
>
> I don't have any SSD's on the server in question, otherwise I would test
> with the server vending files from that and see if it makes a difference.
> In theory it should not, as both HD and SSD are faster than the net
> connection...so that and only that should be the bottleneck.  But if it
> does make a difference then there is your answer...
>

Ryan, thanks for the tests and elaborate response!
Before jumping into debugging, could you check one more thing please:
compare the download speed from the network and from the localhost.
So in first case, download using URL http://EXTERNAL_IP:PORT/file.txt
 (from the same or different machine)
In second, http://127.0.0.1:PORT/file.txt  (from the same machine)

Localhost address (127.0.0.1) could be considerably faster if TCP stack IO
is an issue. If both cases are roughly the same, then the issue is
elsewhere, like the file IO as you've pointed out.

Thanks!


> Ryan
>
>
> On Friday, June 20, 2014 2:54:40 PM UTC-4, Ryan Rogers wrote:
>
>> I forgot to add, we're going to try 5.3.5, and if it solves the problem,
>> I'm sure the company I'm consulting for will gladly purchase a license so
>> that we don't have to run IIS..
>>
>> Thanks!
>> Ryan
>>
>> On Friday, June 20, 2014 10:47:08 AM UTC-4, Ryan Rogers wrote:
>>
>>> Hi there,
>>>
>>> I'm running 4.1 and I can't vend files faster than 1mbit/s.  Running as
>>> a service.  Windows Server 2008 R2.
>>>
>>> There wass no throttle set in mongoose.conf.  IIS on the same machine
>>> and vend the same file at 1.5MB/sec (12x faster).
>>>
>>> I tried setting this in mongoose.conf to override any default throttle
>>> that may be getting set internally:
>>>
>>> throttle *=0
>>>
>>> Made no difference.
>>>
>>> Why is Mongoose so slow?  It seems to be throttling itself to
>>> 1mbps...and I can't tell it not to...
>>>
>>> What am I missing?
>>>
>>> Also, why can I no longer find the 4.1 documentation online?
>>>
>>> Thanks,
>>> Ryan
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "mongoose-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mongoose-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to