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

Linux ÐÔÄܼà²â¹¤¾ß¼°µ÷ÓŽéÉÜ

Linux ÐÔÄܼà²â¹¤¾ß¼°µ÷ÓŽéÉÜ
LINUXϵͳÏ£¬´ó¶àÊýµÄÐÔÄܼà²â¹¤¾ß±£´æÔÚ/procĿ¼Ï¡£ÕâÀïÎÒÃǽ«Linux AS ºÍ SUSE LINUX EnterpriseServerÖУ¬ÃüÁîÐм°Í¼Ðη½Ê½ÏµÄÐÔÄܼà²â¹¤¾ß×ö¸ÅÀ¨ÐÔ½éÉÜ¡£ÕâЩ¹¤¾ßÓÐЩÔÚϵͳ¹¤¾ßÅÌÀÓÐЩ¿ÉÒÔ´ÓÍøÉÏÏÂÔØ¡£sar,iostat,ºÍpstatÕâÈý¸ö¹¤¾ßÔÚdistributionCDÀҲ¿ÉÒÔ´ÓÍøÉÏÏÂÔØ£¬ÍøÖ·ÊÇhttp://perso.wanadoo.fr/sebastien.godard/¡£
±í--Linux ÐÔÄܼà²â¹¤¾ß
ÕâЩ¹¤¾ßÌṩÁËIBM Director Capacity ManagerÖ®ÍâµÄһЩ¹¦ÄÜ£¬Äܹ»ÔÚij¸öʱ¼ä¶ÎÄÚ¶ÔϵͳÐÔÄܽøÐмà²â¡£IBM DirectorÊÊÓÃÓÚ¶àÖÖ²Ù×÷ϵͳƽ̨£¬´Ó¶øʹµÃÒì¹¹»·¾³ÏÂÊý¾ÝµÄÊÕ¼¯ºÍ·ÖÎö¸üÈÝÒס£ÏÂÃæ·ÖÈý²¿·ÖÖð¸ö½éÉÜÿ¸öÃüÁî¡£
1¡¢uptime
uptimeÃüÁîÓÃÓڲ鿴·þÎñÆ÷ÔËÐÐÁ˶೤ʱ¼äÒÔ¼°ÓжàÉÙ¸öÓû§µÇ¼£¬¿ìËÙ»ñÖª·þÎñÆ÷µÄ¸ººÉÇé¿ö¡£
uptimeµÄÊä³ö°üº¬Ò»ÏîÄÚÈÝÊÇload average£¬ÏÔʾÁË×î½ü1-£¬5-£¬15·ÖÖӵĸººÉÇé¿ö¡£ËüµÄÖµ´ú±íµÈ´ýCPU´¦ÀíµÄ½ø³ÌÊý£¬Èç¹ûCPUûÓÐʱ¼ä´¦ÀíÕâЩ½ø³Ì£¬load averageÖµ»áÉý¸ß£»·´Ö®Ôò»á½µµÍ¡£
load averageµÄ×î¼ÑÖµÊÇ1£¬ËµÃ÷ÿ¸ö½ø³Ì¶¼¿ÉÒÔÂíÉÏ´¦Àí²¢ÇÒûÓÐCPU cycles±»¶ªÊ§¡£¶ÔÓÚµ¥CPUµÄ»úÆ÷£¬1»òÕß2ÊÇ¿ÉÒÔ½ÓÊܵÄÖµ£»¶ÔÓÚ¶à·CPUµÄ»úÆ÷£¬load averageÖµ¿ÉÄÜÔÚ8µ½10Ö®¼ä¡£
Ò²¿ÉÒÔʹÓÃuptimeÃüÁîÀ´ÅжÏÍøÂçÐÔÄÜ¡£ÀýÈ磬ij¸öÍøÂçÓ¦ÓÃÐÔÄܺܵͣ¬Í¨¹ýÔËÐÐuptime²é¿´·þÎñÆ÷µÄ¸ººÉÊÇ·ñºÜ¸ß£¬Èç¹û²»ÊÇ£¬ÄÇôÎÊÌâÓ¦¸ÃÊÇÍøÂç·½ÃæÔì³ÉµÄ¡£
ϱßÊÇuptimeµÄÊä³öÑùʽ
2¡¢dmesg
dmesgÃüÁîÖ÷ÒªÓÃÀ´ÏÔʾÄÚºËÐÅÏ¢¡£Ê¹ÓÃdmesg¿ÉÒÔÓÐЧÕï¶Ï»úÆ÷Ó²¼þ¹ÊÕÏ»òÕßÌí¼ÓÓ²¼þ³öÏÖµÄÎÊÌâ¡£
ÁíÍ⣬ʹÓÃdmesg¿ÉÒÔÈ·¶¨ÄúµÄ·þÎñÆ÷°²×°ÁËÄÇЩӲ¼þ¡£Ã¿´ÎϵͳÖØÆô£¬ÏµÍ³¶¼»á¼ì²éËùÓÐÓ²¼þ²¢½«ÐÅÏ¢¼Ç¼ÏÂÀ´¡£Ö´ÐÐ/bin/dmesgÃüÁî¿ÉÒԲ鿴¸Ã¼Ç¼¡£
ϱßÊÇdmesgµÄÊä³öÑùʽ
3¡¢top
topÃüÁîÏÔʾ´¦ÀíÆ÷µÄ»î¶¯×´¿ö¡£È±Ê¡Çé¿öÏ£¬ÏÔʾռÓÃCPU×î¶àµÄÈÎÎñ£¬²¢ÇÒÿ¸ô5ÃëÖÓ×öÒ»´ÎˢС£
3.1 Process priority and nice levels
Process priorityµÄÊýÖµ¾ö¶¨ÁËCPU´¦Àí½ø³ÌµÄ˳Ðò¡£LIUNXÄں˻á¸ù¾ÝÐèÒªµ÷Õû¸ÃÊýÖµµÄ´óС¡£nicevalue¾ÖÏÞÓÚpriority¡£priorityµÄÖµ²»ÄܵÍÓÚnice value£¨nicevalueÖµÔ½µÍ£¬ÓÅÏȼ¶Ô½¸ß£©¡£Äú²»¿ÉÒÔÖ±½ÓÐÞ¸ÄProcess priorityµÄÖµ£¬µ«ÊÇ¿ÉÒÔͨ¹ýµ÷ÕûnicelevelÖµÀ´¼ä½ÓµØ¸Ä±äProcess priorityÖµ£¬È»¶øÕâÒ»·½·¨²¢²»ÊÇËùÓÐʱºò¶¼¿ÉÓá£Èç¹ûij¸ö½ø³ÌÔËÐÐÒì³£µÄÂý£¬¿ÉÒÔͨ¹ý½µµÍnicelevelΪ¸Ã½ø³Ì·ÖÅä¸ü¶àµÄCPU¡£
Linux Ö§³ÖµÄ nice levels ÓÉ19 (ÓÅÏȼ¶µÍ)


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

linux¸ùÎļþϵͳÓëinitrd£¨×ª£©


1
¸ùÎļþϵͳ
¼òµ¥À´Ëµ£¬£¨¸ùÎļþϵͳ£©¾ÍÊÇϵͳµÚÒ»¸ö
mount
µÄÎļþϵͳ

Filesystem
Handling
Like
every  
traditional  
Unix  
system,  

Linux  
makes  
use  
of  

a  
system ......

LinuxÎļþϵͳµÄ»º´æ»úÖÆ

LinuxÎļþϵͳÉè¼ÆÁËÈýÀàµÄCacheÒÔÓÃÀ´Ö§³Ö¶àÀàÐ͵ÄÎļþϵͳ¡£
Ò»¡¢        VFSË÷Òý½Úµã»º´æ Inode Cache
VFSË÷Òý½ÚµãÊÇÒ»¸öHash±í£¬Ëü²»¶ÏµØ¶ÁÈ¡¡£VFSÌṩµÄË÷Òý½Úµã»º´æ¿ÉÒÔ¼Ó¿ì¶ÔÎļþϵͳµÄ´æÈ¡¡£Ã¿´Î´ÓË÷Òý½Úµã»º´æÖжÁÈ¡Ò»¸öVFSË÷Òý½Úµã£¬ÕâÑùϵͳ¾Í¿ÉÒÔ½ÚÊ¡¶ÁÈ¡ÎïÀíÉ豸µÄ´æÈ¡Ê ......

LinuxÎļþÀàÐ͵ÄÅжÏ

LinuxÏ¿ÉÒÔÓÃls –l ÃüÁîÀ´ÅжÏÎļþÀàÐÍ£¬ÈçÉÏ Í¼Ëùʾ¡£¿ÉÒÔÒÀ¾ÝµÚÒ»ÁÐÖеÄ10¸ö×Ö·ûÀ´Åжϡ£
¡¡¡¡• -rw-r—r—Ö¸Ã÷ÁË1.txtÎļþÊÇÒ»¸öÆÕͨÎļþ£¬1.txtºÍmyprog04Îļþ¶¼ÊÇÆÕͨÎļþ¡£ÒÔ”-“¿ªÍ·µÄ¶¼ÊÇÆÕͨÎļþ£¬¶øÒÔ”d”¿ªÍ·µÄÊÇĿ¼Îļþ¡£
¡¡¡¡• brw-rw---- Ö¸Ã÷ÁË/dev/sd ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