Ok, I compiled nginx from scratch so I could include the with-debug option.  What happens is that I click on the submit button and the error.log shows nginx cranking through the same messages, which I will show below.  After a minute or so, it finally starts uploading the file.  I have copied the last part of the debug messages that show it cranking (and not doing anything) after I clicked on the upload button, and then the log shows the first part of when it finally starts uploading.  Does the fact that it keeps showing "accept mutex lock failed" and then finally, when it starts uploading, it shows "accept mutex locked", does this mean anything?
<br><br>Here is the snippet from the log file:<br><br><br>2007/12/31 10:07:10 [debug] 22764#0: worker cycle<br>2007/12/31 10:07:10 [debug] 22766#0: accept mutex lock failed: 0<br>2007/12/31 10:07:10 [debug] 22764#0: accept mutex lock failed: 0
<br>2007/12/31 10:07:10 [debug] 22766#0: kevent timer: 500, changes: 0<br>2007/12/31 10:07:10 [debug] 22764#0: kevent timer: 500, changes: 0<br>2007/12/31 10:07:10 [debug] 22766#0: kevent events: 0<br>2007/12/31 10:07:10 [debug] 22766#0: timer delta: 500
<br>2007/12/31 10:07:10 [debug] 22764#0: kevent events: 0<br>2007/12/31 10:07:10 [debug] 22766#0: posted events 00000000<br>2007/12/31 10:07:10 [debug] 22764#0: timer delta: 500<br>2007/12/31 10:07:10 [debug] 22766#0: worker cycle
<br>2007/12/31 10:07:10 [debug] 22764#0: posted events 00000000<br>2007/12/31 10:07:10 [debug] 22766#0: accept mutex lock failed: 0<br>2007/12/31 10:07:10 [debug] 22764#0: worker cycle<br>2007/12/31 10:07:10 [debug] 22766#0: kevent timer: 500, changes: 0
<br>2007/12/31 10:07:10 [debug] 22764#0: accept mutex lock failed: 0<br>2007/12/31 10:07:10 [debug] 22764#0: kevent timer: 500, changes: 0<br>2007/12/31 10:07:11 [debug] 22766#0: kevent events: 0<br>2007/12/31 10:07:11 [debug] 22766#0: timer delta: 500
<br>2007/12/31 10:07:11 [debug] 22766#0: posted events 00000000<br>2007/12/31 10:07:11 [debug] 22766#0: worker cycle<br>2007/12/31 10:07:11 [debug] 22764#0: kevent events: 0<br>2007/12/31 10:07:11 [debug] 22764#0: timer delta: 500
<br>2007/12/31 10:07:11 [debug] 22764#0: posted events 00000000<br>2007/12/31 10:07:11 [debug] 22764#0: worker cycle<br>2007/12/31 10:07:11 [debug] 22764#0: accept mutex lock failed: 0<br>2007/12/31 10:07:11 [debug] 22764#0: kevent timer: 500, changes: 0
<br>2007/12/31 10:07:11 [debug] 22766#0: accept mutex lock failed: 0<br>2007/12/31 10:07:11 [debug] 22766#0: kevent timer: 500, changes: 0<br>2007/12/31 10:07:11 [debug] 22765#0: kevent events: 0<br>2007/12/31 10:07:11 [debug] 22765#0: timer delta: 65000
<br>2007/12/31 10:07:11 [debug] 22765#0: *4 event timer del: 10: 828555818<br>2007/12/31 10:07:11 [debug] 22765#0: *4 http keepalive handler<br>2007/12/31 10:07:11 [debug] 22765#0: *4 close http connection: 10<br>2007/12/31 10:07:11 [debug] 22765#0: *4 free: 00000000
<br>2007/12/31 10:07:11 [debug] 22765#0: *4 free: 00000000<br>2007/12/31 10:07:11 [debug] 22765#0: *4 free: 00000000<br>2007/12/31 10:07:11 [debug] 22765#0: *4 free: 00000000<br>2007/12/31 10:07:11 [debug] 22765#0: *4 free: 00500510, unused: 48
<br>2007/12/31 10:07:11 [debug] 22765#0: posted events 00000000<br>2007/12/31 10:07:11 [debug] 22765#0: worker cycle<br>2007/12/31 10:07:11 [debug] 22765#0: accept mutex locked<br>2007/12/31 10:07:11 [debug] 22765#0: kevent timer: -1, changes: 0
<br>2007/12/31 10:07:11 [debug] 22765#0: kevent events: 1<br>2007/12/31 10:07:11 [debug] 22765#0: kevent: 7: ft:-1 fl:0005 ff:00000000 d:1 ud:002C3000<br>2007/12/31 10:07:11 [debug] 22765#0: post event 002C3000<br>2007/12/31 10:07:11 [debug] 22765#0: timer delta: 10
<br>2007/12/31 10:07:11 [debug] 22765#0: posted event 002C3000<br>2007/12/31 10:07:11 [debug] 22765#0: delete posted event 002C3000<br>2007/12/31 10:07:11 [debug] 22765#0: accept on <a href="http://0.0.0.0:9000">0.0.0.0:9000
</a>, ready: 1<br>2007/12/31 10:07:11 [debug] 22765#0: malloc: 00500510:256<br>2007/12/31 10:07:11 [debug] 22765#0: *7 accept: <a href="http://127.0.0.1">127.0.0.1</a> fd:10<br>2007/12/31 10:07:11 [debug] 22765#0: *7 event timer add: 10: 60000:828615828
<br>2007/12/31 10:07:11 [debug] 22765#0: *7 kevent set event: 10: ft:-1 fl:0025<br>2007/12/31 10:07:11 [debug] 22765#0: posted event 00000000<br>2007/12/31 10:07:11 [debug] 22765#0: posted events 00000000<br>2007/12/31 10:07:11 [debug] 22765#0: worker cycle
<br>2007/12/31 10:07:11 [debug] 22765#0: accept mutex locked<br>2007/12/31 10:07:11 [debug] 22765#0: kevent timer: 60000, changes: 1<br><br><div class="gmail_quote">On Dec 23, 2007 9:18 AM, Rapsey &lt;<a href="mailto:rapsey@gmail.com">
rapsey@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">How slow is it? <br>I use OS X and nginx as a frontend, but not to mongrel. File uploading works fine for me. 
<div><div></div><div class="Wj3C7c"><br><br><br><br><div class="gmail_quote">On Dec 22, 2007 10:39 PM, Jamey Cribbs &lt;<a href="mailto:jamey.cribbs@gmail.com" target="_blank">
jamey.cribbs@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, I turned off sendfile in config.&nbsp; I also changed a bunch of parameters per an email I received from Dave Cheney (thanks Dave!).&nbsp; No luck.
<br><br>Just for laughs, I installed and configured Swiftiply with Mongrel and turned off Nginx.&nbsp; Same issue.
<br><br>So, then I turned off Swiftiply also and started just one mongrel and told it to listen on port 80.&nbsp; It worked great.&nbsp; File uploads were much faster.<br><br>So, if I am having the same issue when proxying from either Swiftiply or Nginx, but I don&#39;t have the slowness issue when I don&#39;t proxy and just go straight to the mongrel instance, this tells me the problem is not with Nginx, but must be some setting on the OS X server.
<br><br>Does anyone know what would cause proxying in general to be slow on an OS X server?&nbsp; I know its not the network speed from the browser to the server, because when I was connecting directly to the mongrel instance without proxying, file uploads were fine.
<br><br>Sorry for asking this (probably) non-nginx related question on the list, but I started it here, so I figured I would ask one more question.<br><br>Thanks.<br><font color="#888888"><br>Jamey Cribbs</font><div><div>

