Linuxã«ãããã¡ã¢ãªã»ããã°ã©ãã³ã° #weblog
malloc()ã¨ããã°ï¼£è¨èªã§ã¯ã馴æã¿ã®ã©ã¤ãã©ãªã§ãæãè¯ã使ç¨ãããã©ã¤ãã©ãªã®ä¸ã¤ã§ããããããã®åã ãä½ããã®ä¸å ·åãçµé¨ãã人ãå¤ãã®ã§ã¯ãªãã§ãããããæ¬æ¸ã§ã¯malloc()ãfree()ã§ç¢ºä¿ã解æ¾ãããã¡ã¢ãªãªã½ã¼ã¹ãå é¨çã«ã©ã®ããã«ç®¡çããã¦ãããã説æãã¦ããã¾ããmallocã©ã¤ãã©ãªã®ä»æ§ãç解ããäºã§ãã©ã¤ãã©ãªä½¿ç¨æã«ä½ããã®ä¸å ·åãçºçããéã®æå©ãã«ãªãã°ã¨æãã¾ãã ããã§ã¯Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§æ¨æºçã«ä½¿ç¨ããã¦ããglibcã®mallocã©ã¤ãã©ãªãæ±ãã¾ããä»åã®èª¿æ»ã§ã¯æ¬¡ã®ç°å¢ã使ç¨ãã¦ãã¾ãã ãã£ã¹ããªãã¥ã¼ã·ã§ã³ :Debian sarge ããã±ã¼ã¸ãã¼ã¸ã§ã³ :glibc-2.3.2.ds1-22 OS : i386 Linux æ¬æ¸ã§ã¯ãä¸è¨ã®éãi386ã¢ã¼ããã¯ãã£ã®å ´åã«ã¤ãã¦è¨è¿°ãã¦ãã¾ãã
ãµâãçã«ä½¿ã£ã¦ããPC ã®ã¡ã¢ãªãååãã©ããæ°ã«ãªãäºã¯å¤ãã¨æã. 調ã¹åºã㨠ããªã¼ã¡ã¢ãªã¼ã®ä¸è¶³ã SWAP ã«ã¡ã¢ãªã¼ãã¯ã¿ã ãã¦ããæ§åãªã© å¿é ãªäºãããããã§ã¦æ¥ã. PC ã®åä½ãé ããªãåå ã¯æ§ã ãªè¦å ã絡ã¿åã£ã¦ããã®ã§, 表é¢ã«ç¾ããçç¶ã ãã§ã¯å¹æçãªå¯¾çãåãããªãäºããã. 以ä¸ã§ã¯, ã¡ã¢ãªâé¢é£ã«ãã¼ã£ã¦è§£èª¬ãã. ã¡ã¢ãªã®ç¶æ³ã調ã¹ã ã¡ã¢ãªâã¯ååãªã¯ããªã®ã« ä½è£ãç¡ãï¼ ã©ã®ããã»ã¹ãã¡ã¢ãªãæ¶è²»ãã¦ããã®ãï¼ ã¡ã¢ãªã¼ã®ãªã¼ã¯ãæ¤åºããæ¹æ³ï¼ é²æ¢ããæ¹æ³ï¼ ã¡ã¢ãªâã¯ååãªã¯ããªã®ã« SWAP ã使ã£ã¦ãï¼ ãã, æ¬å½ã®ã¡ã¢ãªâä¸è¶³ã¯ã©ããããåããã®ï¼ ã¡ã¢ãªã¼ã¨ SWAP é åã¯ã©ã®ããã確ä¿ããã¨è¯ãã®ã ã¡ã¢ãªã®ç¶æ³ã調ã¹ã ã¡ã¢ãªã®å©ç¨ç¶æ³ã調ã¹ãæ¹æ³ã¯, free, top, ps, vmstat, /proc/meminfo
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}