From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 20 May 2019 15:55:39 +0300 From: Vladimir Davydov Subject: Re: [PATCH v5 1/2] slab_arena: Enhance slab_arena_create to support madvise hints Message-ID: <20190520125538.fwvy2lj53bhvwdzj@esperanza> References: <20190516214559.3310-1-gorcunov@gmail.com> <20190516214559.3310-2-gorcunov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190516214559.3310-2-gorcunov@gmail.com> To: Cyrill Gorcunov Cc: tml , Alexander Turenko List-ID: 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).