LINUXÖеÄSWAP·ÖÇø
ÖÚËùÖÜÖª£¬ÏÖ´ú²Ù×÷ϵͳ¶¼ÊµÏÖÁË“ÐéÄâÄÚ´æ”ÕâÒ»¼¼Êõ£¬²»µ«ÔÚ¹¦ÄÜÉÏÍ»ÆÆÁËÎïÀíÄÚ´æµÄÏÞÖÆ£¬Ê¹³ÌÐò¿ÉÒÔ²Ù×Ý´óÓÚʵ¼ÊÎïÀíÄÚ´æµÄ¿Õ¼ä£¬¸üÖØÒªµÄÊÇ£¬“ÐéÄâÄÚ´æ”ÊǸôÀëÿ¸ö½ø³ÌµÄ°²È«±£»¤Íø£¬Ê¹Ã¿¸ö½ø³Ì¶¼²»ÊÜÆäËü³ÌÐòµÄ¸ÉÈÅ¡£
Swap¿Õ¼äµÄ×÷Óÿɼòµ¥ÃèÊöΪ£ºµ±ÏµÍ³µÄÎïÀíÄÚ´æ²»¹»ÓõÄʱºò£¬¾ÍÐèÒª½«ÎïÀíÄÚ´æÖеÄÒ»²¿·Ö¿Õ¼äÊͷųöÀ´£¬ÒÔ¹©µ±Ç°ÔËÐеijÌÐòʹÓá£ÄÇЩ±»ÊͷŵĿռä¿ÉÄÜÀ´×ÔһЩºÜ³¤Ê±¼äûÓÐʲô²Ù×÷µÄ³ÌÐò£¬ÕâЩ±»ÊͷŵĿռ䱻ÁÙʱ±£´æµ½Swap¿Õ¼äÖУ¬µÈµ½ÄÇЩ³ÌÐòÒªÔËÐÐʱ£¬ÔÙ´ÓSwapÖлָ´±£´æµÄÊý¾Ýµ½ÄÚ´æÖС£ÕâÑù£¬ÏµÍ³×ÜÊÇÔÚÎïÀíÄÚ´æ²»¹»Ê±£¬²Å½øÐÐSwap½»»»¡£
¼ÆËã»úÓû§»á¾³£ÓöÕâÖÖÏÖÏó¡£ÀýÈ磬ÔÚʹÓÃWindowsϵͳʱ£¬¿ÉÒÔͬʱÔËÐжà¸ö³ÌÐò£¬µ±ÄãÇл»µ½Ò»¸öºÜ³¤Ê±¼äûÓÐÀí»áµÄ³ÌÐòʱ£¬»áÌýµ½Ó²ÅÌ“»©»©”Ö±Ïì¡£ÕâÊÇÒòΪÕâ¸ö³ÌÐòµÄÄÚ´æ±»ÄÇЩƵ·±ÔËÐеijÌÐò¸ø“͵×ß”ÁË£¬·Åµ½ÁËSwapÇøÖС£Òò´Ë£¬Ò»µ©´Ë³ÌÐò±»·ÅÖõ½Ç°¶Ë£¬Ëü¾Í»á´ÓSwapÇøÈ¡»Ø×Ô¼ºµÄÊý¾Ý£¬½«Æä·Å½øÄڴ棬Ȼºó½Ó×ÅÔËÐС£
ÐèҪ˵Ã÷Ò»µã£¬²¢²»ÊÇËùÓдÓÎïÀíÄÚ´æÖн»»»³öÀ´µÄÊý¾Ý¶¼»á±»·Åµ½SwapÖУ¨Èç¹ûÕâÑùµÄ»°£¬Swap¾Í»á²»¿°Öظº£©£¬ÓÐÏ൱һ²¿·ÖÊý¾Ý±»Ö±½Ó½»»»µ½Îļþϵͳ¡£ÀýÈ磬ÓеijÌÐò»á´ò¿ªÒ»Ð©Îļþ£¬¶ÔÎļþ½øÐжÁд£¨Æäʵÿ¸ö³ÌÐò¶¼ÖÁÉÙÒª´ò¿ªÒ»¸öÎļþ£¬ÄǾÍÊÇÔËÐгÌÐò±¾Éí£©£¬µ±ÐèÒª½«ÕâЩ³ÌÐòµÄÄÚ´æ¿Õ¼ä½»»»³öȥʱ£¬¾ÍûÓбØÒª½«Îļþ²¿·ÖµÄÊý¾Ý·Åµ½Swap¿Õ¼äÖÐÁË£¬¶ø¿ÉÒÔÖ±½Ó½«Æä·Åµ½ÎļþÀïÈ¥¡£Èç¹ûÊǶÁÎļþ²Ù×÷£¬ÄÇôÄÚ´æÊý¾Ý±»Ö±½ÓÊÍ·Å£¬²»ÐèÒª½»»»³öÀ´£¬ÒòΪÏ´ÎÐèҪʱ£¬¿ÉÖ±½Ó´ÓÎļþϵͳ»Ö¸´£»Èç¹ûÊÇдÎļþ£¬Ö»ÐèÒª½«±ä»¯µÄÊý¾Ý±£´æµ½ÎļþÖУ¬ÒÔ±ã»Ö¸´¡£µ«ÊÇÄÇЩÓÃmallocºÍnewº¯ÊýÉú³ÉµÄ¶ÔÏóµÄÊý¾ÝÔò²»Í¬£¬ËüÃÇÐèÒªSwap¿Õ¼ä£¬ÒòΪËüÃÇÔÚÎļþϵͳÖÐûÓÐÏàÓ¦µÄ“´¢±¸”Îļþ£¬Òò´Ë±»³Æ×÷“ÄäÃû”(Anonymous)ÄÚ´æÊý¾Ý¡£ÕâÀàÊý¾Ý»¹°üÀ¨¶ÑÕ»ÖеÄһЩ״̬ºÍ±äÁ¿Êý¾ÝµÈ¡£ËùÒÔ˵£¬Swap¿Õ¼äÊÇ“ÄäÃû”Êý¾ÝµÄ½»»»¿Õ¼ä¡£
Linux divides its physical RAM (random access memory) into chucks of memory called pages. Swapping is the process whereby a page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory. The combined sizes of the physical memory and the swap space is the amount of virtual
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
ÓÃ;
´¦ÀíÃüÁîÐвÎÊý£¬²¢Ð£ÑéÓÐЧѡÏî¡£
Óï·¨
getopts
Ñ¡Ïî×Ö·û´®
Ãû³Æ
[
²ÎÊý
...]
ÃèÊö
getopts ÃüÁîÊÇ Korn/POSIX shell µÄÄÚÖÃÃüÁÓÃÀ´´Ó²ÎÊýÁбí¼ìË÷Ñ¡ÏîÒÔ¼°Ñ¡Ïî²ÎÊý¡£Ñ¡ÏîÓÉÒ»¸ö £¨¼ÓºÅ£©»òÕßÊÇÓÉÒ»¸ö-£¨¼õºÅ£©ºó¸úÒ»¸ö×Ö·û¿ªÊ¼¡£Ò»¸ö¼È²»ÊÇÒÔ £¬Ò²²»ÊÇÒÔ-¿ªÊ¼µÄÑ¡Ïî½áÊøÑ¡Ïî×Ö·û´®¡£Ã¿´Îµ÷Óà getopt ......
µ½¹ÙÍøÏÂÔØsamba,samba-3.4.5.tar.gz
½âѹËõ£¬ºó£¬½øÈësource3.
./autogen.sh
./configure
make
make install
Æô¶¯/usr/local/samba/sbin/smbd
´Ë´¦¿ÉÄÜ»áÌáʾ£¬
error while loading shared libraries: libtalloc.so.1
Ö´ÐÐ
LD_DEBUG=libs /usr/local/samba/sbin/smbd -D
¼ì²éÄÄЩlibÎÞ·¨ÕÒµ½£¬ÏàÓ¦µÄÓÃln&nbs ......
²¥·ÅÎļþ
ʹÓà MPlayer ²¥·ÅýÌåÎļþ×î¼òµ¥µÄ·½Ê½ÊÇ£º
mplayer <somefile>
MPlayer »á×Ô¶¯¼ì²âÎļþµÄÀàÐͲ¢¼ÓÒÔ²¥·Å£¬Èç¹ûÊÇÒôƵÎļþ£¬Ôò»áÔÚÃüÁîÐÐÖÐÏÔʾ¸Ã²¥·ÅÎļþµÄ״̬ÐÅÏ¢£»¶ø¼ÙÈçÊÇÊÓƵÎļþµÄ»°£¬Ôò»á´ò¿ªÒ»¸öеIJ¥·Å´°¿Ú¡£
µ¹ÍËÓë¿ì½ø
ÔÚ²¥·ÅÎļþµÄʱºò£¬Äã¿ÉÒÔͨ¹ýÒÔÏÂÈý×é¿ì½Ý¼üÀ´¶Ô²¥·Å½ø³Ì½øÐе¹Í ......
ʵÀý)
ÏÖÔÚÎÒÃÇÀ´ÌÖÂÛ±àдһ¸ö½Å±¾µÄÒ»°ã²½Öè¡£ÈκÎÓÅÐãµÄ½Å±¾¶¼Ó¦¸Ã¾ßÓаïÖúºÍÊäÈë²ÎÊý¡£²¢ÇÒдһ¸öα½Å±¾£¨framework.sh£©£¬¸Ã½Å±¾°üº¬ÁË´ó¶àÊý½Å±¾¶¼ÐèÒªµÄ¿ò¼Ü½á¹¹£¬ÊÇÒ»¸ö·Ç³£²»´íµÄÖ÷Òâ¡£Õâʱºò£¬ÔÚдһ¸öеĽű¾Ê±ÎÒÃÇÖ»ÐèÒªÖ´ÐÐÒ»ÏÂcopyÃüÁ
cp framework.sh myscript
È»ºóÔÙ²åÈë×Ô¼ºµÄº¯Êý¡£
ÈÃÎÒÃÇÔÙ¿´Á½ ......