Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.8.9

All files from this thread

File Name File Size   Posted by Date  
patch.copy 2.9 KB open | download Igor Sysoev 08/20/2009 Read message
patch.copy1 293 bytes open | download Igor Sysoev 08/20/2009 Read message
August 19, 2009 02:19AM
On Wed, Aug 19, 2009 at 12:48:12AM -0400, Jim Ohlstein wrote:

> Igor Sysoev wrote:
> >Changes with nginx 0.8.9 17 Aug
> >2009
> >
> > *) Feature: now the start cache loader runs in a separate process;
> > this should improve large caches handling.
> >
> Can you briefly explain the function of cache manager and cache loader
> processes?

Cache loader starts to work 60s later after nginx starts or was reconfigured.
It may run for long time on large cache: even hours. After all caches
will be loaded the cache loader exits. When nginx was reconfigured then
new cache loader tests if a cache already has been loading. If so, then
the new loader goes to the next cache. So for large caches you may see
two or more cache loader processes while reconifurations.

Cache manager starts to work just after nginx starts or was reconfigured.
It deletes inactive cache entries and checks caches size.

Before 0.8.9 there was only cache manager process that at first loaded
cache and then started to manage it. For large caches the caches were
not managed before they will be completely loaded. Besides, if nginx
was reconcifgured while it was loading caches, then a new cache manager
started to load them from the very start: you will see two cache manager
processes do the same thing.

> > *) Feature: now temporarily files and permanent storage area may
> > reside at different file systems.
>
> In the past files were moved from temporary system to cache with hard
> links if I am not mistaken. Does this mean that each file will now be
> written separately? Won't that have a negative impact on disk I/O on a
> busy system?

Now they are just renamed(2)ed too. However, if rename() fails with EXDEV
error, then nginx copies temporary file to permanent_name.random_number
and then rename(2)s the permanent_name.random_number to just permanent_name.

I see two usages of different temporary and permanent storage:

1) permanent storage has serveral mount points to different disks.
2) permanent storage is SSD.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

nginx-0.8.9

Igor Sysoev August 17, 2009 02:12PM

Re: nginx-0.8.9

Jérôme Loyet August 17, 2009 02:23PM

Re: nginx-0.8.9

Jim Ohlstein August 19, 2009 12:48AM

Re: nginx-0.8.9

Igor Sysoev August 19, 2009 02:19AM

Re: nginx-0.8.9

Jim Ohlstein August 20, 2009 01:34AM

Re: nginx-0.8.9 Attachments

Igor Sysoev August 20, 2009 09:54AM

Re: nginx-0.8.9

Jim Ohlstein August 20, 2009 10:42AM

Re: nginx-0.8.9 Attachments

Igor Sysoev August 20, 2009 11:02AM

Re: nginx-0.8.9

Jim Ohlstein August 20, 2009 11:36AM

Re: nginx-0.8.9

InterNetX - Jürgen Gotteswinter August 20, 2009 04:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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