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 (ÓÅÏȼ¶µÍ)
Ïà¹ØÎĵµ£º
±¾ÎÄÍøÖ·:http://bbs.bitscn.com/72875 ¸´ÖÆ
1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·ÅÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
¡¡ ·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐÐ ......
×¼±¸¹¤×÷£º
1.Xming£¨windowsÔËÐÐx-windowsµÄÖ§³Ö£©
2.SecureCRTV6.5.8.380ºº»¯ÂÌÉ«Æƽâ°æ
¿ÉÒÔÈ¥ÎÒµÄhttp://download.csdn.net/johnvikeyÏÂÔØ
Èç¹ûÊÇÃüÁîÐÐÖ±½ÓÓÃ
SecureCRT
Èç¹ûÊÇÒªÔËÐÐͼÐγÌÐò
1.Xming£¨windowsÔËÐÐx-windowsµÄÖ§³Ö£©
2.SecureCRTV6.5.8.380ºº»¯ÂÌÉ«Æƽâ°æ
¶¼ÒªÊ¹ÓÃ
———&m ......
Ò»¡¢É豸Îļþ
¡¡¡¡LinuxϵÄ/dev Ŀ¼ÖÐÓдóÁ¿µÄÉ豸Îļþ¡£Ö÷ÒªÊÇ¿éÉ豸ÎļþºÍ×Ö·ûÉ豸Îļþ¡£¡¡¡¡¿éÉ豸Îļþ¡¡¡¡ÔÚ¹ýÈ¥£¬ÔÚÌí¼ÓдÅÅ̺ó£¬ÍùÍùÐèÒªÊÖ¶¯Ôö¼Ó¿éÉ豸Îļþ¡£ÏÖÔÚͨ³£ÎÒÃDz»ÐèÒªÊÖ¶¯Ôö¼Ó¿éÉ豸Îļþ£¬ÔËÐÐÒ»ÏÂservice kudzu start £¬ÏµÍ³¾Í»á×Ô¶¯ÎªÄúÅäÖÃÏàÓ¦µÄÉ豸¡£¿éÉ豸µÄÖ÷ÒªÌصãÊÇ¿ÉÒÔËæ»ú¶Áд£¬¶ø×î³£¼ûµ ......
ÔÎÄÁ´½Ó£ºhttp://bbs.linuxtone.org/thread-1986-1-1.html ITÔËάר¼ÒÍø--"×ÔÓÉƽµÈ£¬»¥Öú·ÖÏí£¡"
ÉÏÃæÒýÓÃÁËIBMºìƤÊé½éÉܵĹØÓÚLinuxÐÔÄÜÐèÒª¿¼ÂǵÄÄÚÈÝ¡£½ñÌì¼ÌÐø½ØÑ¡ºÍÐÞ¸ÄÎĵµÖйØÓÚ¼ì²â²¿·ÖµÄ½éÉÜ£¬µ«Õⲿ·Ö²»ÊǺÜÏêϸ£¬½ñºóÓÐʱ¼äÎÒ»áÔÙ²¹³äһЩ²Î¿¼×ÊÁÏ¡£
¡ù×¢£ºÏÂÃ渽ͼµÄÃüÁîÊä³öÐÅÏ¢£¬ÒÔºìÆìDC Server 5.0 fo ......