Colors of Ray+Hue'

1. ramdisk 크기 키우기 24GB

go /etc/default/grub 

GRUB_CMDLINE_LINUX_DEFAULT="memmap=224G\\\$42G ramdisk_size=25165824"    

2. vmalloc은 실제로 메모리를 할당 하지 않기 때문에 고정 크기를 만들기 위해선 모든 page 에 대해 page fault 를 먼저 발생 시켜야 함.

dd if=/dev/zero of=/dev/ram1 bs=4K count=6291456

3. swap 만들기

mkswap /dev/ram1

4. swap 실행

swapon /dev/ram1

'Linux Kernel' 카테고리의 다른 글

What is the return address of kmalloc() ? Physical or Virtual?  (0) 2016.07.29
Memory Mapping  (0) 2016.07.28
sysinfo 관련  (0) 2016.02.26
ubuntu 12.04 kernel compile  (0) 2016.02.25
강제 umount 방법  (0) 2015.10.22