On Thu, Mar 16, 2017 at 09:51:22PM +0800, Aaron Lu wrote: > Considering that we are mostly improving for memory intensive apps, the > default setting should probably be: max_active = node_number with each > worker freeing 2G memory.
In case people want to give this setting a try, here is what to do. On 2-nodes EP: # echo 2 > /sys/devices/virtual/workqueue/batch_free_wq/max_active # echo 1030 > /sys/kernel/debug/parallel_free/max_gather_batch_count On 4-nodes EX: # echo 4 > /sys/devices/virtual/workqueue/batch_free_wq/max_active # echo 1030 > /sys/kernel/debug/parallel_free/max_gather_batch_count