Linux²Ù×÷ϵͳϹØÓÚTopÃüÁîµÄ²ÎÊýÏê½â
TopÃüÁîÊÇLinuxϳ£ÓõÄÐÔÄÜ·ÖÎö¹¤¾ß£¬Äܹ»ÊµÊ±ÏÔʾϵͳÖи÷¸ö½ø³ÌµÄ×ÊÔ´Õ¼ÓÃ×´¿ö£¬ÀàËÆÓÚWindowsµÄÈÎÎñ¹ÜÀíÆ÷¡£ÏÂÃæÏêϸ½éÉÜËüµÄʹÓ÷½·¨¡£
top - 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0.48
Tasks: 29 total, 1 running, 28 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3% us, 1.0% sy, 0.0% ni, 98.7% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 191272k total, 173656k used, 17616k free, 22052k buffers
Swap: 192772k total, 0k used, 192772k free, 123988k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1379 root 16 0 7976 2456 1980 S 0.7 1.3 0:11.03 sshd
14704 root 16 0 2128 980 796 R 0.7 0.5 0:02.72 top
1 root 16 0 1992 632 544 S 0.0 0.3 0:00.90 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
¡¡¡¡Í³¼ÆÐÅÏ¢ÇøÇ°ÎåÐÐÊÇϵͳÕûÌåµÄͳ¼ÆÐÅÏ¢¡£µÚÒ»ÐÐÊÇÈÎÎñ¶ÓÁÐÐÅÏ¢£¬Í¬ uptime ÃüÁîµÄÖ´Ðнá¹û¡£ÆäÄÚÈÝÈçÏ£º
01:06:48µ±Ç°Ê±¼ä
up 1:22ϵͳÔËÐÐʱ¼ä£¬¸ñʽΪʱ:·Ö
1 userµ±Ç°µÇ¼Óû§Êý
load average: 0.06, 0.60, 0.48ϵͳ¸ºÔØ£¬¼´ÈÎÎñ¶ÓÁÐµÄÆ½¾ù³¤¶È¡£
Èý¸öÊýÖµ·Ö±ðΪ 1·ÖÖÓ¡¢5·ÖÖÓ¡¢15·ÖÖÓǰµ½ÏÖÔ򵀮½¾ùÖµ¡£
¡¡¡¡µÚ¶þ¡¢ÈýÐÐΪ½ø³ÌºÍCPUµÄ
Ïà¹ØÎĵµ£º
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 Ê ......
wcÃüÁî
¡¡¡¡wcÃüÁîµÄ¹¦ÄÜΪͳ¼ÆÖ¸¶¨ÎļþÖеÄ×Ö½ÚÊý¡¢×ÖÊý¡¢ÐÐÊý, ²¢½«Í³¼Æ½á¹ûÏÔʾÊä³ö¡£
¡¡¡¡Óï·¨£ºwc [Ñ¡Ïî] Îļþ…
¡¡¡¡ËµÃ÷£º¸ÃÃüÁîͳ¼Æ¸ø¶¨ÎļþÖеÄ×Ö½ÚÊý¡¢×ÖÊý¡¢ÐÐÊý¡£Èç¹ûûÓиø³öÎļþÃû£¬
Ôò´Ó±ê×¼ÊäÈë¶ÁÈ¡¡£wcͬʱҲ¸ø³öËùÓÐÖ¸¶¨ÎļþµÄ×Üͳ¼ÆÊý¡£×ÖÊÇÓɿոñ×Ö·ûÇø·Ö¿ªµÄ×î´ó×Ö·û´®¡£
¡¡¡¡¸ÃÃüÁî¸÷Ñ¡Ïî ......
Ò».×ÊÔ´ÐèÒª£º
ÖÁÉÙ1024 MBÎïÀíÄÚ´æ
1024£2048 Ðè1.5±¶µÄ½»»¥¿Õ¼ä
2048£8192 Ðè1±¶µÄ½»»¥¿Õ¼ä
8192£ Ðè0.75±¶µÄ½»»¥¿Õ¼ä
ÖÁÉÙ400 MB /tmp ÁÙʱĿ¼¿Õ¼ä
oracleÈí¼þÐèÒª1.5 GB µ½ 3.5 GB ´ÅÅ̿ռä
ĬÈÏÊý¾Ý¿âÐèÒª1.2 GB
¶þ.²é¿´ÏµÍ³×ÊÔ´Ïà¹ØÓï ......
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main()
{
pid_t pid;
static int n = 0;
printf("fork!\n"); /*printf("fork!")*/
switch (pid = fork())
{
&nbs ......