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

LinuxϵÄCPUÀûÓÃÂʼÆËãÔ­ÀíÏê½â

   ÎÒÃÇÔÚ¸ãÐÔÄܲâÊÔµÄʱºò£¬¶Ôºǫ́·þÎñÆ÷µÄCPUÀûÓÃÂʼà¿ØÊÇÒ»¸ö³£ÓõÄÊֶΡ£·þÎñÆ÷µÄCPUÀûÓÃÂʸߣ¬Ôò±íÃ÷·þÎñÆ÷ºÜ·±Ã¦¡£Èç¹ûǰ̨ÏìӦʱ¼äÔ½À´Ô½´ó£¬¶øºǫ́CPUÀûÓÃÂÊʼÖÕÉϲ»È¥£¬ËµÃ÷ÔÚij¸öµØ·½ÓÐÆ¿¾±ÁË£¬ÏµÍ³ÐèÒªµ÷ÓÅ¡£Õâ¸öÊǼ´Ê¹²»¶®¼¼ÊõµÄÈ˶¼ÈÝÒ×Àí½âµÄÊÂÇé¡£
   ÉÏÃæÀí½â¶ÔÂð£¿ÎÒ¸öÈ˾õµÃ²»Ê®·Ö׼ȷ¡£Õâ¸öÒª¿´ºǫ́Äã²âÊԵĽø³ÌÊÇʲôÀàÐ͵ġ£Èç¹ûÊǼÆËãÃܼ¯Ð͵Ľø³Ì£¬µ±Ç°¶ËѹÁ¦Ô½À´Ô½´óµÄʱºò£¬ºÜÈÝÒ×°ÑCPUÀûÓÃÂÊ´òÉÏÈ¥¡£µ«ÊÇÈç¹ûÊÇI/OÍøÂçÃܼ¯Ð͵Ľø³Ì£¬¼´Ê¹¿Í»§¶ËµÄÇëÇóÔ½À´Ô½¶à£¬µ«ÊÇ·þÎñÆ÷CPU²»Ò»¶¨ÄÜÉÏÈ¥£¬Õâ¸öÊÇÄãÒª²âÊԵĽø³ÌµÄ×ÔÈ»ÊôÐÔ¾ö¶¨µÄ¡£±È½Ï³£¼ûµÄ¾ÍÊÇ£¬´óÎļþƵ·±¶ÁдµÄcpu¿ªÏúԶСÓÚСÎļþƵ·±¶ÁдµÄ¿ªÏú¡£ÒòΪÔÚI/OÍÌÍÂÁ¿Ò»¶¨Ê±£¬Ð¡ÎļþµÄ¶Áд¸ü¼ÓƵ·±£¬ÐèÒª¸ü¶àµÄcpuÀ´´¦ÀíI/OµÄÖжϡ£
   ÔÚLinux/UnixÏ£¬CPUÀûÓÃÂÊ·ÖΪÓû§Ì¬£¬ÏµÍ³Ì¬ºÍ¿ÕÏÐ̬£¬·Ö±ð±íʾCPU´¦ÓÚÓû§Ì¬Ö´ÐеÄʱ¼ä£¬ÏµÍ³ÄÚºËÖ´ÐеÄʱ¼ä£¬ºÍ¿ÕÏÐϵͳ½ø³ÌÖ´ÐеÄʱ¼ä¡£Æ½Ê±Ëù˵µÄCPUÀûÓÃÂÊÊÇÖ¸£ºCPUÖ´ÐзÇϵͳ¿ÕÏнø³ÌµÄʱ¼ä / CPU×ܵÄÖ´ÐÐʱ¼ä¡£
   ÔÚLinuxµÄÄÚºËÖУ¬ÓÐÒ»¸öÈ«¾Ö±äÁ¿£ºJiffies¡£ Jiffies´ú±íʱ¼ä¡£ËüµÄµ¥Î»ËæÓ²¼þƽ̨µÄ²»Í¬¶ø²»Í¬¡£ÏµÍ³ÀﶨÒåÁËÒ»¸ö³£ÊýHZ£¬´ú±íÿÃëÖÖ×îСʱ¼ä¼ä¸ôµÄÊýÄ¿¡£ÕâÑùjiffiesµÄµ¥Î»¾ÍÊÇ1/HZ¡£Intelƽ̨jiffiesµÄµ¥Î»ÊÇ1/100Ã룬Õâ¾ÍÊÇϵͳËùÄÜ·Ö±æµÄ×îСʱ¼ä¼ä¸ôÁË¡£Ã¿¸öCPUʱ¼äƬ£¬Jiffies¶¼Òª¼Ó1¡£ CPUµÄÀûÓÃÂʾÍÊÇÓÃÖ´ÐÐÓû§Ì¬+ϵͳ̬µÄJiffies³ýÒÔ×ܵÄJifffiesÀ´±íʾ¡£
   ÔÚLinuxϵͳÖУ¬¿ÉÒÔÓÃ/proc/statÎļþÀ´¼ÆËãcpuµÄÀûÓÃÂÊ(ÏêϸµÄ½âÊͿɲο¼£ºhttp://www.linuxhowtos.org/System/procstat.htm)¡£Õâ¸öÎļþ°üº¬ÁËËùÓÐCPU»î¶¯µÄÐÅÏ¢£¬¸ÃÎļþÖеÄËùÓÐÖµ¶¼ÊÇ´ÓϵͳÆô¶¯¿ªÊ¼ÀۼƵ½µ±Ç°Ê±¿Ì¡£
È磺
[sailorhzr@builder ~]$ cat /proc/stat  cpu 432661 13295 86656 422145968 171474 233 5346 cpu0 123075 2462 23494 105543694 16586 0 4615 cpu1 111917 4124 23858 105503820 69697 123 371 cpu2 103164 3554 21530 105521167 64032 106 334 cpu3 94504 3153 17772 105577285 21158 4 24 intr 1065711094 


Ïà¹ØÎĵµ£º

linuxϲ鿴Ïß³Ì

ps ax ÃüÁîÏÔʾһ¸öµ±Ç°ÏµÍ³½ø³ÌµÄÁÐ±í£¬¸ÃÁбíÖаüÀ¨ÆäËûÓû§ÓµÓеĽø³Ì¡£ÒªÏÔʾ½ø³ÌÒÔ¼°ËüÃǵÄËùÓÐÕߣ¬Ê¹Óà ps aux ÃüÁî¡£¸ÃÁбíÊÇÒ»¸ö¾²Ì¬ÁÐ±í£»»»Ò»¾ä»°Ëµ£¬ËüÊÇÔÚÄãÆôÓÃÕâÏîÃüÁîʱÕýÔÚÔËÐеĽø³ÌµÄ¿ìÕÕ¡£Èç¹ûÄãÐèÒªÒ»¸öʱ¿Ì¸üеÄÔËÐнø³ÌÁÐ±í£¬Ê¹ÓÃÏÂÃæÃèÊöµÄ top ÃüÁî¡£
ps µÄÊä³ö»áºÜ³¤¡£Òª·ÀÖ¹Ëü¿ìËÙ´ÓÆÁÄ»Öл¬¹ ......

ÔÚLinuxÏ£¬°²×°Mysql£¨tar£©

# cd /home/tmp (½øÈëѹËõ°üËùÔÚĿ¼)
# groupadd mysql (½¨Á¢mysql×é)
# useradd -g mysql mysql (ÔÚmysql×éÖн¨Á¢mysqlÓû§)
# tar -zxvf mysql-5.0.37.tar.gz (½âѹmysqlÔ´Âë,bz2ѹËõ°üÇëÓÓtar -jvxf ÎļþÃû”Ö¸Áî)
# cd mysql-5.0.37 (½øÈë½âѹĿ¼)
# ./configure --prefix=/usr/local/mysql (p ......

LinuxÎļþϵͳ¼ò½é


         Ëæ×Å
LinuxµÄ²»¶Ï·¢Õ¹£¬Ô½À´Ô½¶àµÄÈË¿ªÊ¼Ê¹ÓÃLinux£¬¶ÔÓÚÄÇЩ¸Õ¸Õ½Ó´¥µÄÈËÀ´Ëµ£¬¿ÖÅÂ×îÏȸе½À§»óµÄ¾ÍÊÇÄÇЩ“²»Ã÷²»°×”µÄĿ¼ÁË¡£Èç¹ûÏëÊìÁ·Ê¹ÓÃ
Linux£¬ÈÃLinuxÌýÃüÓÚ×Ô¼º£¬¾Í±ØÐëÕÆÎÕÕâЩĿ¼£¬ÏÂÃæ¾ÍÒÔXteam¹«Ë¾µÄ×îвúÆ·——XteamLinux
......

linuxÄÚºËÑ¡Ïî½âÊÍ

ÔÚ±àÒëÒÆÖ²LinuxÄں˹ý³ÌÖУ¬ÄÚºËÑ¡ÏîÅäÖÃÊǺܳ£¼ûµÄ²Ù×÷¡£±¾ÎÄ·ÖÎöÁ˳£¼ûÑ¡ÏîµÄ¾ßÌ庬Ò壬´ÓÕâÀ↑ʼ½øÈëÄÚºËÍêÈ«ÅäÖÃÑ¡Ï
 
1 code maturity level options£¨´úÂë³ÉÊì¶ÈÑ¡Ï
1.1 Prompt for development and/or incomplete code/drivers
  ÏÔʾÉÐÔÚ¿ª·¢ÖлòÉÐδÍê³ÉµÄ´úÂëÓëÇý¶¯¡£Ä¬ÈÏÇé¿öÏÂÊÇÑ¡Ôñ ......

LinuxÏ°²×°CVS·þÎñÆ÷

£¨±¾ÎÄÕÂÖ÷ÒªÊǸöÈËÈÝÒ×ÕÒ×ÊÁ϶øתµÄ£¬±¾ÎÄÀ´´Ë     http://hackang.javaeye.com/blog/234000£©
Ò»¡¢Ê×ÏȲ鿴ÓÐûÓа²×°cvs
rpm -qa|grep cvs
Èç¹ûûÓа²×°£¬È¥downÒ»¸örpm°ü°²×°Ò»°Ñ   rpm -i cvs-1.11.22-5.el5.i386.rpm
¶þ¡¢Ìí¼Ócvs×éºÍÓû§
groupadd cvs
useradd -g cvs -s / ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