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

Linux½ø³Ì¹ÜÀíÃüÁîÏê½â(psºÍtop)

ת×Ô£ºhttp://www.vimer.cn
Linux½ø³Ì¹ÜÀíÃüÁîÏê½â(psºÍtop)
1.psÃüÁî
×÷ÓãºpsÃüÁîÖ÷Òª²é¿´ÏµÍ³Öнø³ÌµÄ״̬¡£
¸ñʽ£ºps [Ñ¡Ïî]
Ö÷ҪѡÏîÈçÏ¡£
-A£ºÏÔʾϵͳÖÐËùÓнø³ÌµÄÐÅÏ¢¡£
-e£ºÏÔʾËùÓнø³ÌµÄÐÅÏ¢¡£
-f£ºÏÔʾ½ø³ÌµÄËùÓÐÐÅÏ¢¡£
-l£ºÒÔ³¤¸ñʽÏÔʾ½ø³ÌÐÅÏ¢¡£
-r£ºÖ»ÏÔʾÕýÔÚÔËÐеĽø³Ì¡£
-u£ºÏÔʾÃæÏòÓû§µÄ¸ñʽ£¨°üÀ¨Óû§Ãû¡¢CPU¼°ÄÚ´æʹÓÃÇé¿öµÈÐÅÏ¢£©¡£
-x£ºÏÔʾËùÓзǿØÖÆÖÕ¶ËÉϵĽø³ÌÐÅÏ¢¡£
-p£ºÏÔʾÓɽø³ÌIDÖ¸¶¨µÄ½ø³ÌµÄÐÅÏ¢¡£
-t£ºÏÔʾָ¶¨ÖÕ¶ËÉϵĽø³ÌµÄÐÅÏ¢¡£
˵Ã÷£ºÒª¶Ô½ø³Ì½øÐмà²âºÍ¿ØÖÆ£¬Ê×ÏÈÒªÁ˽⵱ǰ½ø³ÌµÄÇé¿ö£¬Ò²¾ÍÊÇÐèÒª²é¿´µ±Ç°½ø³Ì¡£psÃüÁî¾ÍÊÇ×î»ù±¾¡¢Ò²ÊǷdz£Ç¿´óµÄ½ø³Ì²é¿´ÃüÁî¡£¸ù¾ÝÏÔʾµÄÐÅÏ¢¿ÉÒÔÈ·¶¨Äĸö½ø³ÌÕýÔÚÔËÐС¢Äĸö½ø³Ì±»¹ÒÆð¡¢½ø³ÌÒÑÔËÐÐÁ˶à¾Ã¡¢½ø³ÌÕýÔÚʹÓõÄ×ÊÔ´¡¢½ø³ÌµÄÏà¶ÔÓÅÏȼ¶£¬ÒÔ¼°½ø³ÌµÄ±êÖ¾ºÅ£¨PID£©¡£ËùÓÐÕâЩÐÅÏ¢¶ÔÓû§¶¼ºÜÓÐÓ㬶ÔÓÚϵͳ¹ÜÀíÔ±À´Ëµ¸üΪÖØÒª¡£Ê¹ÓÔps £­aux”ÃüÁî¿ÉÒÔ»ñµÃÖÕ¶ËÉÏËùÓÐÓû§µÄÓйؽø³ÌµÄËùÓÐÐÅÏ¢£¬ÏÂÃæ½áºÏͼ½²½â½ø³ÌµÄ»ù±¾ÐÅÏ¢¡£
ͼÖеڶþÐдúÂëÖУ¬USER±íʾÆô¶¯½ø³ÌÓû§¡£PID±íʾ½ø³Ì±êÖ¾ºÅ¡£%CPU±íʾÔËÐиýø³ÌÕ¼ÓÃCPUµÄʱ¼äÓë¸Ã½ø³Ì×ܵÄÔËÐÐʱ¼äµÄ±ÈÀý¡£%MEM±íʾ¸Ã½ø³ÌÕ¼ÓÃÄÚ´æºÍ×ÜÄÚ´æµÄ±ÈÀý¡£VSZ±íʾռÓõÄÐéÄâÄÚ´æ´óС£¬ÒÔKBΪµ¥Î»¡£RSSΪ½ø³ÌÕ¼ÓõÄÎïÀíÄÚ´æÖµ£¬ÒÔKBΪµ¥Î»¡£TTY±íʾ¸Ã½ø³Ì½¨Á¢Ê±Ëù¶ÔÓ¦µÄÖնˣ¬”?”±íʾ¸Ã½ø³Ì²»Õ¼ÓÃÖնˡ£STAT±íʾ½ø³ÌµÄÔËÐÐ״̬£¬°üÀ¨ÒÔϼ¸ÖÖ´úÂ룺D£¬²»¿ÉÖжϵÄ˯Ãߣ»R£¬¾ÍÐ÷£¨ÔÚ¿ÉÔËÐжÓÁÐÖУ©£»S£¬Ë¯Ãߣ»T£¬±»¸ú×Ù»òÍ£Ö¹£»Z£¬ÖÕÖ¹£¨½©ËÀ£©µÄ½ø³Ì£¬Z²»´æÔÚ£¬µ«ÔÝʱÎÞ·¨Ïû³ý£»W£¬Ã»ÓÐ×ã¹»µÄÄÚ´æ·ÖÒ³¿É·ÖÅ䣻<¸ßÓÅÏÈÐòµÄ½ø³Ì£»N£¬µÍÓÅÏÈÐòµÄ½ø³Ì£»L£¬ÓÐÄÚ´æ·ÖÒ³·ÖÅä²¢ËøÔÚÄÚ´æÌåÄÚ£¨ÊµÊ±ÏµÍ³»òI/O£©¡£STARTΪ½ø³Ì¿ªÊ¼Ê±¼ä¡£TIMEΪִÐеÄʱ¼ä¡£COMMANDÊǶÔÓ¦µÄÃüÁîÃû¡£
Ó¦ÓÃʵÀýÈçÏ¡£
ÔÚ½øÐÐϵͳά»¤Ê±£¬Èç¹ûCPU¸ºÔØͻȻÔö¼Ó£¬¶øÓÖ²»ÖªµÀÊÇÄÄÒ»¸ö½ø³ÌÔì³ÉµÄÇé¿ö¡£Ê¹ÓÃÃüÁ
££ps aux | sort +3n
ÒòΪ%CPUÑ¡ÏîÔÚµÚÈýÁУ¬ËùÒÔsortÑ¡3×÷Ϊ²ÎÊý£¬£«±íʾÉýÐòÊä³ö½á¹û¡£
2.topÃüÁî
topÃüÁîÓÃÀ´ÏÔʾϵͳµ±Ç°µÄ½ø³Ì×´¿ö¡£
¸ñʽ£ºtop [Ñ¡Ïî]
Ö÷ҪѡÏîÈçÏ¡£
d£ºÖ¸¶¨¸üеļä¸ô£¬ÒÔÃë¼ÆËã¡£
q£ºÃ»ÓÐÈκÎÑӳٵĸüС£Èç¹ûʹÓÃÕßÓг¬¼¶Óû§£¬ÔòtopÃüÁ»áÒÔ×î¸ßµÄÓÅÏÈÐòÖ´ÐС£
c£ºÏÔʾ½ø³ÌÍêÕûµÄ·¾¶ÓëÃû³Æ¡£
S£ºÀÛ»ýģʽ£¬»á½«ÒÑÍê³É»òÏûʧµÄ×Ó½ø³ÌµÄCPUʱ¼äÀÛ»ýÆðÀ´¡£


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

