16 ms·
To give more info on this: http://wiki.illumos.org/display/illumos/Persistent+L2ARC http://wiki.illumos.org/display/illumos/Persistent+L2ARC Basically, L2ARC
by zdw 13y ago
To give more info on this: http://wiki.illumos.org/display/illumos/Persistent+L2ARC http://wiki.illumos.org/display/illumos/Persistent+L2ARC
Basically, L2ARC is "Level 2 Advanced Replacement Cache" for ZFS, where level 1 is in RAM, and level 2 is on an SSD (usually a cheap/large MLC SSD, as opposed to an expensive/small SLC SSD for ZIL). Basically, it's using a SSD to act as a huge cache for reads, so they don't have to be serviced by a slower spinning rust array.
Prior to this change, after every system reboot, the L2ARC would be cleared and not used/filled until reads from disk happened. On a system that is rebooted frequently (or even infrequently), this can result in slower performance until the cache has been primed.
My understanding is that that with this change reads can happen from the L2ARC devices after a reboot (the "persistence"), which removes the ramp up of usefulness of the L2ARC.
- codys 13y agoThis (L2ARC being considered "valid" even after a reboot) sounds quite a bit like ZFS is growing features that already exist in Linux's bcache (and maybe dm-cache? I'm not sure how it treats data).
- fiatmoney 13y agoAll the parts (tiered caching, compression, checksums, redundancy, deduplication, journaling, network availability, FS migration...) likely exist separately; having them in a single filesystem (especially that doesn't require kernel patches, just a module) is quite pleasant.
- codys 13y agoAnd some of those things certainly benefit from being integrated into the FS. I wonder if any knowledge at the filesystem level (as opposed to the block level, where bcache and dm-cache operate) could help L2ARC make better caching choices.
- newman314 13y agoL2ARC has been around quite a while so it's much more likely that it's the other way around.
- codys 13y agoI was speaking about the preserved-across-reset portion (which this submission is related to) only.
- laumars 13y agoThat maybe true, but not everybody runs ZFS on Linux and some of these features makes better sense to group in the filesystem driver anyway. Plus it's slightly hypocritical to comment about how ZFS is growing features that already exist in Linux when Btrfs is the embodiment of reinventing features.