<div>Increasing buffer size and number of workers from 1&nbsp;only made things worse, at one stage the laod started spiraling above 20 its down to 4 now on the 2 servers</div>
<div>&nbsp;</div>
<div>Right now im very screwed, the performance loss&nbsp;from switching to nginx is killing the servers, i also setup 2nd server identically</div>
<div>&nbsp;</div>
<div>the graphs speak for themselves :(</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>server converted yesterday</div>
<div><a href="http://img255.imageshack.us/img255/6753/31857516tg7.png">http://img255.imageshack.us/img255/6753/31857516tg7.png</a></div>
<div>&nbsp;</div>
<div>new server to the left of the dip is lighttpd</div>
<div><a href="http://img341.imageshack.us/img341/3734/59174322lt9.png">http://img341.imageshack.us/img341/3734/59174322lt9.png</a></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>im now very screwed as&nbsp;i was gonna relly on nginx&#39;s accel-redirect feature and lighttpd 1.4.18 has it, im testing lighttpd1.5 svn now but i dont know how stable that be, </div>
<div>sorry for being so down :&#39;{ i feel like crying this was certainly the worst case scenraio when is started migrating, a 10-20% drop in bandwdith usage&nbsp;between all the servers&nbsp;will mean 1000-2000$ loss due to wasted costs</div>

<div><br><br></div>
<div class="gmail_quote">On Mon, Feb 25, 2008 at 10:25 AM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">On Mon, Feb 25, 2008 at 09:45:57AM +0000, nginx.mailinglist wrote:<br><br>&gt; I changed to one worker and the loads have gone down, thanks (spasibo!)<br>&gt; &nbsp;Igor<br>&gt;<br>&gt; tho bandwidth usage is still 10% lower than lighttpd im gonna test on other<br>
&gt; servers now<br>&gt;<br>&gt; i will back report results<br><br></div></div>As I understand for writev-backend lighttpd mmap()s file in 512K chunks<br>and writev()s them. You may try in nginx<br><br>&nbsp; output_buffers &nbsp; 1 &nbsp;512k; &nbsp;# default is &quot;1 32k&quot;<br>
<br>The output_buffers are used if sendfile is not used.<br><br>Also you may try to set 2 or 3 workers if it will increase bandwidth.<br><br>Note, that disabling sendfile in both nginx and ligthy may increase<br>bandwidth, but also ceratinly increases memory consumption at user- and<br>
kernel-level that may leave to DOS. You should find compromisse.<br><font color="#888888"><br><br>--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br><br></font></blockquote></div>
<br>