• sales

    +86-0755-88291180

Milk-V Duo Tutorial【Enable virtual RAM memory】

Virtual memory is a technology in the operating system that is used to expand the capacity of a computer's physical memory (RAM). It works by storing some data on the disk and loading active data from the disk into memory to meet the memory requirements of processes.


1】Virtual memory has the following advantages:

Expanded memory capacity: 

Virtual memory allows the operating system to expand the available memory capacity when physical memory is insufficient. It moves less frequently used data to a swap file on the disk to free up memory for other processes.

Running more programs: 

Virtual memory makes it possible to run multiple programs simultaneously. Each program is allocated a portion of virtual memory, so even if physical memory cannot accommodate all the data of all programs at the same time, memory usage can be switched by swapping data to the disk.

Larger address space: 

Virtual memory allows each process to access a larger address space beyond the limitations of physical memory. Processes can perceive a contiguous block of memory space, even though their data is actually scattered across physical memory and the disk.

Better memory management: 

Virtual memory can automatically manage memory paging (dividing memory into fixed-sized pages), provide memory protection (preventing processes from accessing memory beyond their boundaries), and implement mechanisms such as memory sharing and memory mapping.


Virtual memory offers significant advantages in terms of memory expansion and multitasking, but it also introduces performance overhead and additional complexity. In modern computer systems, virtual memory is an essential component and is widely used in various operating systems.


2】Enabling virtual memory in milkv-Duo:

Before using, make sure that milkv-Duo is using the system image Duo-V1.0.4 or above.

Enter the following commands in the terminal:

mkswap /dev/mmcblk0p3

swapon /dev/mmcblk0p3

Enter 'free -h' to check if virtual memory is enabled.


TAG: Raspberry Pi 5 PCIe to M.2 NVME SSD And Gigabit Ethernet RJ45 HAT RTL8111H M_KEY For 2230/2242/2260/2280 Raspberry Pi 64MP Camera Jetson Orin Nano/NX Super Developer IO Base Development Board Dual network RJ45 For Jetson Orin Nano/NX Module Raspberry Pi CM5 Official Original IO Board a Base Development Platform Compute Module 5 IO Board MPS2280 POE Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Pi5 2280/2242/2230 ESP32-S3 Development Board 3.16 inch LCD display 3.16inch Screen SD slot 320x820 RGB LED ST7701 Raspberry Pi Touch Display 2 Official Original Capacitive TouchScreen 7 inch LCD TFT 720x1280 NanoKVM-Lite Raspberry Pi 5 PCIe to M.2 Multi Function Adapter Board Supports Dual 4K HDMI Output ESP32 S3 Development Board 1.46 inch Round LCD 1.46inch Display 412x412 QMI8658 Sensor / MIC / SD /MP3 Audio /Battery Port LVGL/HMI For Arduino Jetson Nano Development Board CAM-GC2083 NVIDIA Jetson ESP32 C3 Voice Robot Mini Development Board AI DeepSeek Toy Doll Core 1.28 inch 1.54inch LCD Milk-V Duo Information ESP32-S3 0.85inch LCD UART Zero LCD HAT (A) user guide Raspberry Pi Pico X1008 Raspberry Pi 5 PCIe to 2.5" 3.5" SATA HDD/SSD Dual Double-SATA (NOT BOOT From SATA/SSD