????????????????????????
???????????? ???????[ 2013/3/19 11:10:34 ] ????????
????????????????
??????Linux???У????????????????????????????????Ramdisk?????????????и????д?????????洢??Щ?????IO?????????????????????????????????
????Ramdisk???????????????????С?????????????????????????????????????????????????????tmpfs???????????????????????????С??????????÷????kernel 2.4????????????
?????????tmpfs????????????η????????????????????????????????????????????????????????????
??????????????
?????????ubuntu??????????Ramdisk???????????????????????ú?????Ramdisk??????????????????????????£?
?????????????????????????£?
root@peter:~# free -m
total used free shared buffers cached
Mem: 3851 2222 1629 0 63 847
-/+ buffers/cache: 1310 2540
Swap: 1925 0 1925
root@peter:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 125G 4.9G 114G 5% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 771M 888K 770M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 7.4M 1.9G 1% /run/shm
????????????д??1G?????????????£?
root@peter:/run/shm# dd if=/dev/zero ibs=1M count=1024 of=./test.img
1024+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB) copied?? 2.22898 s?? 482 MB/s
root@peter:/run/shm# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 125G 4.9G 114G 5% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 771M 888K 770M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 1.1G 895M 54% /run/shm
root@peter:/run/shm# free -m
total used free shared buffers cached
Mem: 3851 3245 605 0 64 1871
-/+ buffers/cache: 1309 2541
Swap: 1925 0 1925
??????????????????????????cached????????????????????????1309??????????б仯?????????????????????д??????????????????cached???????????????????????????????????????cached????
root@peter:/run/shm# sync; echo "3" > /proc/sys/vm/drop_caches
root@peter:/run/shm# free -m
total used free shared buffers cached
Mem: 3851 2694 1156 0 0 1401
-/+ buffers/cache: 1292 2558
Swap: 1925 0 1925
????????/run/shm?????????洢??1.1G???????cached????б??????????????????????????????????????cached??????????С?
??????????????????????????????????????????
root@peter:/run/shm# rm -fr test.img
root@peter:/run/shm# free -m
total used free shared buffers cached
Mem: 3851 1676 2174 0 7 370
-/+ buffers/cache: 1297 2553
Swap: 1925 0 1925
root@peter:/run/shm# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 125G 4.9G 114G 5% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 771M 888K 770M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 7.4M 1.9G 1% /run/shm
?????????????????????????????????У?????????????????????free -m??????????????????????е???????????????????????????????
?????????
??????????????????洢????????У????????????????????????????????????????????????????????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11