æï¼Jack Wallenï¼Special to TechRepublicï¼Â ç¿»è¨³æ ¡æ£ï¼æä¸é ç« ã»éå´è£å 2008-09-17 08:00 Linuxã«ã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ããã¨ããä½æ¥ã«ã¯ããã¤ã¦ã»ã©ã§ã¯ãªããã®ã®ã注æãã¹ãè½ã¨ãç©´ãã¾ã ããã¤ãåå¨ãã¦ãããããããæ¬è¨äºã§ç´¹ä»ãã¦ããé ç®ãåèã«ãããã¨ã§ãããªãã®Linuxã©ã¤ãã¯ããã·ã³ãã«ã§å®å ¨ãªãã®ã¨ãªãã¯ãã ã ï¼1ï¼.rpmã.debãæ¡ç¨ãã¦ããã·ã¹ãã ã«ãããããããã½ã¼ã¹ã³ã¼ãããã¤ã³ãã¼ã«ãè¡ã Linuxåå¿è ã®ä¸ã«ã¯ãOSä¸ã«ã¤ã³ã¹ãã¼ã«ããããã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³ããrpmãaptï¼ãããã¯dpkgï¼ã¨ãã£ãããã±ã¼ã¸ç®¡çã·ã¹ãã ã«ãã£ã¦ç®¡çãããã¨ãããã¨ããç¥ããªã人ãå¤ããã¨ã¯è¨ããã®ã®ããããã£ãã·ã¹ãã ï¼rpmãaptãdpkgï¼ã管çã§ãããã®ã¯ãå½è©²ã·ã¹ãã ãç¨ãã¦ã¤ã³ã¹ãã¼ã«ããã¢
éä¿¡ãã°ãæ®ããå ´åã§ãï¼å¤é¨ã¡ãã£ã¢ã¸ã®ã³ãã¼ãå°å·ãªã©ã§éä¿¡ãã°ããæ¼ããã¨ãã¯ãã®å±¥æ´ãæ®ããªããæå¾ã®âç ¦âã¨ãªãã®ãï¼ã¯ã©ã¤ã¢ã³ãPCã®æä½ãã°ã§ããã åè¿°ããæ¥æ¬éµæ¿å ¬ç¤¾ã®ç°¡æä¿éºã®ã·ã¹ãã ã§ã¯ï¼ç´2ä¸å±ããéµä¾¿å±ã§ä¿éºã®å¥ç´å 容ãªã©ãåç §ããï¼å³1ï¼ããåå±ã«ããæä½ç«¯æ«ã®OSã¯Windowsã ãï¼ã¦ã¼ã¶ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ããæä½ã§ããªããã¹ã¿ã¼ãã»ãã¿ã³ãã³ã³ããã¼ã«ã»ããã«ãªã©ãè¦ããªãã®ã§ï¼åæã«ããã¤ã¹ãæ¥ç¶ãã¦å©ç¨ãããã¨ã¯ã§ããªããï¼ç¸åæ°ï¼ã端æ«ãæä½ã§ããã¦ã¼ã¶ã¼ãæ¥ã«ãã£ã¦å¤ãã¦ããï¼ICã«ã¼ãããªãã¨æä½ããã§ããªããICã«ã¼ãã¯é²ç¯åº«ã«ä¿ç®¡ãã¦ããï¼ç®¡çè ãæ¯æ¥ã¦ã¼ã¶ã¼ã«é å¸/ååãããå¥ç´å 容ã®åç §ã1件ãã¤ããã§ããªãã å³1âã¯ã©ã¤ã¢ã³ãå´ã§æä½ãã°ãæ®ã æ¥æ¬éµæ¿å ¬ç¤¾ã¯ï¼å°ç¨ç«¯æ«ã®å©ç¨ãå³éã«å¶éããä¸ã§ï¼ç¤¾å¡ã®æä½ãã°ãè¨é²ããããã«ãã¦ã
1. Swapé åã®ç»é² 1.1 swapon sys_swapon()ã«ãããã·ã¹ãã ã«ã¹ã¯ããé åãç»é²ãããsys_swapon()ã¯swaponã·ã¹ãã ã³ã¼ã«ã®ã¨ã³ããªãã¤ã³ãã sys_swapon()ã¯ã¹ã¯ããé åã®ç®¡çãã¼ãã«swap_infoãã空ãã¨ã³ããªãæ¢ãã¦ãè¦ã¤ãã空ãã¨ã³ããªã«ãç»é²ããã¹ã¯ããé åã®struct swap_info_structãæ§ç¯ãã¦ããã /* swap_infoãã空ãé åãæ¢ã */ p = swap_info; for (type = 0 ; type < nr_swapfiles ; type++,p++) if (!(p->flags & SWP_USED)) break; /* 以ä¸ã§ç©ºãã¨ã³ããª(ãã¤ã³ã¿pãæãã¦ããå ´æ)ã« * struct swap_info_structãæ§ç¯ãã¦ãã */ INIT_LIST_HEA
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}