# Nginx -\> strategy?

**URL:** <https://www.ruby-forum.com/t/nginx-strategy/228917>\
**Category:** NGINX\
**Created:** [May 13, 2013, 8:22am UTC](https://www.ruby-forum.com/t/nginx-strategy/228917 "2013-05-13T08:22:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![larry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@larry](https://www.ruby-forum.com/u/larry)\
**Post date:** [May 13, 2013, 8:22am UTC](https://www.ruby-forum.com/t/nginx-strategy/228917/1 "2013-05-13T08:22:50Z")

</div>

Hello,

I would like to know how nginx could deal with this situation the most  
comfortable way to serve static files :

1. Is tree traversing fast on xfs/ext4 filesystems ? aaa/bbb/ccc number  
of  
files inside the last subfolder is approx 2000.
2. Will nginx prefer another strategy ?

It is a bit a out-of-any-other-factors-involved question.

Many thanks !

Larry

Posted at Nginx Forum:

> **[Nginx -\> strategy ?](https://forum.nginx.org/read.php?2,239106,239106#msg-239106)**
>
> Hello, I would like to know how nginx could deal with this situation the most comfortable way to serve static files : 1) Is tree traversing fast on xfs/ext4 filesystems ? aaa/bbb/ccc number of files inside the last subfolder is approx 2000. 2) Will...

---

<div class="post-metadata">

**Author:** ![larry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@larry](https://www.ruby-forum.com/u/larry)\
**Post date:** [May 13, 2013, 8:37am UTC](https://www.ruby-forum.com/t/nginx-strategy/228917/2 "2013-05-13T08:37:26Z")

</div>

hi,

i faced a similar question for a client with a lot of files and found  
out,  
after a lot of testing  
and benchmarking, it nearly doesnt matter if we serve those files from a  
ram-tmpfs or  
use the systems os-cache (given, we have plenty of it). so the os  
(linux)  
seems to do a good job.  
the servers were designed to serve static files only.

YMMV

regards,

mex

Posted at Nginx Forum:

> **[Re: Nginx -\> strategy ?](https://forum.nginx.org/read.php?2,239106,239107#msg-239107)**
>
> Hello, I would like to know how nginx could deal with this situation the most comfortable way to serve static files : 1) Is tree traversing fast on xfs/ext4 filesystems ? aaa/bbb/ccc number of files inside the last subfolder is approx 2000. 2) Will...
