From: Eric Wong <normalperson@...> Date: 2018-08-10T02:16:05+00:00 Subject: [ruby-core:88412] Re: [Ruby trunk Feature#14759] [PATCH] set M_ARENA_MAX for glibc malloc shyouhei@ruby-lang.org wrote: > Hmm. Thank you. Now I am very faintly negative because > MALLOC_ARENA_MAX=2 ruby ... > is much easier than > MALLOC_ARENA_MAX=$((`ls -1 /sys/bus/cpu/devices/|wc -l`*8)) ruby... nproc(1) command in GNU coreutils is handy :) MALLOC_ARENA_MAX=$(( $(nproc) * 8 )) ruby... Fwiw, a goal of glibc developers is to limit MALLOC_ARENA_MAX to nproc. It should happen when restartable sequences are available, but maybe it can happen for older kernels, too. Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>