• 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: Milk-V Duo Tutorial Raspberry Pi 10.1 inch QLED Quantum Dot Display 1280x720 Capacitive Touchscreen DDC/CI For Computer PC/Jetson/Game Raspberry Pi USB Global Shutter Camera 1MP OV9281 120fps Black/White 120fps also For Jeston RDK Raspberry Pi 5 8mp Camera Raspberry Pi 4.26 inch e-Paper link (G) RYBW 800x480 For Arduino / Jetson / STM32 /ESP32 Raspberry Pi 6.25 inch DSI Display MIPI LCD Capacitive TouchScreen 720x1560 Milk-V Raspberry Pi 5 Audio Jack Electronic EYE 0.71inch Round LCD Display Screen For Arduino Raspberry Pi ESP32 Pico STM32 Raspberry Pi Thermal imaging camera Raspberry Pi 10.1 inch DSI LCD TouchScreen Display 800x1280 Also For RK3576/RK3506/ESP32-P4 Raspberry Pi 5 Official Red-White Case Milk-V Duo RJ45 Install Espressif IDF Plugin Tutorial User Guide Raspberry Pi 15.6 inch FHD Monitor (C) LCD 1080P Capacitive TouchScreen Display Type-C/HDMI For Computer PC X1009 Raspberry Pi 5 PCIe To 5-Port SATA SATA3.0 (NOT BOOT From SATA) SpotPear USB Camera 2MP GC2093 ‌WDR Backlight Compensation‌ Onboard microphone 7.5 inch Passive NFC e-Paper BW Display 7.5inch E-ink Screen No Need Battery Wireless Powered Data Transfer ESP32 S3 Development Board 4 inch LCD Capacitive Touch Screen 4inch Display 480×480 N16R8