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

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Áôϱ¸·Ý£¬¶


Ïà¹ØÎĵµ£º

linux²¶»ñKILLÃüÁîµÄÐźÅ

linuxÖÐÒ»¹²ÓÐ32ÖÖÐźţ¬ÔÚ/usr/include/bits/signum.h Í·ÎļþÖпÉÒÔ¿´µ½
#define    SIGHUP        1    /* Hangup (POSIX).  */
#define    SIGINT        2    /* Interrupt (ANSI).& ......

¿ØÖÆÎļþµÄ±¸·Ý¼°»Ö¸´£¨linuxϺÍXPϲ½ÖèÊÇÒ»ÑùµÄ£©

±¸·Ý¿ØÖÆÎļþ°üÀ¨ÈýÖÖ·½·¨£º
(1)ͨ¹ý²Ù×÷ϵͳÃüÁîÔÚÊý¾Ý¿â¹Ø±Õʱ¶Ô¿ØÖÆÎļþ½øÐÐCOPY£»
(2)ÀûÓÃALTER DATABASE BACKUP CONTROLFILE TOÃüÁ¿ØÖÆÎļþ±¸·Ýµ½¶þ½øÖÆÎļþ£»
SQL> alter database backup controlfile to 'E:\oracle\product\10.2.0\orcl\controlfile01.bak';
Êý¾Ý¿âÒѸü¸Ä¡£
(3)ÀûÓÃALTER DATABASE BACKU ......

linux 1ºÅ½ø³Ì

1ºÅ½ø³Ì£¬pidΪ1µÄ½ø³Ì£¬ÓÖ³Æinit½ø³Ì¡£
¡¡¡¡linuxϵͳÆô¶¯ºó£¬µÚÒ»¸ö±»´´½¨µÄÓû§Ì¬½ø³Ì¾ÍÊÇinit½ø³Ì¡£ËüÓÐÁ½ÏîʹÃü£º
¡¡¡¡1¡¢Ö´ÐÐϵͳ³õʼ»¯½Å±¾£¬´´½¨Ò»ÏµÁеĽø³Ì(ËüÃǶ¼ÊÇinit½ø³ÌµÄ×ÓËï);
¡¡¡¡2¡¢ÔÚÒ»¸öËÀÑ­»·ÖеȴýÆä×Ó½ø³ÌµÄÍ˳öʼþ£¬²¢µ÷ÓÃwaitidϵͳµ÷ÓÃÀ´Íê³É“ÊÕʬ”¹¤×÷;
¡¡¡¡init½ø³Ì²»»á±»ÔÝ ......

linux shell ½Å±¾ÈëÃÅ


1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·½ÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐиÃÎļþµÄ³ÌÐò¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓÃ/bin/shÀ´Ö´ÐгÌÐò¡£
µ±±à¼­ºÃ½Å±¾Ê±£¬Èç¹ûÒªÖ´Ðиýű¾£¬»¹±ØÐëʹÆä¿ÉÖ´ÐС£
Ҫʹ½Å±¾¿ÉÖ´ÐУº
±àÒë chmod +x ......

LINUXÍøÂçÅäÖÃÎļþ


ÔÚ
linux
ϵͳÖУ¬
TCP/IP
ÍøÂçÊÇͨ¹ýÈô¸É¸öÎı¾Îļþ½øÐÐÅäÖõģ¬ÐèÒª±à¼­ÕâЩÎļþÀ´Íê³ÉÁªÍø¹¤×÷¡£ÏµÍ³ÖÐÖØÒªµÄÓйØÍøÂçÅäÖÃÎļþΪ£º
 
¡ô
/etc/sysconfig/network
¡ô
/etc/HOSTNAME
¡ô
/etc/hosts
¡ô
/etc/services
¡ô
/etc/host.conf
¡ô
/etc/nsswitch.conf
¡ô
/etc/resolv.conf
¡ô
/etc/r ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