boot-pool Auto TRIM?

Joined
Oct 9, 2021
Messages
4
I am testing TrueNAS SCALE on a VM using a thin provisioned storage.
Virtual disk for the boot pool ended at >40Gb size after a clean install and some messing around, boot-pool stats on the GUI show "Used: 3.86 GiB"
Running zpool trim boot-pool solved the issue.

Is there any reason boot pool settings do not show Auto TRIM checkbox?
Is it planned?
Is is handled any other way?

Also, is there any potential issues doing zpool trim boot-pool manually?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Is it planned?
I don't think so.

Is is handled any other way?
Writes would be slower on a full disk with trimmable space.

Also, is there any potential issues doing zpool trim boot-pool manually?
Maybe, if your boot pool is on an SSD that uses a silicon controller (such as the WD Green 3D NAND devices)... TRIM causes corruption on those devices (so you shouldn't be using them anyway).
 

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
I am testing TrueNAS SCALE on a VM using a thin provisioned storage.
Virtual disk for the boot pool ended at >40Gb size after a clean install and some messing around, boot-pool stats on the GUI show "Used: 3.86 GiB"
Running zpool trim boot-pool solved the issue.

Is there any reason boot pool settings do not show Auto TRIM checkbox?
Is it planned?
Is is handled any other way?

Also, is there any potential issues doing zpool trim boot-pool manually?
Maybe put in a bug report or feature request. Hopefully they will add the auto trim support to the boot pool.

Thanks,
Harry
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Is there any reason boot pool settings do not show Auto TRIM checkbox?

Quite possibly because many off-brand SSD's (and hypervisors, for that matter) are gimpy about things like TRIM, and since TrueNAS is intended to be used on physical machines, it is optimized for that use case. I'd say it's correct for it to be disabled by default. Having a checkbox to enable it would probably not be tragic.
 
Top