ZFS sends TIRMs to agressively? (Was: Painfully slow compilation (read: "make buildworld buildkernel") on not-so-weak system)

From: Lev Serebryakov <lev_at_FreeBSD.org>
Date: Sat, 8 Dec 2018 22:09:43 +0300
Hello Lev,

Saturday, December 8, 2018, 7:58:37 PM, you wrote:

>> Can you please narrow the problem down to a specific kernel revision?
>  I'm still not sure it is software or hardware problem.
 Looks like Samsung 850 EVO doesn't like TRIMs sent by ZFS (and I've thought
it is good SSD, consumer-grade, but really good one!).

 I've tuned down TRIMs with

vfs.zfs.per_txg_dirty_frees_percent=10
vfs.zfs.free_max_blocks=1000
vfs.zfs.vdev.trim_max_active=4

And it MOSTLY solved problem: there are some freezing from time to time (and
strange consumption of CPU by low-profile threads) with these settings.

 When I've disabled TRIM completely all freezes are gone, and low-profile
threads consume tenths of percent of CPU, as it is intended.

-- 
Best regards,
 Lev                            mailto:lev_at_FreeBSD.org
Received on Sat Dec 08 2018 - 18:09:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC