Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[¸ßÐÔÄܼ¼Êõ] Linux2.6ÄÚºËepoll½éÉÜ(0.1°æ±¾)

[¸ßÐÔÄܼ¼Êõ] Linux2.6ÄÚºËepoll½éÉÜ(0.1°æ±¾)
ת×Ô£º http://mechgouki.blogdriver.com/mechgouki/601157.html
[×÷Õß]£ºëøêÅ,2005/3/30,0.1°æ±¾
[°æȨÉùÃ÷]£º´ËÎĵµ×ñÑ­GNU×ÔÓÉÎĵµÐí¿ÉÖ¤(GNU Free Documentation License).ÈκÎÈË¿ÉÒÔ×ÔÓɸ´ÖÆ,·Ö·¢,ÐÞ¸Ä,²»¹ýÈç¹û·½±ã,Çë×¢Ã÷³ö´¦ºÍ×÷Õß:)
(1)µ¼ÑÔ£º
Ê×ÏÈ£¬ÎÒÇ¿ÁÒ½¨Òé´ó¼ÒÔĶÁRichard StevensÖø×÷¡¶TCP/IP Illustracted Volume 1,2,3¡·ºÍ¡¶UNIX Network Programming Volume 1,2¡·¡£ËäÈ»ËûÀ뿪ÎÒÃÇ´ó¼ÒÒѾ­5Äê¶àÁË£¬µ«ÊÇËûµÄÊéÒÀÈ»ÊǽøÈëÍøÂç±à³ÌµÄ×îÖ±½ÓµÄµÀ·¡£ÆäÖеÄ3¾íµÄ¡¶TCP/IP Illustracted¡·¾í1ÊDZضÁ£­Èç¹ûÄã²»Á˽âtcpЭÒé¸÷¸öÑ¡ÏîµÄÏêϸ¶¨Ò壬Äã¾ÍʧȥÁËÓÅ»¯³ÌÐòÖØÒªµÄÒ»¸öÊֶΡ£¾í2,3¿ÉÒÔÑ¡¶Áһϡ£±ÈÈç¾í2½²½âµÄÊÇ4.4BSDÄÚºËTCP/IPЭÒéջʵÏÖ----Õâ¸ö°æ±¾µÄЭÒéÕ»¼¸ºõÓ°ÏìÁËÏÖÔÚËùÓеÄÖ÷Á÷os£¬µ«ÊÇÒòΪÄê´ú¾ÃÔ¶£¬ÄÚÈݲ»Ò»¶¨ÄÇôvogue.ÔÚÕâÀïÎÒ¶àÍƼöÒ»±¾¡¶The Linux Networking Architecture--Design and Implementation of Network Protocols in the Linux Kernel¡·£¬ÒÔ2.4Äں˽²½âLinux TCP/IPʵÏÖ£¬Ï൱²»´í.×÷Ϊһ¸öÏÖʵÊÀ½çÖеÄʵÏÖ£¬ºÜ¶àʱºòÄã±ØÐë×÷ºÜ¶àȨºâ£¬Õâʱºò²Î¿¼Ò»¸ö¾Ã¾­¿¼ÑéµÄϵͳ¸üÓÐʵ¼ÊÒâÒå¡£¾Ù¸öÀý×Ó,linuxÄÚºËÖÐsk_buff½á¹¹ÎªÁË×·ÇóËٶȺͰ²È«£¬ÎþÉüÁ˲¿·ÖÄڴ棬ËùÒÔÔÚ·¢ËÍTCP°üµÄʱºò£¬ÎÞÂÛÓ¦ÓòãÊý¾Ý¶à´ó,sk_buff×îСҲÓÐ272µÄ×Ö½Ú.
Æäʵ¶ÔÓÚsocketÓ¦Óòã³ÌÐòÀ´Ëµ£¬¡¶UNIX Network Programming Volume 1¡·ÒâÒå¸ü´óÒ»µã.2003ÄêµÄʱºò£¬Õâ±¾Êé³öÁË×îеĵÚ3°æ±¾£¬²»¹ýÖ÷Òª»¹ÊÇÐÞ¶©µÚ2°æ±¾¡£ÆäÖеÚ6Õ¡¶I/O Multiplexing¡·ÊÇ×îÖØÒªµÄ¡£Stevens¸ø³öÁËÍøÂçIOµÄ»ù±¾Ä£ÐÍ¡£ÔÚÕâÀï×îÖØÒªµÄĪ¹ýÓÚselectÄ£ÐͺÍAsynchronous I/OÄ£ÐÍ.´ÓÀíÂÛÉÏ˵£¬AIOËƺõÊÇ×î¸ßЧµÄ£¬ÄãµÄIO²Ù×÷¿ÉÒÔÁ¢¼´·µ»Ø£¬È»ºóµÈ´ýos¸æËßÄãIO²Ù×÷Íê³É¡£µ«ÊÇÒ»Ö±ÒÔÀ´£¬ÈçºÎʵÏÖ¾ÍûÓÐÒ»¸öÍêÃÀµÄ·½°¸¡£×îÖøÃûµÄwindowsÍê³É¶Ë¿ÚʵÏÖµÄAIO,ʵ¼ÊÉÏÒ²ÊÇÄÚ²¿ÓÃÏ̳߳ØʵÏֵİÕÁË£¬×îºóµÄ½á¹ûÊÇIOÓиöÏ̳߳أ¬ÄãÓ¦ÓÃÒ²ÐèÒªÒ»¸öÏ̳߳Ø......ºÜ¶àÎĵµÆäʵÒѾ­Ö¸³öÁËÕâ´øÀ´µÄÏß³Ìcontext-switch´øÀ´µÄ´ú¼Û¡£
ÔÚlinuxƽ̨ÉÏ£¬¹ØÓÚÍøÂçAIOÒ»Ö±ÊǸĶ¯×î¶àµÄµØ·½£¬2.4µÄÄê´ú¾ÍÓкܶàAIOÄÚºËpatch,×îÖøÃûµÄÓ¦¸ÃËãÊÇSGIÄǸö¡£µ«ÊÇÒ»Ö±µ½2.6Äں˷¢²¼£¬ÍøÂçÄ£¿éµÄAIOһֱûÓнøÈëÎȶ¨Äں˰汾(´ó²¿·Ö¶¼ÊÇʹÓÃÓû§Ïß³ÌÄ£Äâ·½·¨£¬ÔÚʹÓÃÁËNPTLµÄlinuxÉÏÃæÆäʵºÍwindowsµÄÍê³É¶Ë¿Ú»ù±¾Éϲ¶àÁË)¡£2.6ÄÚºËËùÖ§³ÖµÄAIOÌØÖ¸


