Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache calculating size error under SSD drive but not SATA drive

Maxim Dounin
July 18, 2013 10:44AM
Hello!

On Thu, Jul 18, 2013 at 07:46:01AM -0400, feanorknd wrote:

> Hello:
>
> I think I am on the right way, but not sure...
>
> The scenario:
>
> - Have 2 drives:
> -> SSD drive - XFS - default options (with
> noatime, discard) - almost empty
> -> SATA drive - XFS - default options - almost
> empty
>
> - Kernel variables, shared memory, ulimits, max-file, etc... all correctly
> configured
>
> - Nginx and virtualhost correctly configured.
>
> - proxy_cache_path <PATH> levels=1:2 keys_zone=catalogo_fotos:2500m
> max_size=2500m inactive=120d;
>
>
> Ok.. here I am... it depends of the path... the problem is:
>
> - If the path is at SATA drive -> cache is growing until maximum 2500m are
> reached... no problem here. Normal..
> - If the path is at SSD drive -> cache is not growing until limit... it
> stale... problem... why?

Try looking into this ticket:

http://trac.nginx.org/nginx/ticket/157

With XFS, a file size reported on just created files before a file
is closed is incorrect, and this might confuse nginx.

[...]

> What is that "http file cache size: 640039" ???? That number, which way is
> calculated??? What it is?

This is the cache size in blocks.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_cache calculating size error under SSD drive but not SATA drive

feanorknd July 18, 2013 07:46AM

Re: proxy_cache calculating size error under SSD drive but not SATA drive

feanorknd July 18, 2013 08:32AM

Re: proxy_cache calculating size error under SSD drive but not SATA drive

Maxim Dounin July 18, 2013 10:44AM

Re: proxy_cache calculating size error under SSD drive but not SATA drive

feanorknd July 18, 2013 08:54PM

Re: proxy_cache calculating size error under SSD drive but not SATA drive

Maxim Dounin July 19, 2013 06:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
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