stevedrew commented on issue #1409: Network performance issue (30 secs for 8mb 
PUT) 
URL: https://github.com/apache/couchdb/issues/1409#issuecomment-399783183
 
 
   OK good news found solution to performance issue. Turns out the recbuf 
setting is the cause.
    
   I had to comment out the recbuf param in mochiweb/mochiweb_socket_server.erl 
and then the time to put a 10 MB text file went from 1 min 29 seconds to < 1 
second !! 
   
   **Could this be the cause of all the complaints about how slow couchdb is 
for attachments?**
   
   I believe not setting recbuf on linux then allows the operating system to 
handle it more efficiently. (When set it seems to be causing some tcp window 
size performance issues that lead to the huge delay for larger PUTs.)
   
   I also found this PR https://github.com/mochi/mochiweb/issues/153  to fix 
mochiweb to allow an "undefined" setting for recbuf, but couchdb 2.1.1 is not 
using this version, I tried using this version with couchdb but couchdb did not 
seem to allow undefined as a param to recbuf in the ini file.
   
   So it would seem like we need couchdb to support setting recbuf to 
undefined, maybe even having that a the default? 
   
   Thanks,
   Steve.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to