</div><div><br><br><br><div class="gmail_quote">On Dec 22, 2007 2:08 PM, Alex Egg &lt;
<a href="mailto:eggie5@gmail.com" target="_blank">eggie5@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">no sendfile on os x
<br>
<div><div></div><div><br>On Dec 22, 2007 7:57 AM, Wayne E. Seguin &lt;<a href="mailto:wayneeseguin@gmail.com" target="_blank">wayneeseguin@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; On Dec 21, 2007 10:28 AM, Jamey Cribbs &lt;
<a href="mailto:jamey.cribbs@gmail.com" target="_blank">jamey.cribbs@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; &gt; I have a rails app running on an OS X server, using nginx as the web<br>&gt; server, proxying to a mongrel cluster. &nbsp;File uploads from the user&#39;s browser
<br>&gt; are painfully slow when going through nginx, but if I target an individual<br>&gt; mongrel instance in the browser, the file upload is fast. &nbsp;I have the latest<br>&gt; mac ports version of nginx installed ( 0.54

, I believe).
<br>&gt; &gt;<br>&gt; &gt; Any ideas? &nbsp;I tried changing the log format, as suggested in a reply to<br>&gt; someone else&#39;s post, but could not get nginx to start, so I don&#39;t know if<br>&gt; nginx has to be compiled with a particular flag in order to include the log
<br>&gt; format config directive in nginx.conf.<br>&gt; &gt;<br>&gt; &gt; Any help, suggestions would be greatly appreciated.<br>&gt; &gt;<br>&gt; &gt; Jamey Cribbs<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; Try turning sendfile off in the config.
<br>&gt;<br>&gt; &nbsp; ~Wayne<br>&gt;<br><br></div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>