안녕하세요.
Ubuntu 사용중인데 메모리가 부족해서.. 자꾸만 문제가 생깁니다.
drop cache 를 해도 Cached 가 10GB 넘게 차있는게 없어지질 않네요..
shm 도 용량이 크지 않습니다.. 어떻게 해야 할까요?
---
확인해 본 것
# free -m
total used free shared buff/cache available
Mem: 63893 39230 11534 8511 13127 15452
스왑: 1951 1708 243
/proc/meminfo:
MemTotal: 65426568 kB
MemFree: 11871044 kB
MemAvailable: 15906032 kB
Buffers: 277092 kB
Cached: 12402716 kB
SwapCached: 100448 kB
Active: 21555672 kB
Inactive: 26908344 kB
Active(anon): 20445476 kB
Inactive(anon): 24043484 kB
Active(file): 1110196 kB
Inactive(file): 2864860 kB
Unevictable: 532 kB
Mlocked: 532 kB
SwapTotal: 1998844 kB
SwapFree: 249720 kB
Dirty: 5076 kB
Writeback: 0 kB
AnonPages: 35685868 kB
Mapped: 9988648 kB
Shmem: 8717524 kB
KReclaimable: 787748 kB
Slab: 1663736 kB
SReclaimable: 787748 kB
SUnreclaim: 875988 kB
KernelStack: 143936 kB
PageTables: 269344 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 34712128 kB
Committed_AS: 77493372 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 563700 kB
VmallocChunk: 0 kB
Percpu: 57856 kB
HardwareCorrupted: 0 kB
AnonHugePages: 376832 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
FileHugePages: 0 kB
FilePmdMapped: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 22807724 kB
DirectMap2M: 41988096 kB
DirectMap1G: 2097152 kB
# df -h -t tmpfs
tmpfs 32G 272M 31G 1% /dev/shm
---
시도해 본 것:
sync
echo 3 > /proc/sys/vm/drop_caches
echo 10 > /proc/sys/vm/swappiness
모두 변화가 없습니다..ㅠㅠ
À§ »óȲÀº ÇÁ·Î¼¼½ºµéÀ» Á׿©¼ Á» ³²°Ô µÈ°Çµ¥, ÀÛ¾÷ÇÏ´Ùº¸¸é ¸Þ¸ð¸®°¡ ºÎÁ·Çؼ Àú ij½Ã¸¦ ¾î¶»°Ô ÇÒ ¼ö ¾øÀ»±î ÇÏ°í ÀÖ½À´Ï´Ù.
IntelliJ, WebStorm, GoLand, Windows VM, k3s Äѳõ°í °³¹ßÇÏ°í ÀÖ½À´Ï´Ù.
¸ÞÀκ¸µå ¸ðµ¨¸íÀº ±â¾ï¾È³ªÁö¸¸ È®ÀÎÇßÀ» ¶§ ÃÖ´ë 64GB ¶ó ´õÀÌ»ó Ãß°¡´Â ¾î·Æ³×¿ä¤Ð¤Ð
¿ì¼± ±×º¸´Ù ÇÁ·Î±×·¥À» ÃÖ´ëÇÑ Æ©´×½ÃÅ°´Â °Í¿¡ Àü³äÇϽô °ÍÀÌ ³ª¾Æ º¸ÀÔ´Ï´Ù..
¸Þ¸ð¸®°¡ ¾îµð¼±°¡ ¹ÝȯÀÌ ¾ÈµÇ´Â °ÍÀϼöµµ ÀÖ°í,
ÇÁ·Î±×·¥ÀÌ Á¾·áµÇÁö ¾Ê°í Á»ºñ·Î °è¼Ó ³²¾Æ ÀÖ´Â °ÍÀÏÁöµµ ¸ð¸£ÁÒ.
¾îµð¼±°¡ ¸Þ¸ð¸® ¹ÝȯÀ» ¾ÈÇϴ°Š°°Àºµ¥ ã±â°¡ ¾î·Æ³×¿ä..
ºñ¾îÀÖ´Â ¸Þ¸ð¸®¸¦ ÃÖ´ëÇÑ µð½ºÅ© ij½Ã·Î ¾µ·Á°í ÇÕ´Ï´Ù.
ÇÁ·Î±×·¥ÀÌ ¸Þ¸ð¸® ¿ä±¸ÇÏ¸é ±×¶§ ij½Ã·Î ¾²´Â°Å »©¼ ÇÁ·Î±×·¥¿¡ ³Ñ±âÁÒ.
Cached µµ ¾î´À ÆÄÀϽýºÅÛÀÌ ¾²°í ÀÖ´Ù¶ó´Â°É ¾Ë ¼ö ÀÖÀ½ ÁÁÀ»ÅÙµ¥..¤Ð¤Ð
¾î.. ±Ùµ¥ »ý°¢Çغ¸´Ï.. lxd ¿¡¼ zfs ¸¦ ¾²´Âµ¥ arc ¶§¹®Àϼöµµ ÀÖÀ»°Å °°³×¿ä.. ³»ÀÏ °¡¸é È®ÀÎÇغÁ¾ß°Ú½À´Ï´Ù.
Å׶ó ´ÜÀ§ ¸Þ¸ð¸® ¸®´ª½º ½Ã½ºÅÛµµ ÇÊ¿äÇÏ¸é ´Ù Ä³½Ã·Î °®´Ù ¾¹´Ï´Ù.
¸»¾¸À¸·Î ºÁ¼´Â ´ÔÀÇ ¸¶À½ÀÌ ºÒ¾ÈÇÑ ½ÉÀû Àå¾Ö ¸»°í´Â ¹®Á¦°¡ ¾ø¾î º¸À̴µ¥¿ä, ¸Þ¸ð¸® ºÎÁ·À¸·Î ½Ã½ºÅÛ¿¡ ½ÇÁ¦·Î ¿À·ù°¡ ¹ß»ýÇØ¾ß ¹®Á¦°¡ ÀÖ´Ù°í º¸½Ã¸é µË´Ï´Ù.
¹®Á¦°¡ ¹ß»ýÇÑ´Ù´Â °ÍÀº ¸¶¿ì½º°¡ ²÷±æ Á¤µµ·Î ´À·ÁÁö´Â »óȲÀε¥.. ÀÌ·¯ÇÑ »óȲ¿¡¼ top À» º¸¸é
free ¸Þ¸ð¸®°¡ ±ØÈ÷ ÀÛ°í, Cached ´Â ±×´ë·Î 10GB ³Ñ°Ô Àâ°í ÀÖ½À´Ï´Ù.
ÀÌ »óȲ¿¡¼ ÇÁ·Î¼¼½º¸¦ Á׿©¼ ¸Þ¸ð¸®¸¦ È®º¸Çϸé Á¤»óÀ¸·Î µ¹¾Æ¿À±¸¿ä. (±×·¡µµ cached ´Â ±×´ë·Î..)
óÀ½¿¡ ¹®Á¦ »óȲÀ» Á¤È®È÷ ÀûÀ¸¼ÌÀ¸¸é ¿©·¯ »ç¶÷ ºÒÇÊ¿äÇÑ ¸»µé ¾ÈÇßÀ»ÅÙµ¥¿ä...
ÆÄÀÏ Àб⿡ ºñÇØ ¾²±â°¡ ¸Å¿ì ¸¹Àº °Í °°½À´Ï´Ù.
±×·± »óȲ¿¡¼´Â ¾î¿ ¼ö ¾øÀ» °Í °°½À´Ï´Ù.
ij½º°¡ ¿ø·¡ ÇÑ ¹ø ÀÐÀº °É ÀçÈ°¿ëÇÏÀÚ°í ¸¸µç °Çµ¥, ¾²±â°¡ ´õ ¸¹´Ù¸é ¸¶¶¥ÇÑ ´äÀÌ ¾ø½À´Ï´Ù.
µ·µé¿©¼ ´õ ºü¸¥ µð½ºÅ©¸¦ »ç´Â °Í¸¸ÀÌ ´äÀÔ´Ï´Ù.
VFS Cache°¡ »ç¿ëÇÒ °¡´É¼ºÀÌ ³ô¾Æº¸ÀÔ´Ï´Ù