Re: effective use of blkdiscard(8)?

2022-06-25 Thread nia
On Sat, Jun 25, 2022 at 05:22:02PM +1000, matthew green wrote: > > However, what about less obvious cases? > > > > A large file could be created, for example, with dd: > > > > # dd if=/dev/zero of=./testfile bs=4m count=1 > > > > Then discarded: > > > > # blkdiscard -v ./testfile > > > > Would

re: effective use of blkdiscard(8)?

2022-06-25 Thread matthew green
nia writes: > blkdiscard(8) seems like a command in -current that's useful for regular > maintenance of SSDs. > > I would assume that a regular run of: > > blkdiscard -v /dev/rwd0d > > would be useful to TRIM an entire SSD, obviously destructively, so would > be useful when reinstalling NetBSD.