[PATCH v5 1/2] slab_arena: Enhance slab_arena_create to support madvise hints

Cyrill Gorcunov gorcunov at gmail.com
Mon May 20 16:03:05 MSK 2019


On Mon, May 20, 2019 at 03:55:39PM +0300, Vladimir Davydov wrote:
> On Fri, May 17, 2019 at 12:45:58AM +0300, Cyrill Gorcunov wrote:
> > @@ -157,6 +206,9 @@ slab_arena_create(struct slab_arena *arena, struct quota *quota,
> >  	} else {
> >  		arena->arena = NULL;
> >  	}
> > +
> > +	madvise_checked(arena->arena, arena->slab_size, arena->flags);
> > +
> 
> Apparently, you should use arena->prealloc here. Fixed and pushed the
> patch set to master (both tarantool and tarantool-small).

Indeed, thanks!



More information about the Tarantool-patches mailing list