Hello! The following patches restore accept mutex unlock on abnormal process termination (broken in 1.0.2 with introduction of POSIX semaphores support in locks) and introduce unlocking of shared memory zone's locks. Maxim Dounin _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-develby Maxim Dounin - Nginx Development
Ok. I am going to try the second approach also. With the patch from the first approach the issue does not appear anymore. Even so you are right, it is not optimal. On 09/30/2011 01:28 PM, Maxim Dounin wrote: > Hello! > > On Fri, Sep 30, 2011 at 12:24:13PM +0300, Anatoli Marinov wrote: > >> There found 2 solutions for this: >> 1. In ngx_http_file_cache_update the call of &by toli - Nginx Development
Hello! On Fri, Sep 30, 2011 at 12:24:13PM +0300, Anatoli Marinov wrote: > There found 2 solutions for this: > 1. In ngx_http_file_cache_update the call of > ngx_shmtx_lock(&cache->shpool->mutex); may be moved before > rc = ngx_ext_rename_file(&tf->file.name, &c->file.name, &ext); > I should work but there will be another syscall when the resource is &gby Maxim Dounin - Nginx Development
There found 2 solutions for this: 1. In ngx_http_file_cache_update the call of ngx_shmtx_lock(&cache->shpool->mutex); may be moved before rc = ngx_ext_rename_file(&tf->file.name, &c->file.name, &ext); I should work but there will be another syscall when the resource is locked. 2. When cache file is read from cache directory its binary header may be compared withby toli - Nginx Development
Hello! On Thu, Sep 29, 2011 at 01:00:20PM +0300, Anatoli Marinov wrote: > I invested more time to investigate the issue and I found something. > > Let's assume there is 2 nginx workers with pids 6362 and 6364 (they > are actually 4 but only these 2 are interested). > There are 3 parallel requests 10102, 10188 and 10232 for one and the > same file. > > See the scenario.by Maxim Dounin - Nginx Development
I invested more time to investigate the issue and I found something. Let's assume there is 2 nginx workers with pids 6362 and 6364 (they are actually 4 but only these 2 are interested). There are 3 parallel requests 10102, 10188 and 10232 for one and the same file. See the scenario. It describes the issue: --- context switch to 6362--- 6362 - 10102 - begin (connection accepted) 6362 - 10102 -by toli - Nginx Development
hello devel, i'm working on a module that uses ngx_event_connect to connect to a 3rdparty service and parses its request. the answer depends on the request hostname, so now i'm implementing a cache in shared memory to cache the responses on a hostname basis. i'm protecting access to every cache entry using a ngx_atomic_t. now i'd like to prevent multiple concurrent connections from requests toby fin - Nginx Development
On Thursday 16 Jun 2011 17:15:38 Arnaud GRANAL wrote: > On Thu, Jun 16, 2011 at 6:41 PM, Rob Stradling <rob.stradling@comodo.com> wrote: > > On Thursday 16 Jun 2011 16:02:12 Igor Sysoev wrote: <snip> > >> As to OCSP, I'm going to implement it in the next 2.0 version. > > > > I'm glad to hear that OCSP Stapling is on your radar. <snip> > As an usby Rob Stradling - Nginx Development
Hello! On Tue, May 24, 2011 at 05:24:53PM -0700, Matthieu Tourne wrote: > Hi, > > I've noticed an issue when limit_zone (and probably limit_req) is used. > If an nginx worker crashes, the cleanup functions for that request will not > get called and the number of connections will not be decremented as it > should be in ngx_http_limit_zone_cleanup(). > > Since it's a sharby Maxim Dounin - Nginx Development
Hi, I've noticed an issue when limit_zone (and probably limit_req) is used. If an nginx worker crashes, the cleanup functions for that request will not get called and the number of connections will not be decremented as it should be in ngx_http_limit_zone_cleanup(). Since it's a shared memory segment when a new worker is started, the number of connection is still at the same value. So if a workeby Matthieu Tourne - Nginx Development
----- Original Message ----- From: "Igor Sysoev" <igor@sysoev.ru> To: <nginx-devel@nginx.org> Sent: Friday, May 06, 2011 2:18 PM Subject: Re: How to use BIG data in my module? > On Fri, May 06, 2011 at 02:14:37PM +0800, XueHJ wrote: >> >> ----- Original Message ----- >> From: "Igor Sysoev" <igor@sysoev.ru> >> To: <nginx-develby XueHJ - Nginx Development
On Fri, May 06, 2011 at 02:14:37PM +0800, XueHJ wrote: > > ----- Original Message ----- > From: "Igor Sysoev" <igor@sysoev.ru> > To: <nginx-devel@nginx.org> > Sent: Friday, May 06, 2011 12:44 PM > Subject: Re: How to use BIG data in my module? > > > > On Fri, May 06, 2011 at 12:38:55PM +0800, XueHJ wrote: > > > >> ----- Originby Igor Sysoev - Nginx Development
----- Original Message ----- From: "Igor Sysoev" <igor@sysoev.ru> To: <nginx-devel@nginx.org> Sent: Friday, May 06, 2011 12:44 PM Subject: Re: How to use BIG data in my module? > On Fri, May 06, 2011 at 12:38:55PM +0800, XueHJ wrote: > >> ----- Original Message ----- >> From: "Piotr Sikora" <piotr.sikora@frickle.com> >> To: <ngiby XueHJ - Nginx Development
On Fri, May 06, 2011 at 12:38:55PM +0800, XueHJ wrote: > ----- Original Message ----- > From: "Piotr Sikora" <piotr.sikora@frickle.com> > To: <nginx-devel@nginx.org> > Sent: Thursday, May 05, 2011 8:26 PM > Subject: Re: How to use BIG data in my module? > > > > Hi, > > > >> in which to load into memory a BIG data (about 800MB), &by Igor Sysoev - Nginx Development
Hi to all, this is my first message here :) I love this webserver and i'm trying to get it running on an x86 embedded system, an alix 2d13. I've built my system using crosstools-ng, buildroot with some own patches and a really recent kernel, version 2.6.37. My appliance need to handle a lot of http connection to serve static pages and, while using lighttpd i got good results, i want more soby Daniele Salvatore Albano - Lavoro - Nginx Development
On Mon, Dec 20, 2010 at 06:24:26PM -0500, Akins, Brian wrote: > On 12/20/10 5:56 PM, "Eugaia" <ngx.eugaia@gmail.com> wrote: > > > Each worker process will see virtual data usage of 50MB for the data, > > but unless I'm mistaken, the overall system usage should still only be > > 50MB because the data is shared in the same physical memory by the OS > >by Igor Sysoev - Nginx Development
Hi, On 21/12/2010 01:24, Akins, Brian wrote: > On 12/20/10 5:56 PM, "Eugaia"<ngx.eugaia@gmail.com> wrote: > >> Each worker process will see virtual data usage of 50MB for the data, >> but unless I'm mistaken, the overall system usage should still only be >> 50MB because the data is shared in the same physical memory by the OS >> until such a time thaby Eugaia - Nginx Development
On 12/20/10 5:56 PM, "Eugaia" <ngx.eugaia@gmail.com> wrote: > Each worker process will see virtual data usage of 50MB for the data, > but unless I'm mistaken, the overall system usage should still only be > 50MB because the data is shared in the same physical memory by the OS > until such a time that it's changed (which it won't unless you re-read > the config, andby Akins, Brian - Nginx Development
Hi, On 21/12/2010 00:45, Akins, Brian wrote: > On 12/20/10 1:41 PM, "Igor Sysoev"<igor@sysoev.ru> wrote: > >> Thank you for the patch. >> How large bases do you use ? As far as I remember MaxMind bases are too >> big, at least no more than 50M. I think this is not big issue to keep >> it entirely in memory. > No, it's not a big issue. But we do rby Eugaia - Nginx Development
Best regards. On Wed, Jul 14, 2010 at 10:38 PM, Hungpo DU <alecdu@gmail.com> wrote: > > > > On Wed, Jul 14, 2010 at 7:01 PM, Srebrenko Šehić <ssehic@gmail.com> wrote: > >> On Wed, Jul 14, 2010 at 4:15 AM, Weibin Yao <nbubingo@gmail.com> wrote: >> >> Hi, >> >> > See this module as an example: >> > http://github.com/cep2by duhoobo - Nginx Development
Hello, I'm relatively new to nginx so I may be completely wrong about what I assume here. Please excuse me if it is the case. I'm streaming large quantities of data from a FCGI application through nginx (large = several gigabytes). When streaming the data, nginx starts to use more and more memory, with the worker process taking more than a gigabyte of RAM at a point. The more I stream, the moreby Pierre Bourdon - Nginx Development
> Date: Thu, 10 Jun 2010 00:42:07 +0400 > From: Igor Sysoev <igor@sysoev.ru> > To: nginx-devel@nginx.org > Subject: Re: nginx-0.8.40 on AIX 5.3 > Message-ID: <20100609204207.GD15263@rambler-co.ru> > Content-Type: text/plain; charset=iso-8859-1 > > On Wed, Jun 09, 2010 at 10:26:44PM +0200, Tam?s Gul?csi wrote: > >> I'm rtying to cimpile nginx-0.8.40 on Aby Tamás Gulácsi - Nginx Development
Dnia czwartek 07 styczeń 2010 o 00:39:14 Maxim Dounin napisał(a): > Hello! > > On Wed, Jan 06, 2010 at 04:09:56PM +0100, witekfl Gazeta.pl wrote: > > Hi, > > http://rkd.republika.pl/ngx_http_layout_filter_module.c > > > > I want to write the mod_layout. > > The idea is: write all chains to temp file, at the end read it, insert > > the header after &lby witekfl - Nginx Development