[PATCH v5 1/2] slab_arena: Enhance slab_arena_create to support madvise hints
Vladimir Davydov
vdavydov.dev at gmail.com
Mon May 20 15:55:39 MSK 2019
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).
More information about the Tarantool-patches
mailing list