Hi,
I'm trying to understand how the shared memory pool works inside the Nginx.
To do that, I made a very small module which create a shared memory zone
with 2097152 bytes,
and allocating and freeing blocks of memory, starting from 0 and increasing
by 1kb until the allocation fails.
The strange
-0300, Wandenberg Peixoto wrote:
Hi,
I'm trying to understand how the shared memory pool works inside the
Nginx.
To do that, I made a very small module which create a shared memory zone
with 2097152 bytes,
and allocating and freeing blocks of memory, starting from 0 and
increasing
;
+
+ngx_slab_merge_with_neighbour(pool, page);
}
On Tue, Jul 30, 2013 at 7:09 AM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Mon, Jul 29, 2013 at 04:01:37PM -0300, Wandenberg Peixoto wrote:
[...]
What would be an alternative to not loop on pool-pages?
Free memory blocks are linked in pool
including yours, and than execute the final handler.
Regards,
Wandenberg
On Tue, Aug 13, 2013 at 9:04 PM, Myla John-B22173 b22...@freescale.comwrote:
Hi Wandenberg Peixoto,
** **
I appreciate your response.
** **
I have a simple follow-up question. I have looked at the function
Hi Maxim,
did you have opportunity to take a look on this patch?
Regards,
Wandenberg
On Wed, Jul 31, 2013 at 12:28 AM, Wandenberg Peixoto
wandenb...@gmail.comwrote:
Hello!
Thanks for your help. I hope that the patch be OK now.
I don't know if the function and variable names are on nginx
I check to be sure the next and the
previous free pages can be accessed, without problems and I will make the
changes.
Regards,
Wandenberg
On Sun, Oct 6, 2013 at 6:37 AM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Wed, Jul 31, 2013 at 12:28:02AM -0300, Wandenberg Peixoto wrote
,
Wandenberg
On Fri, Dec 20, 2013 at 2:49 PM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Tue, Dec 17, 2013 at 09:05:16PM -0200, Wandenberg Peixoto wrote:
Hi Maxim,
sorry for the long delay. I hope you remember my issue.
In attach is the new patch with the changes you suggest.
Can
Hello Maxim,
did you have opportunity to take a look on this last patch?
Regards,
Wandenberg
On Thu, Dec 26, 2013 at 10:12 PM, Wandenberg Peixoto
wandenb...@gmail.comwrote:
Hello Maxim,
I changed the patch to check only the p-next pointer.
And checking if the page is in an address less
As far as I know, ngx_pool_t are created on process memory area,
so, after a reload the new process has a new memory area and do not have
access to the old.
You can recompile the regex on your module startup, at init worker hook.
On Wed, May 7, 2014 at 6:16 AM, MAGNIEN, Thierry
wrote:
Hello!
On Wed, Jan 22, 2014 at 01:39:54AM -0200, Wandenberg Peixoto wrote:
Hello Maxim,
did you have opportunity to take a look on this last patch?
It looks more or less correct, though I don't happy with the
checks done, and there are various style issues. I'm
larger than a
page
size are possible from the pool. While this isn't a problem for nginx
itself,
it is known to be bad for various 3rd party modules. Fix is to merge
adjacent
blocks of free pages in the ngx_slab_free_pages() function.
Prodded by Wandenberg Peixoto and Yichun Zhang.
diff
Thanks agentzh, Maxim and Igor
On Tue, Jun 3, 2014 at 11:00 AM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Mon, Jun 02, 2014 at 08:42:50PM +0400, Maxim Dounin wrote:
Hello!
On Sat, May 31, 2014 at 11:46:28PM -0300, Wandenberg Peixoto wrote:
Hello Maxim,
I executed my
Hi,
I would like to know what is the right way to start a new process like the
cache manager to execute jobs non related with directly with user
requests.
Can you help me?
Regards,
Wandenberg
___
nginx-devel mailing list
nginx-devel@nginx.org
ember 2015 14:55:32 Wandenberg Peixoto wrote:
> > Hi,
> >
> > today I realized a possible problem on the ngx_atoi and ngx_atof
> functions
> > (may be on all ngx_ato* functions).
> >
> > There is no way to distinguish between an error and a valid "-1" stri
Hi,
today I realized a possible problem on the ngx_atoi and ngx_atof functions
(may be on all ngx_ato* functions).
There is no way to distinguish between an error and a valid "-1" string.
For instance,
ngx_str_t some_string = ngx_string("-1");
ngx_int_t x = ngx_atoi(some_string.data,
No, is the same way.
You may create a custom directive to set if you module is activated or not
on the location.
And check this flag as the first action of your module.
What I mean is, all requests will reach your module, but only the ones
target to the location where it is "on" will handle the
It depends on the module. If it is configurable on main, server or location
blocks. But generally you can enable/disable at any of these 3 levels
On Jun 20, 2016 11:44, "Justin Kennedy" wrote:
> I'll try to simply the question: Can a module be enabled only for specific
>
Hey,
I'm with a weird situation on an nginx instance.
The object on the cache was stored with 200 OK status, but sometimes when a
client request this same object nginx log something like 500 as status, HIT
as cache status, 0 bytes sent and 0 ms as response time.
Have any of you seen an error
Use ngx_queue_t
On Aug 23, 2016 09:41, "Raghavan, Gopal" wrote:
> I can store as ngx_rbtree_t.
> Any suggestion on how to store a struct with list of items, something like
> this in shared memory?
>
> typedef struct {
> ngx_rbtree_node_t node;
>
19 matches
Mail list logo