Welcome! Log In Create A New Profile

Advanced

Re: cache large static files in memory

June 25, 2009 06:48PM
hua Wrote:
-------------------------------------------------------
> It's noticed that Apache provides MMapFile directives in mod_file_cache, which allows you to have Apache
> map a static file's contents into memory at start time (using the mmap system call).
> Apache will use the in-memory contents for all subsequent accesses to this file.
> Does NginX have similar module or configuration options?

mmap syscall doesn't mean file loaded into memory. It means that application can read/write file as memory, and two or more processes can share access to this file without allocating memory and load file into each other. eNGINeX doesn't need this feature, because it is FSM, and not read file at once, it read file piece by piece so fast as peer can receive. In this case best give OS to manage cache and files.

> > > Thanks! So is there any guidance about how to
> configure cache behavior
> > > of linux file systems to gain max
> performance?
This is offtopic, try google if you want to find answers :)
Subject Author Posted

cache large static files in memory

hua June 24, 2009 01:00AM

Re: cache large static files in memory

Gabriel Ramuglia June 24, 2009 01:53AM

Re: cache large static files in memory

hua June 24, 2009 02:18AM

Re: cache large static files in memory

Gabriel Ramuglia June 24, 2009 03:41AM

Re: cache large static files in memory

hua June 24, 2009 06:54AM

Re: cache large static files in memory

Rush June 25, 2009 06:48PM

Re: cache large static files in memory

drmetal May 24, 2011 09:31AM

Re: cache large static files in memory

Felipe aka lpr May 24, 2011 12:54PM

Re: cache large static files in memory

drmetal May 24, 2011 05:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready