Uploading multiple files in mongrel

in one Http request with multipart type, I put many files and send this request to Rails running with Mongrel. For 10000 files of 1 KB each, it takes about half an hour or an hour until Mongrel "cooks the request" and the control flow reaches the Rails code. The same request is processed by Tomcat server in a couple of seconds.

When I examined why Rails takes so much time, I suspected one thing. The following is the expected action from Mongrel: if the incoming file size is less than 10KB, it should store it in the memory, and if it is larger, it should create in the disk. However, if I didn't observe it incorrectly, this doesn't work correctly in Mongrel. As a result, Mongrel tries to create files in disk for each incoming file in the http request(although each file is less than 10KB) and therefore it takes too much time.

My question is: 1) Is there a bug in Mongrel about handling the multi-part http requests?

2) Do we expect Mongrel to create temporary files, only if the incoming file is greater than 10KB?

3) Is there a way to make the uploading process faster in Mongrel?

4) Is there a way to configure Mongrel so that it keeps all the incoming data in memory instead of creating temporary files?

Thanks.