Re: Running thin_trim before activating a thin pool
Demi Marie Obenour <[email protected]>
| Newsgroups | gmane.linux.lvm.general |
|---|---|
| Message-ID | <YfbSkfdz2cAV4Iaz@itl-email> |
On Sun, Jan 30, 2022 at 06:56:43PM +0100, Zdenek Kabelac wrote: > Dne 30. 01. 22 v 18:30 Demi Marie Obenour napsal(a): > > On Sun, Jan 30, 2022 at 12:18:32PM +0100, Zdenek Kabelac wrote: > > > Discard of thins itself is AFAIC pretty fast - unless you have massively > > > sized thin devices with many GiB of metadata - obviously you cannot process > > > this amount of metadata in nanoseconds (and there are prepared kernel > > > patches to make it even faster) > > > > Would you be willing and able to share those patches? > > Then are always landing in upstream kernel once they are all validated & > tested (recent kernel already has many speed enhancements). Thanks! Which mailing list should I be watching? > > > What is the problem is the speed of discard of physical devices. > > > You could actually try to feel difference with: > > > lvchange --discards passdown|nopassdown thinpool > > > > In Qubes OS I believe we do need the discards to be passed down > > eventually, but I doubt it needs to be synchronous. Being able to run > > the equivalent of `fstrim -av` periodically would be amazing. I’m > > CC’ing Marek Marczykowski-Górecki (Qubes OS project lead) in case he > > has something to say. > > You could easily run in parallel individual blkdiscards for your thin LVs.... > For most modern drives thought it's somewhat waste of time... > > Those trimming tools should be used when they are solving some real > problems, running them just for fun is just energy & performance waste.... My understanding (which could be wrong) is that periodic trim is necessary for SSDs. > > > Also it's very important to keep metadata on fast storage device (SSD/NVMe)! > > > Keeping metadata on same hdd spindle as data is always going to feel slow > > > (in fact it's quite pointless to talk about performance and use hdd...) > > > > That explains why I had such a horrible experience with my initial > > (split between NVMe and HDD) install. I would not be surprised if some > > or all of the metadata volume wound up on the spinning disk. > > With lvm2 user can always 'pvmove' any LV to any desired PV. > There is not yet any 'smart' logic to do it automatically. Good point. I was probably unware of that at the time. -- Sincerely, Demi Marie Obenour (she/her/hers) Invisible Things Lab _______________________________________________ linux-lvm mailing list [email protected] https://listman.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmH20pIACgkQsoi1X/+c IsHG0g//R4o03kAP14FRuugzQfU208e0hMdsbNmTazw4ifqrfodXid8wVfhdqfwj AA+qJhy2CafEw6Bnz4qaprFwDVgPWWPiOybU9YcST52dtUOYHS+Qtc1qbp58Mo1p B20wS9nkrbKNMQ/JIu3VtGYtaZtbcf1jKEbHbAs+KzdzsRISHJdj+8a6RukZgkHJ AMfe0Gn64vJg7cM/TUSx1hhB13MRBVX51i/54jh4iGlJcsH3qQxJY3LEUZYgB/xF PJiJponSSSUmV/32v+ClqhBpu4PnKK9VRONbbHCgINKtsILAvryngt34u50zfS3v vuY1aM3oLNSqOw97/isu03aWF+2OfHnxZHhg8hL1HhrU06eToaQLaC4AStO1399r Xeb6rpDglzZRPomq+9mDeZx7OHRVXFNOWBCwUXd4Qu2tt2W42qevljijM+OTfTP9 tEypGHm75hZtvixGFjEpow/iKOs20aVffu1Vl+ICOI9rBiqBxCgZ/0Cavxq1hWJf pabiEhhEeZe2pZT7Sdr1pof+7FKlyEnc2eLeGvv3dSZGjz247hd3RjCN0ID9M0Un b5wifmgY6TZkjFAHpcGiALyZ2KYlO31KoauP+gfeJeSfj2yFwcEAdc4kEI0T6Mg6 41Cn1WgvJ8F59EAo6hOgqTYD20pt+KiPOlgqY/c0J9D8XrCMRWg= =PxJm -----END PGP SIGNATURE-----