¼àÊÓLinuxϵͳ¸ºÔØ×´¿öµÄ¼¸¸ö¹¤¾ß
1. vmstat
Õâ¸ö¹¤¾ß¿ÉÒÔÈÃÄãÁ˽⵽ϵͳ×ÊÔ´µ±Ç°µÄ¸ºÔØÂÊ£¬°üÀ¨CPU£¬Äڴ棬swap¿Õ¼ä£¬ioµÈµÈ¡£
»ù±¾Ó÷¨
$ vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 0 0 1171428 65072 531108 0 0 1 5 100 10 0 0 100 0
0 0 0 1171428 65072 531108 0 0 0 14 1010 105 0 0 100 0
0 0 0 1171428 65072 531108 0 0 0 4 1008 105 0 0 100 0
0 0 0 1171428 65072 531108 0 0 0 6 1008 104 0 0 100 0
´ÓÃüÁîµÄ½á¹û¿ÉÒÔ¿´µ½ÏµÍ³Æ¿¾±¡£
si/soµÄÖµºÜ¸ß±íÃ÷ϵͳµÄÄÚ´æ´æÔÚһЩÎÊÌ⣬ÕýÔÚ²»¶ÏµÄ½øÐÐÒ³ÃæÇл»¡£
wa´ú±íµÄÊÇCPUµÄioµÈ´ý£¬Èç¹ûÕâ¸öÖµºÜ¸ß¾Í±íÃ÷ioÊÇÕû¸öϵͳµÄÆ¿¾±£¬ÒòΪ´ó²¿·ÖµÄCPUʱ¼äÔڵȴýIO¡£
2. sar
ʹÓÃvmstatÄܹ»µÃµ½µ±Ç°ÏµÍ³×ÊÔ´µÄʹÓÃ×´¿ö£¬µ±ÄãÐèÒªÁ˽â¹ýÈ¥µÄÒ»¶Îʱ¼äÄÚϵͳ×ÊÔ´µÄÇé¿öʱ£¬¾ÍÐèҪʹÓÃÁíÍâÒ»¸ö¹¤¾ß£º sar
»ù±¾Ó÷¨
ÏÔʾµ±Ììϵͳ
×´¿ö
$ sar
07:10:01 AM CPU %user %nice %system %iowait %idle
07:20:01 AM all 1.46 0.01 3.29 15.41
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâÆª·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´Ë×ªÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨ÕâÆª²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
Ò»°ãÔÚlinuxÏÂ²é¿´ÍøÂçÅäÖÿÉÒÔʹÓÃifconfigÃüÁ¿ÉÒÔÏÔʾµ±Ç°Íø¿¨µÄ»ù±¾ÅäÖÃÐÅÏ¢¡£
ÖÕ¶ËÊäÈëifconfig »á³öÏÖÒ»ÏÂÄÚÈÝ£º
eth0
Link encap:Ethernet HWaddr 00:0C:29:0C:4B:0F
inet addr:192.168.37.128 Bcast:192.168.37.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33 er ......
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) &nb ......