Running FreeBSD on M.2 SSD

Pete Wright pete at nomadlogic.org
Fri Feb 28 06:04:14 UTC 2020



On 2020-02-27 20:44, Mario Olofo wrote:
> Thanks for the update.
>
> May you share what quirks was detected for your card and firmware to 
> see if it matches mine?
> The only way I was able to run FreeBSD 12-STABLE on the SSD was using 
> the suggested sysctl vfs.zfs.trim.enabled=0
> Maybe the problem really is a combination of factors, for the person 
> that filed a bug on bugzilla the fix was setting the quirks 4k and 
> broken_trim, but for me the real block size is 512bytes and only 
> setting the flag broken_trim didn't help...
>
This is a default install off of the latest 12.1-STABLE snapshot, no 
special loader or sysctl knobs used.  dmesg doesn't show anything 
interesting:

$ dmesg|grep ada
ses0: pass0,ada0 in 'Slot 00', SATA Slot: scbus0 target 0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <WDC WDS480G2G0B-00EPW0 UK450000> ACS-2 ATA SATA 3.x device
ada0: Serial Number 185243800880
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada0: Command Queueing enabled
ada0: 457872MB (937721856 512 byte sectors)
GEOM_ELI: Device ada0p4.eli created.

here's the output of sysctl:
$ sysctl kern.cam.ada
kern.cam.ada.0.sort_io_queue: 0
kern.cam.ada.0.max_seq_zones: 0
kern.cam.ada.0.optimal_nonseq_zones: 0
kern.cam.ada.0.optimal_seq_zones: 0
kern.cam.ada.0.zone_support: None
kern.cam.ada.0.zone_mode: Not Zoned
kern.cam.ada.0.rotating: 0
kern.cam.ada.0.unmapped_io: 1
kern.cam.ada.0.write_cache: -1
kern.cam.ada.0.read_ahead: -1
kern.cam.ada.0.delete_method: DSM_TRIM
kern.cam.ada.write_cache: 1
kern.cam.ada.read_ahead: 1
kern.cam.ada.spindown_suspend: 1
kern.cam.ada.spindown_shutdown: 1
kern.cam.ada.send_ordered: 1
kern.cam.ada.default_timeout: 30
kern.cam.ada.retry_count: 4

cheers,
-pete

-- 
Pete Wright
pete at nomadlogic.org
@nomadlogicLA



More information about the freebsd-stable mailing list