LinuxÄÚºËÉ豸ģÐÍ(2)

·­ÒëÕߣº¹ùÉÙ±¯
2009/12/01
Ô­ÎÄ£ºlinux/Documentation/driver-model/binding.txt
Çý¶¯°ó¶¨
Çý¶¯°ó¶¨¾ÍÊǽ«Ò»¸öÉ豸ºÍ¿ØÖƸÃÉ豸µÄÇý¶¯¹ØÁªÔÚÒ»ÇеĹý³Ì¡£
µäÐ͵ÄÇé¿öÏ£¬×ÜÏßÇý¶¯À´´¦ÀíÇý¶¯°ó¶¨£¬ÒòΪÿ¸ö×ÜÏßÇý¶¯¶¼ÓÐ×ÜÏßÏà¹ØµÄÊý¾Ý
½á¹¹À´±íʾÉ豸ºÍÉ豸Çý¶¯¡£ÓÐÁ˱íʾÉ豸ºÍÉ豸Çý¶¯µÄͨÓÃÊý¾Ý½á¹¹£¬¾ø´ó¶àÊýµÄ°ó ......

vmwareÖÐlinuxÉÏÍøÉèÖ×—NAT

vmwareÖÐlinuxÉÏÍøÉèÖ×—NAT
 
ÉèÖóÉNAT·½Ê½ºó£¬½«ÄãwindowsÖ÷»úÉÏÍøµÄÄǸöÍøÂçÉèÖÃΪ¹²Ïí£¬È»ºó½«linux¿Í»§»úºÍwindowsÖ÷»ú×é³ÉÄÚÍø¡£¾ßÌå²½ÖèÈçÏÂ;
1¡¢ÉèÖÃvmwareµÄ¿Í»§»úÍøÂçÁ´½ÓΪNAT·½Ê½£º

