ZZ: When Linux Runs Out of Memory (OOM killer)
When Linux Runs Out of Memory
http://linuxdevcenter.com/pub/a/linux/2006/11/30/linux-out-of-memory.html?page=1
Perhaps you rarely face it, but once you do, you surely know what's
wrong: lack of free memory, or Out of Memory (OOM). The results are
typical: you can no longer allocate more memory and the kernel kills a
task (usually the current running one). Heavy swapping usually
accompanies this situation, so both screen and disk activity reflect
this.
At the bottom of this problem lie other questions: how much memory
do you want to allocate? How much does the operating system (OS)
allocate for you? The basic reason of OOM is simple: you've asked for
more than the available virtual memory space. I say "virtual" because
RAM isn't the only place counted as free memory; any swap areas apply.
Exploring OOM
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
ÔÚlinuxÏ°²×°ÅäÖÃsvn¶ÀÁ¢·þÎñÆ÷
subversion(ÒÔϼò³Æsvn)ÊǽüÄêÀ´áÈÆðµÄ°æ±¾¹ÜÀí¹¤¾ß£¬ÊÇcvsµÄ½Ó°àÈË¡£ svn·þÎñÆ÷ÓÐ2ÖÖÔËÐз½Ê½£º¶ÀÁ¢·þÎñÆ÷ºÍ½èÖúapache¡£2ÖÖ·½Ê½¸÷ÓÐÀû±×¡£
svn´æ´¢°æ±¾Êý¾ÝÒ²ÓÐ2ÖÖ·½Ê½£ºBDBºÍFSFS¡£ÒòΪBDB·½Ê½ÔÚ·þÎñÆ÷ÖжÏʱ£¬ÓпÉÄÜËøסÊý¾Ý£¨ÎÒÔÚ¸ãldapʱ¾ÍÉîÊÜÆ亦£¬Ã»·¨¸ùÖΣ©£¬ËùÒÔ»¹ÊÇ ......
µ¼¶Á£ºÓÖÊÇM. Tim Jones µÄÎÄÕ£¬ËûÔÚ×Î×β»¾ëµØ¹Ø×¢×ÅÄÚºËÖÐÿһÏîеļ¼Êõ£¬²¢ÒÔ´ó¼ÒÒ×ÓÚÀí½âµÄ·½Ê½³ÊÏÖÔÚ¶ÁÕßÃæÇ°¡£
Linux Äں˵ķ¢Õ¹
½éÉÜ 2.6.28 ºÍ 2.6.29 °æ±¾ÖеÄÐÂÌØÐÔ
¼¶±ð£º Öм¶
M. Tim Jones, ¹ËÎʹ¤³Ìʦ, Emulex
Corp.
ÉúÃüµÄ±ØÈ»²»½ö°üÀ¨ËÀÍöºÍÄÉË°£¬»¹°üÀ¨ GNU/Linux® ²Ù×÷ϵͳµÄ·¢Õ¹£¬×îÐ ......
Ò»¡¢Ò»¸öÒÔÇ°µÄÀÏÒµÎñ,ÀàËÆÏÂÃæÕâÑùµÄ
int test(char * ptest)
£û
return atoi(ptest);
£ý
Òì³£µÄʱºò£¬Ö¸ÕëÊǿյģ¬Á¢Âí¾ÍcoreµôÁË
¶þ¡¢
int uin = 77564267;
......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
Ò»°ãÈË×ÜÊÇÈÏΪ£¬
Linux
Óû§ÊDz»»áÇáÒ׵ص¹Ïò
Windows
Ò»±ßµÄ¡£µ«ÊÇ£¬Êµ¼ÊÇé¿öÈÃÄã´óµøÑÛ¾µ¡£
´ó¼ÒÖªµÀ£¬ÍøÕ¾
www.w3c ......