리눅스 시스템 스왑 메모리 확인
# Operation System/Linux2022. 12. 8. 08:03리눅스 시스템 스왑 메모리 확인

스왑메모리 체크 방법 3가지 [darksharavim]free -h total used free shared buff/cache available Mem: 15G 7.4G 4.3G 219M 3.8G 7.5G Swap: 5.0G 1.0G 4.0G 1. /proc/[pid]/smaps [darksharavim]cat /proc/29771/smaps | more 00400000-01028000 r-xp 00000000 fd:00 105860612 /apps/php7/sbin/php-fpm (deleted) Size: 12448 kB Rss: 0 kB Pss: 0 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Re..

[리눅스]SWAP 메모리 생성
# Operation System/Linux2021. 4. 5. 17:50[리눅스]SWAP 메모리 생성

# free -g total used free shared buff/cache available Mem: 3 3 0 0 0 0 Swap: 1 1 0 # dd if=/dev/zero of=/swapfile bs=1M count=2048 # chmod 600 swapfile # mkswap /swapfile Setting up swapspace version 1, size = 2097148 KiB no label, UUID=15db3488-3756-4213-bc12-151e08072f42 # swapon /swapfile # vi /etc/fstab 아래 내용 추가 /swapfile swap swap defaults 0 0 # free -g total used free shared buff/cache ava..

image