LinuxÎļþϵͳµÄ»º´æ»úÖÆ
LinuxÎļþϵͳÉè¼ÆÁËÈýÀàµÄCacheÒÔÓÃÀ´Ö§³Ö¶àÀàÐ͵ÄÎļþϵͳ¡£
Ò»¡¢ VFSË÷Òý½Úµã»º´æ Inode Cache
VFSË÷Òý½ÚµãÊÇÒ»¸öHash±í£¬Ëü²»¶ÏµØ¶ÁÈ¡¡£VFSÌṩµÄË÷Òý½Úµã»º´æ¿ÉÒÔ¼Ó¿ì¶ÔÎļþϵͳµÄ´æÈ¡¡£Ã¿´Î´ÓË÷Òý½Úµã»º´æÖжÁÈ¡Ò»¸öVFSË÷Òý½Úµã£¬ÕâÑùϵͳ¾Í¿ÉÒÔ½ÚÊ¡¶ÁÈ¡ÎïÀíÉ豸µÄ´æȡʱ¼ä¡£
µ±VFS·ÃÎÊË÷Òý½Úµãʱ£¬ËüÊ×ÏȲéÕÒVFSË÷Òý½Úµã»º´æ¡£ÎªÁËÔÚVFSË÷Òý½Úµã»º´æÖвéÕÒÒ»¸öË÷Òý½Úµã£¬ÏµÍ³Ê×ÏȼÆËãËü¶ÔÓ¦µÄ¹þÏ£Öµ£¬È»ºó½«Æä×÷ΪË÷ÒýÖµ½øÈëË÷Òý½Úµã¹þÏ£±í¡£È»ºóÔÙͨ¹ý¶ÁÈ¡Õâ¸öÓµÓÐÏàͬ¹þÏ£ÖµµÄË÷Òý½ÚµãÁ´±íÖð¸öÆ¥ÅäË÷Òý½Úµã£¬Ö±µ½ÕÒµ½¾ßÓÐÖ¸¶¨É豸ºÅºÍinodeºÅµÄË÷Òý½Úµã¡£Èç¹û´Ó»º´æÖÐÕÒµ½ÁËË÷Òý½Úµã£¬¸ÃË÷Òý½ÚµãµÄ¼ÆÊýÖµ¼Ó1¡£·ñÔòÉêÇëÒ»¿ÕÏеÄË÷Òý½Úµã¡£
¶þ¡¢ Ŀ¼»º´æ Inode Directory Cache
ΪÁ˼ӿì¶Ô³£ÓõÄĿ¼µÄ´æÈ¡£¬ÓÉÓÚÊǸù¾Ý·¾¶·ÃÎÊÎļþµÄ£¬Linuxά»¤Á˱í´ï·¾¶ÓëË÷Òý½Úµã¶ÔÓ¦¹ØϵµÄĿ¼»º´æ£¬±»ÎļþϵͳʹÓùýµÄĿ¼½«»á´æÈëµ½¸ÃĿ¼»º´æÖС£ÕâÑù£¬Í¬Ò»Ä¿Â¼±»ÔٴηÃÎÊʱ£¬¿ÉÖ±½Ó´Ó»º³åÇøµÃµ½£¬²»±ØÖظ´·ÃÎÊ´æ´¢ÎļþϵͳµÄÉ豸¡£
µ±ÕæʵµÄÎļþϵͳ¶ÁÈ¡Ò»¸öĿ¼ʱ£¬Ä¿Â¼µÄÏêϸÐÅÏ¢±»Ìí¼Óµ½Ä¿Â¼»º´æÖС£ÕâÑù£¬Í¬Ò»Ä¿Â¼±»ÔٴηÃÎÊʱ£¬¿ÉÖ±½Ó´Ó»º³åÇøÕÒµ½´ËĿ¼µÄÓйØÐÅÏ¢¡£Ö»ÓжÌÓÚ15¸ö×Ö·ûµÄĿ¼²ÅÄܱ£´æÔÚĿ¼»º´æÖС£
Ŀ¼»º´æÓÉÒ»ÕŹþÏ£±í×é³É£¬ÆäÖÐÿ¸ö±íÏîÖ¸Ïò¾ßÓÐͬÑù¹þÏ£ÖµµÄĿ¼»º´æÁ´±íµÄÒ»¸öÖ¸Õ룬¹þÏ£º¯ÊýʹÓÃÎļþϵͳµÄÉ豸ºÅºÍĿ¼ÃûÀ´¼ÆËã¹þÏ£Öµ£¬ÒÔ±ã¿ìËÙµØÕÒµ½Ò»¸öĿ¼ÏΪÁ˱£³ÖÒ»¸ö×îеġ¢ÕýÈ·µÄ»º³å£¬VFSʹÓûùÓÚLRU£¨Least Recently Used£©Ëã·¨µÄĿ¼»º³åÁ´±í¡£
Èý¡¢ »º³åÇø»º´æ Buffer Cache
µ±½ø³ÌʹÓð²×°µÄÎļþϵͳʱ£¬ËüÃDzúÉúºÜ¶à¶Ô¿éÉ豸Êý¾Ý¿éµÄ¶ÁдÇëÇó£¬ÈçÏÂͼËùʾ¡£ÕâЩ¿é¶ÁдÇëÇó»áͨ¹ý±ê×¼ºËÐĹý³ÌÒÔBuffer_headÊý¾Ý½á¹¹µÄÐÎʽ¸ø³öÉ豸Çý¶¯³ÌÐòÐèÒªµÄ¼¸ºõÈ«²¿ÐÅÏ¢¡£²Ù×÷ϵͳ½«É豸¿éÉϵÄÊý¾Ý¿´×÷¾ßÓÐͬÑù´óСµÄÊý¾Ý¿éµÄÏßÐÔÁÐ±í¡£Buffer_headÖеÄb_devºÍb_blocknrÊôÐÔֵΩһָÃ÷ÁËÏòʲôÉ豸¶ÁдµÚ¼¸¸öÊý¾Ý¿é¡£
£¨»º³åÇø»º´æ½á¹¹£©¼û×îÏ·½µÄͼ
ΪÁ˼ӿìÎïÀí¿éÉ豸µÄ´æÈ¡£¬Linuxά»¤Ò»×é¿é»º³åÇøµÄ»º´æ£¬³Æ×÷Buffer Cache¡£Ëü±»ËùÓÐÎïÀí¿éÉ豸Ëù¹²Ïí¡£ÔÚÈÎһʱ¿Ì£¬ÓÉÈô¸É»º³åÇøΪÈô¸ÉÉ豸¹¤×÷¡£Êý¾Ý¿éÒ»¾Ê¹Ó㬾ͻáÔÚBuffer CacheÁôϱ¸·Ý£¬¶
Ïà¹ØÎĵµ£º
fg¡¢bg¡¢jobs¡¢&¡¢ctrl + z¶¼ÊǸúϵͳÈÎÎñÓйصģ¬ËäÈ»ÏÖÔÚ»ù±¾Éϲ»ÔõôÐèÒªÓõ½ÕâЩÃüÁµ«Ñ§»áÁËÒ²ÊǺÜʵÓõÄ
Ò»¡£& ×î¾³£±»Óõ½
Õâ¸öÓÃÔÚÒ»¸öÃüÁîµÄ×îºó£¬¿ÉÒÔ°ÑÕâ¸öÃüÁî·Åµ½ºǫִ́ÐÐ
¶þ¡£ctrl + z
¿ÉÒÔ½«Ò»¸öÕýÔÚǰִ̨ÐеÄÃüÁî·Åµ½ºǫ́£¬²¢ÇÒÔÝÍ£
Èý¡£jobs
& ......
Ëæ×ÅLinuxµÄÆÕ¼°£¬ÈçºÎÔÚLinuxƽ̨ϽøÐбà³Ì£¬ÓÈÆäÊÇ»ã±à³ÉΪ´ó¼Ò¹Ø×¢µÄÒ»¸öÎÊÌ⣬µ«ÊÇÕâ·½Ãæ×ÊÁÏÈ´ºÜÉÙ¡£ÔÚ±é·ÃÍøÕ¾ºÍÂÛ̳ºó£¬ÎÒ°ÑÊÕ¼¯µ½µÄ×ÊÁϽáºÏ±¾ÈË×ܽáµÄһЩ¾Ñé¸ú´ó¼Ò·ÖÏíһϡ£
Nasm½éÉÜ
LinuxϵĻã±à±àÒëÆ÷ÓжàÖÖ£¬Óï·¨Ò²²»¾¡Ïàͬ£¬ÆäÖÐGASÊDZȽϻù±¾µÄ»ã±à¹¤¾ß¡£µ«ÊÇGAS²ÉÓõIJ»ÊÇÎÒÃÇͨ³£ÔÚDOSÌåϵÏÂʹÓà ......
¡¡¡¡REDHAT
´´½¨ÓÚ1993Ä꣬ÊÇ
Ä¿ÊÀ½çÉÏ×î×ÊÉîµÄLinuxºÍ¿ª·ÅÔ´´úÂëÌṩÉÌ£¬Í¬Ê±Ò²ÊÇ×î»ñÈϿɵÄLinux
Æ·ÅÆ¡£»ùÓÚ¿ª·ÅÔ´´úÂëģʽ£¬ºìñΪȫÇòÆóÒµÌṩרҵ¼¼ÊõºÍ·þÎñ¡£ºìñµÄ½â¾ö
·½°¸°üÀ¨ºìñÆóÒµLinux²Ù×÷ƽ̨£¬ÒÔ¼°ÆäËûÄÚÈݹ㷺µÄ·þÎñ£¬Èç:×Éѯ£¬24X7¼¼ÊõÖ§³ÖºÍºìñÍøÂç(RHN)¡£ºìñÒÔ¶©ÔĵÄÉÌҵģʽÏòÓû§Ìṩ²»¼ä¶Ï
µ ......
Linux °²×°ÖÐÎÄ°ü
Ê×ÏÈ£¬°²×°ÖÐÎÄ°ü£º
#yum groupinstall chinese-support
Æä´Î£¬ÐÞ¸ÄÒ»ÏÂ×Ö·û±àÂëµÄÅäÖá£
# vi /etc/sysconfig/i18n
Ð޸ĺóÄÚÈÝÈçÏ£º
LANG="zh_CN.GB18030"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en:zh_CN.GB18030"
SYSFONT="latarcyrheb-sun16"
×îºóÖØÆô·þ ......
ÔÚ
linux
ϵͳÖУ¬
TCP/IP
ÍøÂçÊÇͨ¹ýÈô¸É¸öÎı¾Îļþ½øÐÐÅäÖõģ¬ÐèÒª±à¼ÕâЩÎļþÀ´Íê³ÉÁªÍø¹¤×÷¡£ÏµÍ³ÖÐÖØÒªµÄÓйØÍøÂçÅäÖÃÎļþΪ£º
¡ô
/etc/sysconfig/network
¡ô
/etc/HOSTNAME
¡ô
/etc/hosts
¡ô
/etc/services
¡ô
/etc/host.conf
¡ô
/etc/nsswitch.conf
¡ô
/etc/resolv.conf
¡ô
/etc/r ......