Adding Swap Spaces to a TrueNAS System with Gigabyte H55M-D2H Motherboard

Abstract: Resolve TrueNAS memory issues on Gigabyte H55M-D2H by configuring L2ARC instead of swap to prevent performance degradation.

Created: 2026-09-14 by
You cannot add traditional swap files or partitions to TrueNAS Core or Scale because the operating system uses ZFS, which manages memory and storage differently than standard Linux distributions. Instead of adding swap space, you should optimize your system's performance by ensuring your hardware meets the minimum requirements for your intended workload, particularly regarding RAM capacity and CPU capabilities. The Gigabyte H55M-D2H motherboard is quite old and may lack the necessary support for modern TrueNAS versions, so verifying compatibility is the first critical step.

Understanding Why Swap Is Not Used in TrueNAS

TrueNAS is built on top of FreeBSD (Core) or Debian (Scale), both of which utilize the Zettabyte File System (ZFS). ZFS has its own sophisticated memory management mechanisms that make traditional swap spaces largely unnecessary and potentially harmful to performance. In a standard Linux environment, when physical RAM is exhausted, the system moves inactive pages to a swap partition on the disk. However, ZFS caches frequently accessed data in the Adaptive Replacement Cache (ARC) within available RAM. If you enable swap, the kernel might move ARC data to the slower disk storage, effectively defeating the purpose of having fast RAM caching. This leads to significant I/O bottlenecks and sluggish system responsiveness, especially during heavy read/write operations. Furthermore, TrueNAS is designed to be a dedicated storage appliance rather than a general-purpose desktop OS. Its stability relies on predictable memory usage patterns. Introducing swap can mask underlying memory leaks or insufficient RAM issues, leading to unpredictable behavior where the system appears stable until it suddenly runs out of resources entirely. Therefore, the official recommendation from iXsystems, the company behind TrueNAS, is to increase physical RAM rather than rely on virtual memory swapping.

The Role of ARC and L2ARC

Instead of swap, TrueNAS offers features like L2ARC (Level 2 Adaptive Replacement Cache). L2ARC allows you to use an SSD as a read-only cache for your ZFS pool. This acts similarly to a swap in that it extends the effective capacity of your memory hierarchy, but it does so specifically for read operations. It keeps hot data on the fast SSD while keeping the bulk of cold data on your slower HDDs. This is a much more efficient use of storage resources than generic swapping. To configure this, you would typically create a separate ZFS dataset or zvol on your SSD and set it as the L2ARC device through the TrueNAS web interface under Storage > Pools > [Your Pool] > Edit > Additional Settings.

Evaluating Your Hardware Compatibility

The Gigabyte H55M-D2H motherboard uses the Intel H55 chipset, which supports DDR3 memory and older generation Intel Core processors (Nehalem/Westmere architecture). While this hardware was capable in its time, it faces several challenges with modern TrueNAS installations. First, TrueNAS Scale requires a 64-bit processor with specific instruction sets that are generally present in these CPUs, but driver support for older chipsets may be limited. Second, the maximum supported RAM for this motherboard is typically 16GB across four DIMM slots. For a serious TrueNAS deployment, 16GB is often considered the bare minimum, and 32GB or more is recommended for smooth operation, especially if you plan to run virtual machines or containers via TrueNAS SCALE. If you are attempting to install TrueNAS Core, note that it is in maintenance mode and no longer receives major feature updates. TrueNAS Scale is the current active development platform. Before proceeding, check if your BIOS is updated to the latest version available from Gigabyte’s legacy support page. Older BIOS versions may have bugs related to memory timing or USB controller initialization that can cause boot failures or instability in TrueNAS.

Checking Minimum Requirements

Ensure that your system meets the following baseline requirements:
  • CPU: A 64-bit x86-64 processor with VT-x/AMD-V virtualization extensions enabled in the BIOS.
  • RAM: At least 8GB for basic file sharing, but 16GB+ is strongly advised for ZFS health.
  • Storage: A dedicated SSD for the boot drive (to minimize wear on your data drives) and additional drives for your ZFS pool.
  • Network: A Gigabit Ethernet port is standard; consider 10GbE if you plan to serve large files over the network.

