LINUX c++Ï̳߳ؿò¼Ü
°æȨÉùÃ÷£ºÔÎĵØÖ·¼°×÷Õß²»Ï꣬ÈçÓÐÇÖȨ£¬ÇëÁªÏµ£»
±¾Îĸø³öÁËÒ»¸öͨÓõÄÏ̳߳ؿò¼Ü£¬¸Ã¿ò¼Ü½«ÓëÏß³ÌÖ´ÐÐÏà¹ØµÄÈÎÎñ½øÐÐÁ˸߲ã´ÎµÄ³éÏó£¬Ê¹Ö®Óë¾ßÌåµÄÖ´ÐÐÈÎÎñÎ޹ء£ÁíÍâ¸ÃÏ̳߳ؾßÓж¯Ì¬ÉìËõÐÔ£¬ËüÄܸù¾ÝÖ´ÐÐÈÎÎñµÄÇáÖØ×Ô¶¯µ÷ÕûÏ̳߳ØÖÐÏ̵߳ÄÊýÁ¿¡£ÎÄÕµÄ×îºó£¬ÎÒÃǸø³öÒ»¸ö¼òµ¥Ê¾Àý³ÌÐò£¬Í¨¹ý¸ÃʾÀý³ÌÐò£¬ÎÒÃǻᷢÏÖ£¬Í¨¹ý¸ÃÏ̳߳ؿò¼ÜÖ´ÐжàÏß³ÌÈÎÎñÊǶàôµÄ¼òµ¥¡£
ΪʲôÐèÒªÏ̳߳Ø
Ä¿Ç°µÄ´ó¶àÊýÍøÂç·þÎñÆ÷£¬°üÀ¨Web·þÎñÆ÷¡¢Email·þÎñÆ÷ÒÔ¼°Êý¾Ý¿â·þÎñÆ÷µÈ¶¼¾ßÓÐÒ»¸ö¹²Í¬µã£¬¾ÍÊǵ¥Î»Ê±¼äÄÚ±ØÐë´¦ÀíÊýÄ¿¾Þ´óµÄÁ¬½ÓÇëÇ󣬵«´¦Àíʱ¼äÈ´Ïà¶Ô½Ï¶Ì¡£
´«Í³¶àÏ̷߳½°¸ÖÐÎÒÃDzÉÓõķþÎñÆ÷Ä£ÐÍÔòÊÇÒ»µ©½ÓÊܵ½ÇëÇóÖ®ºó£¬¼´´´½¨Ò»¸öеÄỊ̈߳¬ÓɸÃÏß³ÌÖ´ÐÐÈÎÎñ¡£ÈÎÎñÖ´ÐÐÍê±Ïºó£¬Ïß³ÌÍ˳ö£¬Õâ¾ÍÊÇÊÇ“¼´Ê±´´½¨£¬¼´Ê±Ïú»Ù”µÄ²ßÂÔ¡£¾¡¹ÜÓë´´½¨½ø³ÌÏà±È£¬´´½¨Ï̵߳Äʱ¼äÒѾ´ó´óµÄËõ¶Ì£¬µ«ÊÇÈç¹ûÌá½»¸øÏ̵߳ÄÈÎÎñÊÇÖ´ÐÐʱ¼ä½Ï¶Ì£¬¶øÇÒÖ´ÐдÎÊý¼«ÆäƵ·±£¬ÄÇô·þÎñÆ÷½«´¦ÓÚ²»Í£µÄ´´½¨Ị̈߳¬Ïú»ÙÏ̵߳Ä״̬¡£
ÎÒÃǽ«´«Í³·½°¸ÖеÄÏß³ÌÖ´Ðйý³Ì·ÖΪÈý¸ö¹ý³Ì£ºT1¡¢T2¡¢T3¡£
T1£ºÏ̴߳´½¨Ê±¼ä
T2£ºÏß³ÌÖ´ÐÐʱ¼ä£¬°üÀ¨Ï̵߳Äͬ²½µÈʱ¼ä
T3£ºÏß³ÌÏú»Ùʱ¼ä
ÄÇôÎÒÃÇ¿ÉÒÔ¿´³ö£¬Ï̱߳¾ÉíµÄ¿ªÏúËùÕ¼µÄ±ÈÀýΪ(T1+T3) / (T1+T2+T3)¡£Èç¹ûÏß³ÌÖ´ÐеÄʱ¼äºÜ¶ÌµÄ»°£¬Õâ±È¿ªÏú¿ÉÄÜÕ¼µ½20%-50%×óÓÒ¡£Èç¹ûÈÎÎñÖ´ÐÐʱ¼äºÜƵ·±µÄ»°£¬Õâ±Ê¿ªÏú½«ÊDz»¿ÉºöÂԵġ£
³ý´ËÖ®Í⣬Ï̳߳ØÄܹ»¼õÉÙ´´½¨µÄÏ̸߳öÊý¡£Í¨³£Ï̳߳ØËùÔÊÐíµÄ²¢·¢Ïß³ÌÊÇÓÐÉϽçµÄ£¬Èç¹ûͬʱÐèÒª²¢·¢µÄÏß³ÌÊý³¬¹ýÉϽ磬ÄÇôһ²¿·ÖÏ߳̽«»áµÈ´ý¡£¶ø´«Í³·½°¸ÖУ¬Èç¹ûͬʱÇëÇóÊýĿΪ2000£¬ÄÇô×Çé¿öÏ£¬ÏµÍ³¿ÉÄÜÐèÒª²úÉú2000¸öÏ̡߳£¾¡¹ÜÕâ²»ÊÇÒ»¸öºÜ´óµÄÊýÄ¿£¬µ«ÊÇÒ²Óв¿·Ö»úÆ÷¿ÉÄÜ´ï²»µ½ÕâÖÖÒªÇó¡£
Òò´ËÏ̳߳صijöÏÖÕýÊÇ×ÅÑÛÓÚ¼õÉÙÏ̳߳ر¾Éí´øÀ´µÄ¿ªÏú¡£Ï̳߳زÉÓÃÔ¤´´½¨µÄ¼¼Êõ£¬ÔÚÓ¦ÓóÌÐòÆô¶¯Ö®ºó£¬½«Á¢¼´´´½¨Ò»¶¨ÊýÁ¿µÄÏß³Ì(N1)£¬·ÅÈë¿ÕÏжÓÁÐÖС£ÕâЩÏ̶߳¼ÊÇ´¦ÓÚ×èÈû£¨Suspended£©×´Ì¬£¬²»ÏûºÄCPU£¬µ«Õ¼ÓýÏСµÄÄÚ´æ¿Õ¼ä¡£µ±ÈÎÎñµ½À´ºó£¬»º³å³ØÑ¡ÔñÒ»¸ö¿ÕÏÐỊ̈߳¬°ÑÈÎÎñ´«Èë´ËÏß³ÌÖÐÔËÐС£µ±N1¸öÏ̶߳¼ÔÚ´¦ÀíÈÎÎñºó£¬»º³å³Ø×Ô¶¯´´½¨Ò»¶¨ÊýÁ¿µÄÐÂỊ̈߳¬ÓÃÓÚ´¦Àí¸ü¶àµÄÈÎÎñ¡£ÔÚÈÎÎñÖ´ÐÐÍê±ÏºóÏß³ÌÒ²²»Í˳ö£¬¶øÊǼÌÐø±£³ÖÔÚ³ØÖеȴýÏÂÒ»´ÎµÄÈÎÎñ¡£µ±ÏµÍ³±È½Ï¿ÕÏÐʱ£¬´ó²¿·ÖÏ̶߳¼Ò»Ö±´¦ÓÚÔ
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
ÎÊÌâÃèÊö£º
C#³ÌÐò,ÀïÃæcopyÁËÐí¶àÔÀ´µÄ´úÂë,ËùÒԲβÆëµÄ,ºÜÄѶÁ,ÈçºÎ²ÅÄÜÈôúÂë×Ô¶¯ÅÅÆë,¾ÍÏóVS 6.0ÖпÉÒÔʹÓÿì½Ý¼ü,·Ç³£·½±ã.
½â´ð£º
ctrl+a,ÏÈÈ«Ñ¡
ctrl+k,ctrl+f,×Ô¶¯ÅÅÁÐ
»òÕß
ctrl+a,ÏÈÈ«Ñ¡
alt+F8 ×Ô¶¯ÅÅÁÐ ......
×î½ü£¬ORACLEϵͳ»ù±¾µ÷ÊÔͨ¹ý£¬ÊÇʱºòÉèÖÃORACLEËæRHEL×Ô¶¯Æô¶¯Óë¹Ø±Õ·þÎñµÄʱºòÁË£¬Ö®ËùÒÔ°ÑÕâ¸öÈÎÎñ·ÅÔÚ×îºóÀ´×ö£¬ÊÇÒòΪÎÒ¾õµÃÕâ¸öÓ¦¸Ã²»»áºÜÄÑ£¬µ«ÕæÕýʵʩÆðÀ´£¬»¹ÊÇÓöµ½Á˸ö²»Ð¡µÄÕÏ°
дºÃ½Å±¾£¬×¢²áºÃ·þÎñÖ®ºó£¬¾²âÊÔ£¬ORACLE¿ÉÒÔËæRHELÆô¶¯¶øÆô¶¯£¬µ«²»ÄÜËæϵͳ¹Ø±Õ¶ø¹Ø±Õ¡£ÔÚÍøÉÏÕҴ𰸣¬·¢ÏÖ¼¸ºõËùÓеÄÉèÖùý ......
Í·Îļþ£ºsys/socket.h
Ïà¹Ø½á¹¹Ì壺
struct sockaddr
{
unsigned short sa_family; //µØÖ·×å
char sa_data[14]; //14×Ö½ÚÐÒéµØÖ·
};
struct sockaddr_in
{
short int sin_family; //µØÖ·×å
u ......
תÔر¾Õ¾ÎÄÕÂÇë×¢Ã÷£¬×ªÔØ×Ô£º·ö¿[http://www.php-oa.com]
±¾ÎÄÁ´½Ó: http://www.php-oa.com/2009/02/03/iostat.html
ÒÔÇ°Ò»Ö±²»Ì«»áÓÃÕâ¸ö²ÎÊý¡£ÏÖÔÚÈÏÕæÑо¿ÁËÒ»ÏÂiostat£¬ÒòΪ¸ÕºÃÓÐ̨ÖØÒªµÄ·þÎñÆ÷ѹÁ¦¸ß,ËùÒÔ·ÅÉÏÀ´·ÖÎöÒ»ÏÂ.ÏÂÃæÕą̂¾ÍÊÇIOÓÐѹÁ¦¹ý´óµÄ·þÎñÆ÷
$iostat -x 1
Linux 2.6.33-fukai (fukai-lap ......