Linux????洢?????????????
???????????? ???????[ 2012/11/30 11:34:35 ] ????????
??????Linux?1???????????????????????????????????????泣????????????????????????£???Linux???е???????????????????Linux????ι???????
????????
????1?????????????
????Linux ?е? ???????Swap space?? ????????棨RAM?????????????á????????????????????????????????????????????в???????????????????????????????????????????????????????????????????????????????????????????????????λ?????????????????????????????????
???????????????????????????????????????????????????????????????? ???????????С???????????????????????? 32 MB????????н????????????????????? 2048 MB??2 GB????
????2???????????
?????????????б????????????????????????磬????????? 64 MB ?????? 128 MB??????????? 128 MB ???????檔???????е???????????????????????????????????????????????? 256 MB ??????????????
???????????????????????????????????????????????????????????????????????????????ж?????п??????????????????????????????
????????????????????????? /dev/hdb2 ?????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????? ??
????????????????????κα????????????????ж????Щ????????? swapoff ????????????????????????н??????
?????????
??????? parted ?? fdisk ???????????????? parted ?? fdisk ???????????????????? parted ???????????????? parted ????????????????
?????? shell ????????????????????? parted /dev/ hdb ??????? /dev/ hdb ???????п??п???????????????豸?????
?????? ??parted?? ????£????? print ???????????????п??????????????? MB ???λ???ж???????????????п?????????????????????????????????????????
?????? ??parted?? ????£????? mkpartfs part-type linux-swap start end ??????? part-type ?? primary??extended??logical ?е?????? start ???????????? end ????????????
???????棺??????????????????????????????
???????? quit ????? parted ??
??????????????????????????????? mkswap ?????????y??????????? shell ?????????????????????????
????mkswap /dev/hdb2
????????????y?????????????????????
????swapon /dev/hdb2
??????????????????? /etc/fstab ??????????????У?
????/dev/hdb2 swap swap defaults 0 0
?????????′??????????????????????????????
??????????????????????????????? cat /proc/swaps ?? free ???????????????????????????????
??????
???·???
??????????????????
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