LinuxÐÔÄܲâÊÔ¹¤¾ß(ת)
Linuxϵͳ³öÏÖÎÊÌâʱ£¬ÎÒÃDz»½öÐèÒª²é¿´ÏµÍ³ÈÕÖ¾ÐÅÏ¢£¬¶øÇÒ»¹ÒªÊ¹ÓôóÁ¿µÄÐÔÄܼà²â¹¤¾ßÀ´ÅжϾ¿¾¹ÊÇÄÄÒ»²¿·Ö£¨ÄÚ´æ¡¢CPU¡¢Ó²ÅÌ……£©³öÁËÎÊÌâ¡£ÔÚLinuxϵͳÖУ¬ËùÓеÄÔËÐвÎÊý±£´æÔÚÐéÄâĿ¼/procÖУ¬»»¾ä»°Ëµ£¬ÎÒÃÇʹÓõÄÐÔÄܼà¿Ø¹¤¾ßÈ¡µ½µÄÊý¾Ýֵʵ¼ÊÉϾÍÊÇÔ´×ÔÓÚÕâ¸öĿ¼£¬µ±Éæ¼°µ½ÏµÍ³¸ß¹Àʱ£¬ÎÒÃǾͿÉÒÔÐÞ¸Ä/procĿ¼ÖеÄÏà¹Ø²ÎÊýÁË£¬µ±È»ÓÐЩÊDz»ÄÜÂҸĵġ£ÏÂÃæ¾ÍÈÃÎÒÃÇÁ˽âÒ»ÏÂÕâЩ³£ÓõÄÐÔÄܼà¿Ø¹¤¾ß¡£
¹¤¾ß
¹¦ÄÜÃèÊö
uptime
ϵͳƽ¾ù¸ºÔØÂÊ
dmesg
Ó²¼þ/ϵͳÐÅÏ¢
top
½ø³Ì½øÐÐ״̬
iostat
CPUºÍ´ÅÅÌƽ¾ùʹÓÃÂÊ
vmstat
ϵͳÔËÐÐ״̬
sar
ʵʱÊÕ¼¯ÏµÍ³Ê¹ÓÃ״̬
KDE System Guard
ͼÐμà¿Ø¹¤¾ß
free
ÄÚ´æʹÓÃÂÊ
traffic-vis
ÍøÂç¼à¿Ø£¨Ö»ÓÐSUSEÓУ©
pmap
½ø³ÌÄÚ´æÕ¼ÓÃÂÊ
strace
×·×Ù³ÌÐòÔËÐÐ״̬
ulimit
ϵͳ×ÊԴʹÓÃÏÞÖÆ
mpstat
¶à´¦ÀíÆ÷ʹÓÃÂÊ
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µÄÔËÐÐʵÀý£º
9:24am up 19:06, 1 user, load average: 0.00, 0.00, 0.00
Ò²¿ÉÒԲ鿴/proc/loadavgºÍ/proc/uptimeÁ½¸öÎļþ£¬×¢Òâ²»Äܱà¼/procÖеÄÎļþ£¬ÒªÓÃcatµÈÃüÁîÀ´²é¿´£¬È磺
liyawei:~ # cat /proc/loadavg
0.00 0.00 0.00 1/55 5505
2¡¢dmesg
dmesgÃüÁîÖ÷ÒªÓÃÀ´ÏÔʾÄÚºËÐÅÏ¢¡£Ê¹ÓÃdmesg¿ÉÒÔÓÐЧÕï¶Ï»úÆ÷Ó²¼þ¹ÊÕÏ»òÕßÌí¼ÓÓ²¼þ³öÏÖµÄÎÊÌâ¡£
ÁíÍ⣬ʹÓÃdmesg¿ÉÒÔÈ·¶¨ÄúµÄ·þÎñÆ÷°²×°ÁËÄÇЩӲ¼þ¡£Ã¿´ÎϵͳÖØÆô£¬ÏµÍ³¶¼»á¼ì²éËùÓÐÓ²¼þ²¢½«ÐÅÏ¢¼Ç¼ÏÂÀ´¡£Ö´ÐÐ/bin/dmesgÃüÁî¿ÉÒԲ鿴¸Ã¼Ç¼¡£
dmesgÊäÈëʵÀý£º
ReiserFS: hda6: checking transaction log (hda6)
ReiserFS: hda6: Using r5 hash to sort names
Adding 1044184k swap on /dev/hda5. Priority:-1 extents:1
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
³Âð© (CSDN)
¸ÅÊö
——
ʲôÊÇmakefile£¿»òÐíºÜ¶àWinodwsµÄ³ÌÐòÔ±¶¼²»ÖªµÀÕâ¸ö¶«Î÷£¬ÒòΪÄÇЩWindowsµÄIDE¶¼ÎªÄã×öÁËÕâ¸ö¹¤×÷£¬µ«ÎÒ¾õµÃÒª×÷Ò»¸öºÃµÄºÍprofessionalµÄ³ÌÐòÔ±£¬makefile»¹ÊÇÒª¶®¡£Õâ¾ÍºÃÏñÏÖÔÚÓÐÕâô¶àµÄHTMLµÄ±à¼Æ÷£¬µ«Èç¹ûÄãÏë³ÉΪһ¸öרҵÈËÊ¿£¬Ä㻹ÊÇÒªÁ˽âHTMLµÄ±êʶµÄº¬Òå¡£ÌرðÔÚ ......
Ê×ÏÈÉêÃ÷,ÎÒÊDzËÄñ.²Ëµ½Ê²Ã´³Ì¶È,´ó¼Ò¿´¿´ÏÂÃæµÄ´úÂë.
´úÂëÒªÇó:È¡µÃ1000´Îµ¥¶À´´½¨½ø³ÌµÄʱ¼ä.
[code:1:fdac913669]#include
#include
#include
#include
#include
strut timeval {
long tv_sec; /* ÃëÊý */
long tv_usec; /* ΢ÃëÊý  ......
ÓÃGCC¿ª·¢linuxÓ¦ÓóÌÐò£¨¾µä£©
2009Äê11ÔÂ01ÈÕ ÐÇÆÚÈÕ 23:58
×÷Ϊ×ÔÓÉÈí¼þµÄÆì½¢ÏîÄ¿£¬Richard Stallman ÔÚÊ®¶àÄêÇ°¸Õ¿ªÊ¼Ð´×÷ GCC µÄʱºò£¬»¹Ö»ÊÇ°ÑËüµ±×÷½ö½öÒ»¸ö C³ÌÐòÓïÑԵıàÒëÆ÷£»GCC µÄÒâ˼ҲֻÊÇ GNU C Compiler ¶øÒÑ¡£¾¹ýÁËÕâô¶àÄêµÄ·¢Õ¹£¬GCC ÒѾ²»½ö½öÄÜÖ§³Ö CÓïÑÔ£»ËüÏÖÔÚ»¹Ö§³Ö Ada ÓïÑÔ¡¢C++ ÓïÑÔ¡¢Ja ......