Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Yes. You can partition one NVMe drive and assign one aligned partition as a ZFS log vdev (SLOG) and another as an L2ARC cache vdev. But they still share the same controller, queue, thermal limits and failure domain, so this is a space-saving compromise—not the same as using independent devices.

What SLOG and L2ARC do

SLOG serves synchronous writes

A SLOG is a separate device for the ZFS Intent Log (ZIL). The ZIL records synchronous transactions that must be on stable storage before operations such as fsync() or writes made with O_SYNC return. Moving that log to a low-latency device can help workloads that issue synchronous writes, such as some databases, NFS servers and virtual-machine hosts.

A SLOG is not a general write cache: ordinary asynchronous writes do not use the ZIL. Copying files or other asynchronous write traffic therefore should not be expected to get faster just because a SLOG was added. OpenZFS documentation makes this distinction explicitly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

L2ARC serves reads

L2ARC is an optional read cache between RAM-based ARC and the storage pool. It may help when the frequently read working set exceeds available RAM and reads are random and mostly static. It does not accelerate writes. L2ARC also uses ARC memory to track cached blocks, so adding it can hurt a system that is already short on RAM. Check whether cache misses are a real problem, and consider adding memory first.

#1 Best Overall
Sale
Samsung SSD 990 PRO 2TB, PCIe 4.0 M.2 2280, Up to 7,450 MB/s
  • MEET THE NEXT GEN: Consider this a cheat code; Our Samsung 990 PRO Gen4 SSD helps you reach near max performance with lightning-fast speeds; Whether you’re a hardcore gamer or a tech guru, you’ll get power efficiency built for the final boss
  • REACH THE NEXT LEVEL: Gen4 steps up with faster transfer speeds and high-performance bandwidth; With a more than 55% improvement in random performance compared to 980 PRO, it’s here for heavy computing and faster loading
  • THE FASTEST SSD FROM THE WORLD'S FLASH MEMORY BRAND: The speed you need for any occasion; With read and write speeds up to 7450/6900 MB/s you’ll reach near max performance of PCIe 4.0 powering through for any use
  • PLAY WITHOUT LIMITS: Give yourself some space with storage capacities from 1TB to 4TB; Sync all your saves and reign supreme in gaming, video editing, data analysis and more
  • IT’S A POWER MOVE: Save the power for your performance; Get power efficiency all while experiencing up to 50% improved performance per watt over the 980 PRO; It makes every move more effective with less consumption

Is it valid to use partitions from the same NVMe?

Yes, provided each partition is properly aligned. OpenZFS workload guidance prefers whole disks where possible, but documents partition use when needed, including a small aligned partition used as a log device. ZFS accepts block-device paths for both log and cache vdevs, so separate partitions can be assigned those roles.

That configuration does not isolate the workloads. L2ARC writes used to populate the cache can compete with latency-sensitive SLOG I/O for the same NVMe resources. A device failure also takes out both partitions at once. A partition boundary separates the ZFS roles; it does not create separate hardware or independent fault tolerance.

Rank #2
Sale
Kingston NV3 1TB M.2 2280 NVMe SSD | PCIe 4.0 Gen 4x4 | Up to 6000 MB/s | SNV3S/1000G
  • Ideal for high speed, low power storage
  • Gen 4x4 NVMe PCle performance
  • Up to 6,000MB/s read, 4,000MB/s write
  • Includes Acronis cloning software
  • 5-year limited warranty

How to add the partitions

The following Linux example shows the ZFS commands, not a complete partitioning recipe. Adapt device names, partition sizes and alignment to the host; do not run it blindly. Use a power-loss-protected enterprise NVMe for the SLOG partition.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Identify the NVMe and plan aligned partitions. Reserve a small partition for the SLOG and use the remaining suitable space for L2ARC. Check the platform’s device naming and use stable paths such as /dev/disk/by-id where available.
  2. Add the SLOG partition to the pool: zpool add tank log /dev/nvme0n1p1
  3. Add the L2ARC partition: zpool add tank cache /dev/nvme0n1p2
  4. Check pool status after each change. Confirm that the intended partition was added in the intended role before proceeding.

Replace tank and the example device paths with the actual pool and stable paths for your system. OpenZFS documents the zpool add pool log and zpool add pool cache forms. Device naming, partitioning tools and the details of removing auxiliary devices vary by platform and OpenZFS version; plan any later removal against the version you run.

Rank #3
Sandisk Optimus 5100 500GB NVMe SSD, PCIe 4.0, M.2 2280
  • SPEED UP PROJECTS. Launch creator applications fast with uncompromising PCIe 4.0 read speeds up to 7,100MB/s,[2] (1TB and 2TB[1] models) and write speeds up to 6,700MB/s[2] (1TB[1]-4TB[1] models).
  • CREATE AND STORE MORE. Make more room for your 4K videos and high-resolution images with capacities from 500GB[1] up to 4TB[1] on M.2 2280 built with our trusted 8th generation SANDISK BiCS QLC 3D CBA NAND.
  • IT GOES WHERE YOU GO. With an all-new power efficient design, your drive delivers high performance with low power, giving you more time to be productive while on the go.
  • UNCOMPROMISED RELIABILITY. With up to 1,200 TBW[3] (4TB[1] model) endurance rating, your drive is designed for creators.
  • KEEP YOUR DRIVE UPDATED. Monitor your SSD’s performance and check for updates with the downloadable SANDISK Dashboard application.[5]

