# Proxy\_temp\_path is very slow

**URL:** <https://www.ruby-forum.com/t/proxy-temp-path-is-very-slow/226910>\
**Category:** NGINX\
**Created:** [February 25, 2013, 3:08pm UTC](https://www.ruby-forum.com/t/proxy-temp-path-is-very-slow/226910 "2013-02-25T15:08:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indo\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ce7236/32.png) [@Indo\_P](https://www.ruby-forum.com/u/Indo_P)\
**Post date:** [February 25, 2013, 3:08pm UTC](https://www.ruby-forum.com/t/proxy-temp-path-is-very-slow/226910/1 "2013-02-25T15:08:29Z")

</div>

Hello,

I’m using proxy\_cache with nginx. I have nginx set as proxy cache to get  
the file from servers in onother country.

Sometimes I have almost 3000 files in the temp path, and my disk I/O is  
very high. Actually I’m using 2 SSD with RAID-0.

May I know is there any other problems? Here’s my config  
proxy\_cache\_path /var/nginx/folder levels=1 keys\_zone=one:1000m  
inactive=7d max\_size=300g;  
proxy\_temp\_path /var/nginx/temp;

---

<div class="post-metadata">

**Author:** ![Indo\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ce7236/32.png) [@Indo\_P](https://www.ruby-forum.com/u/Indo_P)\
**Post date:** [February 25, 2013, 4:01pm UTC](https://www.ruby-forum.com/t/proxy-temp-path-is-very-slow/226910/2 "2013-02-25T16:01:39Z")

</div>

On 25 February 2013 14:07, Indo P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> inactive=7d max\_size=300g;  
> proxy\_temp\_path /var/nginx/temp;

If you believe that number of files causes slow IO, why not try  
increasing the number of cache directories via the “levels=”  
parameter?

I have no opinion either way; it would just be one of the things I  
would try if attempting to fix this issue for myself.

## Regards, Jonathan

Jonathan M. // Oxford, London, UK

> **[Jonathan Matthews :: Words Typed, Great Rates For Cash](https://www.jpluscplusm.com)**
