[ ¸®´ª½º - Storage ] ´ë·®ÀÇ ÆÄÀÏ(inode full ¸¸µé±â)À» »ý¼ºÇÏ´Â Åø ¹®ÀÇ
큰 사1060;1592; 파1068;1012; 만드lj16; dd/fio/fallocateመ1;1008; ,160;색1060; .104;나 1060;러한 목1201;에 대한 Ț12; 아시면 소개 ǥ12;ᓠ1; 드/140; 봅니다.
감사합니다.
[ ¸®´ª½º - Storage ] ´ë·®ÀÇ ÆÄÀÏ(inode full ¸¸µé±â)À» »ý¼ºÇÏ´Â Åø ¹®ÀÇ
큰 사1060;1592; 파1068;1012; 만드lj16; dd/fio/fallocateመ1;1008; ,160;색1060; .104;나 1060;러한 목1201;에 대한 Ț12; 아시면 소개 ǥ12;ᓠ1; 드/140; 봅니다.
감사합니다.
ÆÄÀÏ»çÀÌÁ ÃÖ¼ÒÇؼ ÆÄÀÏ°³¼ö¸¦ ´Ã·Á¾ß ÆÄÀϽýºÅÛÀÌ Ã³¸®ÇÒ¼ö ÀÖ´Â ÆÄÀÏ°³¼ö ´É·ÂÀ» »ìÆ캼 ¼ö ÀÖ½À´Ï´Ù.
ex) vi inode_full_test.sh
--------------------------------
#!/bin/bash
for i in {1..100000000}; do
touch "touch_me_file_$i"
echo "counter : $i"
done
--------------------------------
¶óÁ¸®ÆÄÀÌ4·Î SD Ä«µå À§¿¡¼ ÇÑ Å×½ºÆ®¶ó¼ ±×·² ¼ö ÀÖÁö¸¸... »ý°¢º¸´Ù ´õ ´À¸®±º¿ä.
¸Ç ¾Æ·¡ ÂÊ¿¡ ½ºÅ©¸³Æ®°¡ ÀÖ½À´Ï´Ù.
x¶ó´Â Æú´õ ¾Æ·¡ 1000°³ÀÇ Æú´õ¸¦ ¸¸µé°í ´Ù½Ã 1000°³¸¦ ¸¸µé°í ±× ¾È¿¡ 1000°³ÀÇ ÆÄÀÏÀ» »ý¼ºÇÏ´Â ½ÄÀ̴ϱî... ÃÑ 100¾ï°³ Á¤µµÀÇ ÆÄÀÏÀ» ¸¸µì´Ï´Ù.
´Ù ¼ÒÁøµÇ¸é ÆÄÀÏ ½Ã½ºÅÛÀÌ »ç¿ëºÒ´ÉÀÌ µÉ ¼öµµ ÀÖÀ¸´Ï ÁÖÀÇÇؼ »ç¿ëÇϼ¼¿ä.
pi@raspberrypi:~/Test/inode_full $ date; df -hi; sleep 10; df -hi
Fri 24 Nov 18:57:45 KST 2023
df: /run/user/1000/doc: Operation not permitted
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/root 1.9M 912K 963K 49% /
devtmpfs 410K 433 410K 1% /dev
tmpfs 475K 1 475K 1% /dev/shm
tmpfs 800K 758 800K 1% /run
tmpfs 475K 3 475K 1% /run/lock
/dev/mmcblk0p1 0 0 0 - /boot
tmpfs 95K 28 95K 1% /run/user/1000
df: /run/user/1000/doc: Operation not permitted
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/root 1.9M 972K 902K 52% /
devtmpfs 410K 433 410K 1% /dev
tmpfs 475K 1 475K 1% /dev/shm
tmpfs 800K 758 800K 1% /run
tmpfs 475K 3 475K 1% /run/lock
/dev/mmcblk0p1 0 0 0 - /boot
tmpfs 95K 28 95K 1% /run/user/1000
pi@raspberrypi:~/Test/inode_full $ cat inode_full.py
#!/usr/bin/python3
import os
os.mkdir('x')
for x in range(1000):
x_dir = f'x/{x:05}'
os.mkdir(x_dir)
for y in range(1000):
y_dir = f'/{y:05}'
os.mkdir(x_dir + y_dir)
for z in range(1000):
with open(x_dir + y_dir + f'/{z:05}', 'w') as f:
pass
c·Î ½Ã½ºÅÛÄÝ È£ÃâÇÏ´Â ÇÁ·Î±×·¥ ¸¸µé¾î µ¹¸±¼öµµ ÀÖ°í¿ä.
https://www.2cpu.co.kr/QnA/822426?&page=470
HDD¿¡¼ Å×½ºÆ®Çϼ¼¿ä.
for() + touch ¸é ±Ý¹æ ½Ã½ºÅÛ »¸À»°Í °°Àºµ¥¿ä??
nfs¸¦ ƯÁ¤ ¸¶¿îÆ® Æ÷ÀÎÆ®·Î ÁöÁ¤Çؼ, ¹«»çÈ÷ ½ÃÇè ¿Ï·á ÇÏ¿´½À´Ï´Ù.
°Åµì °¨»çÇÕ´Ï´Ù.