Linux???????????
???????????? ???????[ 2014/12/29 14:35:59 ] ????????Linux ??????
????1????????????????????
?????????????????????????????????????????????free????????е????Mem????????????????????????????16G?????е???????41940K?????40M?????????????????????????
????16402432??16360492??41940
???????????????????????????????????????????е?????????С?????????????????41940????????????buffers??cached????????С??
?????????????????????????С????????????????????????????????????????linux??????????????????????????????????buffers??cached?????????free??????棬???????á?
????2??????ò???????????????????
???????linux?????е???ó??????????????С????free?????????“(-/+ buffers/cached)”???????????????????????????????3180208K???????е?????13222224K???????????????????
????41940????465404??12714880????13222224
????????????????????ó?????????????????Mem???free?????buffers??cached??????????????free??????buffers??cached???С???
??????????ó????????buffers/cached??е??????????????buffers/cached?????????????????????????ó????????????????buffers/cached????????????????ó?????á?
????3??buffers??cached?????
?????? Linux ???????У?????ó?????????????е????????????????????Щ??棬???????????????Щ????У?????????????????ó???????????????д??????????????????????????????????????????????д??????????????????д??????????????????????????????д?????????????д?????÷?????£????????????????????????д??????????????????????????????????????????????£?linux??????buffers??cached?????
????buffers??cached?????????????????????????????????????????????????????????????????????Щ??????????????buffers??cached???????????????????????????????ó??????????????????????????????????????????????????????棬??????????????????????buffers??cached?????????????????
????buffers????????????豸????????????????????????metadata????? tracking in-flight pages????cached????????????????塣???????????buffers?????????????????????????????????????????????cached????????????????????????????
?????????????????????????????????vi????????????????????cached??仯????????vi?????????о???????δ???????к??????????????δ????????????????????
????????????????????
????find /* -name *.conf
????????buffers??????仯???????????find???????????????????кβ????
????Linux????????????????????????????????????????????????????????????????????????????????????????cached?У?linux??????????????????????????????????????Щ???????????????????????????????????????????????????????·??????????????????
?????? ???????swap?????
????????????????????÷???????????swap????к?????ü?????????滮?????swap??????????????????????????Linux??????????????е??????????????????????????????????????á???linux?????????????????????????????
????1??????swap???????
???????????????????????????????????????????????????????????????????????????????dd??????????????????????λ????????????????????????????NFS???????swap????????????磺
????[root@localhost ~]# dd if=/dev/zero of=/data/swapfile bs=1024 count=65536
????65536+0 records in
????65536+0 records out
???????????????????????????????????С?60M?????????dd?????????????:
????if????????????????豸?????
????of?????????????豸?????
????ibs=bytes ?????ζ???bytes ?????(????????С? bytes ?????)??
????obs=bytes ??????дbytes ?????(????????С? bytes ?????)??
????bs??bytes?????????д????С????bytes???λ???????????? ibs ?? obs??
????count=blocks ??????blocks???顣
????skip=blocks ??????????????????? blocks ??????????????
????seek=blocks?????????????????? blocks ??????????????(?????е????????????????????Ч)
??????????????豸/dev/zero??????????????0???豸???????????????????????????????
??????
???·???
??????????????????
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