* [linux-lvm] Is TRIM and DISCARD needed for normal HDD ?
@ 2020-11-25 15:37 Sreyan Chakravarty
2020-11-26 8:47 ` Marek Podmaka
2020-11-26 11:01 ` Zdenek Kabelac
0 siblings, 2 replies; 3+ messages in thread
From: Sreyan Chakravarty @ 2020-11-25 15:37 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
Hi,
I am using thin LVM pools, but I have a normal hard disk and not a SSD.
Is there any reason to enable TRIM and/or DISCARD for my HDD ?
I have heard it is only useful for a SSD. Will it offer any advantages in
my case ?
--
Regards,
Sreyan Chakravarty
[-- Attachment #2: Type: text/html, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Is TRIM and DISCARD needed for normal HDD ?
2020-11-25 15:37 [linux-lvm] Is TRIM and DISCARD needed for normal HDD ? Sreyan Chakravarty
@ 2020-11-26 8:47 ` Marek Podmaka
2020-11-26 11:01 ` Zdenek Kabelac
1 sibling, 0 replies; 3+ messages in thread
From: Marek Podmaka @ 2020-11-26 8:47 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/html, Size: 1358 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Is TRIM and DISCARD needed for normal HDD ?
2020-11-25 15:37 [linux-lvm] Is TRIM and DISCARD needed for normal HDD ? Sreyan Chakravarty
2020-11-26 8:47 ` Marek Podmaka
@ 2020-11-26 11:01 ` Zdenek Kabelac
1 sibling, 0 replies; 3+ messages in thread
From: Zdenek Kabelac @ 2020-11-26 11:01 UTC (permalink / raw)
To: LVM general discussion and development, Sreyan Chakravarty
Dne 25. 11. 20 v 16:37 Sreyan Chakravarty napsal(a):
> Hi,
>
> I am using thin LVM pools, but I have a normal hard disk and not a SSD.
>
> Is there any reason to enable TRIM and/or DISCARD for my HDD ?
>
> I have heard it is only useful for a SSD. Will it offer any advantages in my
> case ?
>
Hi
Thin-pool is created by default with 'passdown' TRIM/discard support.
This means - discard to thin LV (i.e. fstrim of ext4 on thinLV) gets
propagated to thin-pool, where it may deallocate full chunk when possible
(i.e. if you use 256K chunk, WHOLE chunk must be free to have an effective
discard).
With "passdown" mode - such released chunks are also then passed through to
origin _tdata device - where again some 'alignment rules' of discardable
regions applie (i.e. lot of SSD need 512KiB blocks).
If you have HDD - then clearly such discard stops at thin-pool level
(automatically) and just releases chunks in thin-pool for future reuse.
"ignore" discard mode is usefull in the case you want to keep already
'allocated' chunks for thin LV always there - and also in some case it may
make timing more predictible - as discard requires processing - so it ma
slowdown few things - but at the expense of more filled thin-pool....
Hopefully this makes it clear.
Regards
Zdenek
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-26 11:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 15:37 [linux-lvm] Is TRIM and DISCARD needed for normal HDD ? Sreyan Chakravarty
2020-11-26 8:47 ` Marek Podmaka
2020-11-26 11:01 ` Zdenek Kabelac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).