2¡¢½«ÄãwindowsÉÏÍøµÄÄǸöÍøÂçÉèΪ¹²Ïí¸øvnet8£¬Ò»°ã¹Ì¶¨ip¾ÍÊÇ“±¾µØÁ¬½Ó”£¬¿í´øÉÏÍø¾ÍÊ ......

ʹÓÃScreen´´½¨ÐéÄâÖն˱ÜÃâLinuxÔ¶³Ì¶ÏÏß

ά»¤LinuxµÄssh¹¤¾ßÔÚʹÓÃÖУ¬Ò»µ©Óöµ½ÍøÂçÖжϣ¬Ôòµ±Ç°µÄshell¾Í»á×Ô¶¯¹Ø±Õ
µ±Ç°µÄ¹¤×÷½ø¶È¾Í»á¶ªÊ§£¬Õâ¶ÔÓÚÔ¶³ÌÉý¼¶µÈ±È½ÏºÄ·Ñʱ¼äµÄ¹¤×÷ÊǷdz£²»ÀûµÄ
¶ÔÓÚÔ¶³Ìµ÷ÊÊ´úÂëÒ²ÊǺܲ»¿É¿¿²»°²È«µÄ
Ϊ´Ë£¬¿ÉÒÔʹÓÃscreenÕâ¸ö¹¤¾ßÀ´½â¾öÕâ¸öÎÊÌâ¡£
¶ÔÓÚ×îС»¯µÄlinux£¬Í¨³£screenÊDz»°üº¬ÔÚϵͳÄڵġ£
ÐèÒª²éÕÒ²Ù×÷ϵͳµÄ°² ......

linux¶¯Ì¬Á´½Ó¿âµÄ´´½¨ÓëʹÓÃ

ʹÓÃlinux¶¯Ì¬Á´½Ó¿â£º
     ÔÚUnixÉÏ´æÔÚÁ½Öֿ⣺¶¯Ì¬¿â£¨.so£©ºÍ¾²Ì¬¿â£¨.a£©£¬²ÉÓö¯Ì¬¿â£¨¹²Ïí¶ÔÏ󣩼¼Êõ¿ÉÒÔ·½±ã³ÌÐò¼ä¹²Ïí£¬½ÚÊ¡³ÌÐòÕ¼Óпռ䣬Ôö¼Ó³ÌÐòµÄ¿ÉÀ©Õ¹ÐÔºÍÁé»îÐÔ¡£
    ²Ù×÷¶¯Ì¬¿âµÄº¯ÊýÔÚdlfcn.hÎļþÖж¨Ò壬ËùÒÔÒªÔÚʹÓö¯Ì¬¿âʱinclude <dlfcn.h>
 &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