How large should each partition be?

Size the SLOG for synchronous-write bursts

OpenZFS workload guidance says that about 4 GB is enough for many SLOG devices, but the appropriate capacity depends on the workload. It also says SLOG capacity need not exceed the maximum ARC size. Treat those as engineering guidance, not a guarantee or a universal sizing rule: base the partition on measured synchronous-write bursts for the system.

Leave spare NAND unallocated where practical. OpenZFS recommends overprovisioning because spare NAND can improve IOPS; do not consume the area you are relying on as overprovisioning with another workload. NVMe namespaces can also be used for overprovisioning, but namespace management depends on the platform and vendor, making partitions the more portable approach.

Rank #4
Sale
Samsung SSD 990 PRO 1TB, PCIe 4.0 M.2 2280, Up to 7,450 MB/s
  • HUGE SPEED BOOST: Get random read/write speeds that are 40%/55% faster than 980 PRO; Experience up to 1400K/1550K IOPS, while sequential read/write speeds up to 7,450/6,900 MB/s reach near the max performance of PCIe 4.0*
  • BREAKTHROUGH POWER EFFICIENCY: Use less power and get more performance; Enjoy up to 50% improved performance per watt over 980 PRO, plus optimal power efficiency with max PCIe 4.0 performance**
  • SMART THERMAL CONTROL: Samsung's own nickel-coated controller delivers effective thermal control; With its slim size, 990 PRO is a perfect fit for desktops and laptops that meet the PCI-SIG D8 standard***
  • THE CHAMPION MAKER: Up to 65% improvement in random performance enables faster loads for an ultimate gaming experience on PS5 and DirectStorage PC games****
  • SAMSUNG MAGICIAN SOFTWARE: Get the most out of your SSD with Samsung Magician's advanced yet intuitive optimization tools; Monitor drive health, protect valuable data, and receive important updates for your 990 PRO

Give L2ARC only the space it can usefully cache

There is no useful universal L2ARC size in the available OpenZFS guidance for every workload. Its value depends on whether the working set exceeds ARC and whether the workload benefits from caching those reads. More cache capacity is not automatically better: L2ARC uses RAM for metadata, and cache-fill traffic can contend with SLOG I/O on a shared drive.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the device and layout for the workload

Layout When it fits Main trade-off
One NVMe split into SLOG and L2ARC partitions Space or device-slot constraints make a shared drive attractive, and the system has both synchronous-write and read-cache needs. Both roles share performance resources and one failure domain; L2ARC activity can interfere with SLOG latency.
Separate devices for SLOG and L2ARC Lower contention and independent replacement are more important than conserving a device slot. Requires separate hardware; each device still needs to suit its assigned workload.
Mirrored SLOG on independent devices The pool is business-critical and the log needs redundancy. Requires independent devices rather than two partitions on the same NVMe.
No L2ARC until a read-cache need is established The system has not shown that its workload benefits from caching reads beyond ARC. Does not add a second-level read cache; increasing RAM may be a better use of resources.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why SLOG hardware needs more care

Prioritize low write latency, power-loss protection (PLP) and a published endurance rating for the SLOG portion. OpenZFS warns that a consumer SSD without PLP may report data as stable even though a power cut can lose it. Raw consumer-SSD benchmark numbers alone do not establish that a drive is suitable for synchronous logging.

Best Value
WD_Black SN7100 1TB NVMe SSD - Gen4 PCIe, M.2 2280, Up to 7,250 MB/s Read Speed, Up to 6,900 MB/s Write Speed, Next Gen TLC 3D NAND, for Laptops, Handheld Gaming Devices - WDS100T4X0E
  • This product has been replaced by our latest generation. Please search for the SANDISK Optimus GX 7100 NVMe SSD
  • HIGH-OCTANE GAMING. Experience speeds up to 7,250MB/s read and 6,900MB/s write (1-2TB models), with up to 35% faster performance than previous generation.
  • PURPOSE-BUILT. Designed for serious on-the-go gamers, with a PCIe Gen4 interface and SANDISK’s next generation TLC 3D NAND.
  • MORE TIME TO CLEAR THAT CHECKPOINT. Built with laptops and handheld gaming devices in mind, with up to 100% more power efficiency over the previous generation.
  • DO MORE WITH DASHBOARD. Ensure your drive is optimized for prime performance with the downloadable WD_BLACK Dashboard (Windows only).

For a business-critical pool, use a SLOG mirror across independent devices rather than placing the only log on one shared NVMe. L2ARC is disposable cache: if a cache read fails, ZFS can reread the data from the main pool, so losing L2ARC affects performance rather than pool data integrity. That does not make the shared device a good failure domain for a critical SLOG.

When partition sharing is a sensible compromise

  • The host has a genuine synchronous-write latency need and a separate, demonstrated read-cache need.
  • The NVMe has PLP and adequate endurance for SLOG traffic.
  • The partitions are correctly aligned, and there is enough ARC headroom for L2ARC metadata.
  • You accept that SLOG latency and L2ARC cache-fill activity share device resources, and that one NVMe failure affects both roles.
  • You have a monitoring and replacement plan appropriate to the deployed OpenZFS version.

If the workload is ordinary asynchronous file copying, the SLOG will not help that traffic. If there is no confirmed read-cache miss problem, adding L2ARC may consume memory without improving performance. In either case, partitioning an NVMe for both roles solves no demonstrated bottleneck.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.