Ïà¹ØÎĵµ£º

linuxÉÏʹÓÃrlwrap ½â¾öoracle¿ÉÒÔÉÏϼü²é¿´ÃüÁî

linux ÉϵÄoracle sqlplus ²»ÄÜÀûÓà ÉÏ, Ï ¼üÀ´²é¿´ÃüÁËÑË÷µ½½â¾öÎÊÌâµÄ°ì·¨£¬ÕûÀíÈçÏÂ
°²×°Èí¼þrlwrap¿ÉÒÔ½â¾öÕâ¸öÎÊÌ⣬¸ÃÈí¼þÊÇÓÃcдµÄ³ÌÐò
¹Ù·½ÏÂÔصØÖ·£ºhttp://utopia.knoware.nl/~hlub/uck/rlwrap/
°²×°¹ý³Ì£º
ÎÒÃÇÒ²¿ÉÒԲ鿴½âѹºóµÄtar°ü£¬²é¿´README°ïÖúÎļþ
shell>tar -zxvf rlwrap-0.36.tar.gz
sh ......

linux ipÃüÁî

ip ÊǸöÃüÁ ip ÃüÁîµÄ¹¦Äܺܶ࣡»ù±¾ÉÏËüÕûºÏÁË ifconfig Óë route ÕâÁ½¸öÃüÁ²»¹ýip µÄ¹¦ÄܸüÇ¿´ó£¡ Èç¹ûÄúÓÐÐËȤµÄ»°£¬Çë×ÔÐÐ vi /sbin/ifup ¾ÍÖªµÀÕû¸ö ifup ¾ÍÊÇÀûÓà ip Õâ¸öÃüÁîÀ´ÊµÏֵġ£ÏÂÃæ½éÉÜÒ»ÏÂʹÓ÷½·¨
[root@linux ~]# ip [option] [¶¯×÷] [ÃüÁî]
²ÎÊý£º
option £ºÉ趨µÄ²ÎÊý£¬Ö÷ÒªÓУº
   ......

³¹µ×½â¾ölinuxÏ GB2312 ÏÔʾ´íÎóÎÊÌâ

´ò¿ª /etc/sysconfig/i18n
ÊäÈë
LANG="zh_CN.GB2312"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
ºÃÁË ......

Linux²Ù×÷ϵͳµÄConfigure²ÎÊý½âÊÍ˵Ã÷

Linux»·¾³ÏµÄÈí¼þ°²×°£¬²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇ飻Èç¹ûͨ¹ýÔ´´úÂë±àÒëºóÔÚ°²×°£¬µ±È»ÊÂÇé¾Í¸üΪ¸´ÔÓһЩ£»ÏÖÔÚ°²×°¸÷ÖÖÈí¼þµÄ½Ì³Ì¶¼·Ç³£Æձ飻µ«Íò±ä²»ÀëÆäÖУ¬¶Ô»ù´¡ÖªÊ¶µÄÔúʵÕÆÎÕ£¬°²×°¸÷ÖÖÈí¼þµÄÎÊÌâ¾ÍÓ­Èжø½âÁË¡£Configure½Å±¾ÅäÖù¤¾ß¾ÍÊÇ»ù´¡Ö®Ò»£¬ËüÊÇautoconfµÄ¹¤¾ßµÄ»ù±¾Ó¦Óá£
ÓëһЩ¼¼ÇÉÏà±È£¬ConfigureÏԵûù´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