Re: CFT: TRIM Consolodation on UFS/FFS filesystems

2018-08-23 Thread Jan Henrik Sylvester
On 8/23/18 5:38 AM, bob prohaska wrote: On Tue, Aug 21, 2018 at 06:47:19PM -0700, Mark Millard wrote: I've used a SSD both directly via SATA and via a USB enclosure, the same partitions/file systems across the uses. Only when it was SATA-style-use did TRIM work. This is likely the key to my q

Re: CFT: TRIM Consolodation on UFS/FFS filesystems

2018-08-22 Thread bob prohaska
On Tue, Aug 21, 2018 at 06:47:19PM -0700, Mark Millard wrote: > > I've used a SSD both directly via SATA and via a USB enclosure, > the same partitions/file systems across the uses. Only when it > was SATA-style-use did TRIM work. > This is likely the key to my question. If USB blocks the TRIM se

Re: CFT: TRIM Consolodation on UFS/FFS filesystems

2018-08-21 Thread Mark Millard
bob prohaska fbsd at www.zefox.net wrote on Wed Aug 22 00:48:33 UTC 2018 : > On Mon, Aug 20, 2018 at 12:40:56PM -0700, Kirk McKusick wrote: > > . . . > > > > To enable TRIM consolodation either use `sysctl vfs.ffs.dotrimcons=1' > > or just set the `dotrimcons' variable in sys/ufs/ffs/ffs_alloc.c

Re: CFT: TRIM Consolodation on UFS/FFS filesystems

2018-08-21 Thread Greg Rivers
On Tuesday, August 21, 2018 17:48:43 Bob Prohaska wrote: > Will the new feature be active on a Raspberry Pi 3 using flash > on microSD and USB for file systems and swap? > It will work on any UFS file system, as long as the underlying medium supports TRIM. It will not work for swap because swa

Re: CFT: TRIM Consolodation on UFS/FFS filesystems

2018-08-21 Thread bob prohaska
On Mon, Aug 20, 2018 at 12:40:56PM -0700, Kirk McKusick wrote: > I have recently added TRIM consolodation support for the UFS/FFS > filesystem. This feature consolodates large numbers of TRIM commands > into a much smaller number of commands covering larger blocks of > disk space. Best described by

Re: CFT: TRIM Consolodation on UFS/FFS filesystems

2018-08-20 Thread Kirk McKusick
From: Kirk McKusick To: FreeBSD Current , FreeBSD Filesystems Subject: CFT: TRIM Consolodation on UFS/FFS filesystems Date: Mon, 20 Aug 2018 12:40:56 -0700 Oops, forgot that attachments get stripped. Below are the diffs for gathering statistics. Sorry to those of you on Gmail for whom

CFT: TRIM Consolodation on UFS/FFS filesystems

2018-08-20 Thread Kirk McKusick
I have recently added TRIM consolodation support for the UFS/FFS filesystem. This feature consolodates large numbers of TRIM commands into a much smaller number of commands covering larger blocks of disk space. Best described by the commit message: Author: mckusick Date: Sun Aug 19 16:56:42 20