Optimizing Performance Without Swap

Since you cannot add swap, focus on optimizing the existing resources. Start by monitoring your system's memory usage through the TrueNAS dashboard. Look at the ARC size and hit ratio. If your ARC hit ratio is low, it indicates that your RAM is too small for your working set, or your workload is too random. Increasing RAM will directly improve this metric. Additionally, ensure that your ZFS pool is configured correctly. Using appropriate record sizes and enabling compression (like LZ4) can reduce the amount of data that needs to be stored and transferred, indirectly easing memory pressure. If you are experiencing high load averages, check for runaway processes or inefficient SMB/NFS configurations. Sometimes, clients holding open files or performing slow reads can tie up resources. Reviewing your SMB settings, such as disabling large MTU if not needed, or adjusting the number of worker threads, can help stabilize performance. Also, consider using Troubleshooting TrueNAS: Won't Boot Properly, Web Admin Unavailable if you encounter any startup issues that might be related to hardware incompatibilities.

Using L3ARC for Write Caching

For write-heavy workloads, you can also implement L3ARC, which provides write caching using an SSD. This buffers write operations before they are committed to the slower hard drives, improving perceived performance. Like L2ARC, this is configured through the pool settings in the web UI. Ensure you use a reliable SSD with good endurance ratings, as write caching increases write traffic significantly.

Alternative Solutions for Memory Constraints

If upgrading RAM is not financially feasible, consider reducing the scope of your TrueNAS deployment. Run fewer services simultaneously. Disable unused protocols like FTP or NFS if you only need SMB/CIFS. You can also limit the number of concurrent connections in the SMB service settings to prevent resource exhaustion. Another option is to offload some processing tasks to other devices. For example, use a separate server for backups or media transcoding instead of relying on the TrueNAS box for everything. This distributed approach reduces the memory and CPU burden on the NAS itself. Additionally, ensure that your TrueNAS installation is clean and minimal. Avoid installing unnecessary plugins or jails unless absolutely required. Each plugin consumes RAM and CPU cycles. Regularly update your TrueNAS version to benefit from performance improvements and bug fixes in memory management. If you are facing persistent issues, refer to guides on Rsync backup failing on xattr to ensure your backup processes are not causing unexpected memory spikes due to attribute handling errors.

Frequently Asked Questions

Can I disable ZFS ARC to force more RAM usage?

No, you should not disable the ARC. The ARC is essential for ZFS performance, acting as a read cache in RAM. Disabling it will severely degrade read speeds and increase load on your disks. Instead, adjust the max_arc_size parameter if you need to reserve RAM for other applications, but this is rarely recommended for a dedicated NAS.

Is L2ARC faster than swap?

L2ARC is not a direct replacement for swap, but it serves a similar purpose of extending memory hierarchy. L2ARC is read-only and optimized for caching hot data, whereas swap moves inactive pages to disk. L2ARC improves read performance significantly, while swap can introduce latency and unpredictability. For TrueNAS, L2ARC is the preferred method for leveraging SSD speed.

What happens if my TrueNAS system runs out of RAM?

If TrueNAS runs out of RAM, the system may become unresponsive, crash, or reboot unexpectedly. ZFS will attempt to evict cached data, but if there is no swap, the kernel may kill processes or panic. This is why having sufficient physical RAM is critical. Monitoring tools in the TrueNAS dashboard can alert you to high memory usage before a crash occurs.

Does TrueNAS Scale support swap?

TrueNAS Scale, being based on Debian, technically supports swap, but it is not recommended for ZFS pools. The ZFS developers advise against using swap because it interferes with the ARC. While you can create a swap file on a non-ZFS partition, it is better to upgrade your RAM or use L2ARC/L3ARC for performance optimization.

How do I check if my Gigabyte H55M-D2H is compatible?

Check the TrueNAS Supported Hardware list on the iXsystems website. The H55 chipset is old, and driver support may be limited in newer versions. Ensure your BIOS is updated and that your CPU supports 64-bit virtualization. Test with a free USB installer to see if the system boots correctly before committing to a full installation.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More