Veranstaltungen/2009-12-04 ZFS-Workshop/Cache: L2ARC

Aus UUGRN

Aus der man-Page:

  Cache Devices
     Devices can be added to a storage pool as  "cache  devices."
     These devices provide an additional layer of caching between
     main memory and disk. For read-heavy  workloads,  where  the
     working  set  size is much larger than what can be cached in
     main memory, using cache devices allow  much  more  of  this
     working set to be served from low latency media. Using cache
     devices provides the greatest  performance  improvement  for
     random read-workloads of mostly static content.

     To create a pool with cache devices, specify a "cache"  vdev
     with any number of devices. For example:

       # zpool create pool c0d0 c1d0 cache c2d0 c3d0

     Cache devices cannot be mirrored or part of a  raidz  confi-
     guration.  If a read error is encountered on a cache device,
     that read I/O is reissued to the original storage pool  dev-
     ice,  which  might be part of a mirrored or raidz configura-
     tion.

     The content of the cache devices is considered volatile,  as
     is the case with other system caches.




Quellen: