Skip to content

Commit

Permalink
Disable default enablement of init_on_alloc feature
Browse files Browse the repository at this point in the history
Disable init_on_alloc to improve ZFS performance. ZFS allocates
and frees pages frequently, and init_on_alloc zeroes out the pages
during allocation. Disabling init_on_alloc should improve ZFS
performance.

Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
  • Loading branch information
usaleem-ix committed Apr 20, 2023
1 parent cec7983 commit d165d39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/package/truenas/truenas.config
Expand Up @@ -72,3 +72,10 @@ CONFIG_DMA_CMA=y
# ATA_LPM_UNKNOWN is the default for non-mobile chipsets, aka "max_performance".
#
CONFIG_SATA_MOBILE_LPM_POLICY=0

#
# Disable init_on_alloc to improve ZFS performance. ZFS allocates and frees
# pages frequently, and init_on_alloc zeroes out the pages during allocation.
# Disabling init_on_alloc should improve ZFS performance.
#
CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n

0 comments on commit d165d39

Please sign in to comment.