Portál AbcLinuxu, 6. května 2025 06:18
Dalo by se udelat to, ze by se k rotujici rzi predradil nvme, ktery by se choval jako write cache?Napríklad ZFS to má implementované natívne, stačí pridať cache disk do poolu. Ale to by asi chcelo odsypať údaje niekam inam, a preformátovať diskové pole na ZFS. Poprípade je možné použiť dm-cache/lvmcache, závisí ako si to diskové pole vytváral.
very often people come here and suggest using a SLOG to speed up their zpools, because they think SLOG is a write cache. It is not.https://support.osnexus.com/hc/en-us/articles/213487606-Can-the-ZFS-ZIL-SLOG-be-used-to-increase-performance
NOTE: The ZIL SLOG device is not a write cache that will buffer all I/O's written to the Quantastor Storage Pool....
Handled by means of "transaction groups" – writes are collated over a short period (typically 5 – 30 seconds) up to a given limit, with each group being written to disk ideally while the next group is being collated.Pred tým som písal o Level 2.
[ 2.419446] raid6: avx2x4 gen() 39993 MB/s [ 2.487450] raid6: avx2x4 xor() 5190 MB/s [ 2.555446] raid6: avx2x2 gen() 40175 MB/s [ 2.623448] raid6: avx2x2 xor() 34891 MB/s [ 2.691446] raid6: avx2x1 gen() 24095 MB/s [ 2.759445] raid6: avx2x1 xor() 30594 MB/s
pv </dev/zero >/dev/null
. Příkaz dd
bude krapet rychlejší, ale pořád žádné žůžo...
[Mon Oct 31 18:27:54 2022] raid6: avx512x4 gen() 52812 MB/s [Mon Oct 31 18:27:54 2022] raid6: avx512x2 gen() 50534 MB/s [Mon Oct 31 18:27:54 2022] raid6: avx512x1 gen() 49514 MB/s [Mon Oct 31 18:27:54 2022] raid6: avx2x4 gen() 44588 MB/s [Mon Oct 31 18:27:54 2022] raid6: avx2x2 gen() 45382 MB/s [Mon Oct 31 18:27:54 2022] raid6: avx2x1 gen() 29637 MB/s [Mon Oct 31 18:27:54 2022] raid6: using algorithm avx512x4 gen() 52812 MB/s [Mon Oct 31 18:27:54 2022] raid6: .... xor() 10798 MB/s, rmw enabled [Mon Oct 31 18:27:54 2022] raid6: using avx512x2 recovery algorithm [Mon Oct 31 18:27:54 2022] xor: automatically using best checksumming function avx
The two kinds of caching are: • A read and write hot-spot cache, using the dm-cache kernel module. This cache tracks access patterns and adjusts its content deliberately so that commonly used parts the main LV are likely to be found on the fast storage. LVM refers to this using the LV type cache. • A write cache, using the dm-writecache kernel module. This cache can be used with SSD or PMEM devices to speed up all writes to the main LV. Data read from the main LV is not stored in the cache, only newly written data. LVM refers to this using the LV type writecache.
.
Možný scénář Zapsat na origin-device soubor přesahující násobně velikost RAM (eliminovat vliv cache na úrovni RAM) Nechat propsat zápisy na origin-device Vyzkoušet sekvenční rychlost při přístupu k uloženému souboru V mých testech se rychlost zvyšovala s opakovými čtením podobně (jako zde), ale nejsem si jist zda jsem neprovozoval dm-cache v režimu write-thru.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.