Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö
Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö
Author: sinister
Email: sinister@whitecell.org
Homepage:http://www.whitecell.org
Date: 2007-01-11
±¾ÎÄ¶Ô Linux ÄÚºËÈíÖжϵÄÖ´ÐÐÁ÷³Ì½øÐÐÁË·ÖÎö£¬²¢¾¡¿ÉÄܵĽáºÏµ±Ç°ÔË
Ðл·¾³ÏêϸµØд³öÎÒµÄÀí½â£¬µ«Õâ²¢²»±íÃ÷ÎÒµÄÀí½âÒ»¶¨ÕýÈ·¡£Õâ±¾ÊÇÂÛ̳
ÀïµÄһƪÌû×Ó£¬·¢³öÀ´ÊÇΪÁËÅ×שÒýÓñ£¬Èç¹ûÄúÔÚÔĶÁ±¾ÎÄʱ·¢ÏÖÁËÎҵĴí
Î󣬻¹ÍûµÃµ½ÄúµÄÖ¸Õý¡£
½ñÌìÎÞÒâÖп´ÁËÑÛ 2.6 Äں˵ÄÈíÖжÏʵÏÖ£¬·¢ÏÖºÍÒÔÇ°ÎÒ¿´µ½µÄ´ó²»Ïàͬ
£¨ÒÔÇ°Ò²ÊÇ×ßÂí¹Û»¨£¬²»´ó×Ðϸ£©£¬¿ÉÒÔ˵¸Ä¶¯ºÜ´ó¡£Á¬ softirq µÄµ÷ÓÃ
µã¶¼²»Ò»ÑùÁË£¬ÒÔÇ°ÊÇÈý¸öµ÷Óõ㣬½ñÌìËÑË÷ÁËÒ»ÏÂÔ´´úÂ룬·¢ÏÖÔÚ¶à³öÁË
ksoftirqd ºó£¬softirq ÔÚϵͳÖеĵ÷Óõã½öÊÇÔÚ ISR ·µ»ØʱºÍʹÓÃÁË
local_bh_enable() º¯Êýºó±»µ÷ÓÃÁË¡£Íø¿¨²¿·ÖµÄÏÔʾµ÷Óã¬ÎÒ¾õµÃÓ¦¸Ã²»
ËãÊÇϵͳÖеĵ÷Óõ㡣ksoftirqd ·µ»ØÈ¥µ÷Óà do_softirq() º¯ÊýÓ¦¸ÃÒ²Ö»
ÄÜËãÊÇÆäÖеÄÒ»¸ö·ÖÖ§£¬ÒòΪÆä±¾Éí´ÓÔ´Í·ÉÏÀ´½²Ò²»¹ÊÇÔÚ ISR ·µ»Øʱ
irq_exit() µ÷Óõġ£ÕâÑùÒ»À´¾ÍºÍǰЩÈÕ×ÓдµÄÄǷݱʼǣ¨Windows/Linux
/Solaris ÈíÖжϻúÖÆ£©Àï½éÉÜµÄ Linux Äں˲¿·ÖµÄÈíÖжÏÓгö´¦ÁË£¬¿´À´
ÒÔºóÌÖÂÛ Linux kernel ´úÂëÒ»¶¨ÒªÒÔÄں˰汾ΪǰÌ⣬Ҫ²»·ÇÂÒÁ˲»¿É¡£
µÃÂò±¾ Linux ·½ÃæµÄÊéÁË£¬Ã¿´ÎÉÏÀ´Ö±½Ó¿´Ïà¹Ø´úÂëÒ²²»ÊÇ»ØÊ£¬Ê±¼äÒ²
²»ÔÊÐí¡£
//
// do_IRQ º¯ÊýÖ´ÐÐÍêÓ²¼þ ISR ºóÍ˳öʱµ÷Óô˺¯Êý¡£
//
void irq_exit(void)
{
account_system_vtime(current);
trace_hardirq_exit();
sub_preempt_count(IRQ_EXIT_OFFSET);
//
// Åжϵ±Ç°ÊÇ·ñÓÐÓ²¼þÖжÏǶÌ×£¬²¢ÇÒÊÇ·ñÓÐÈíÖжÏÔÚ
// pending ״̬£¬×¢Ò⣺ÕâÀïÖ»ÓÐÁ½¸öÌõ¼þͬʱÂú×ã
// ʱ£¬²ÅÓпÉÄܵ÷Óà do_softirq() ½øÈëÈíÖжϡ£Ò²¾ÍÊÇ
// ˵ȷÈϵ±Ç°ËùÓÐÓ²¼þÖжϴ¦ÀíÍê³É£¬ÇÒÓÐÓ²¼þÖжϰ²×°ÁË
// ÈíÖжϴ¦ÀíʱÀíʱ²Å»á½øÈë¡£
//
if (!in_interrupt() && local_softirq_pend
Ïà¹ØÎĵµ£º
Ϊ Linux Ó¦ÓóÌÐò±àд DLL ÔÚ½ö½öÖ»»á±àд²å¼þµÄʱºòΪʲôҪ±àдÕû¸öÓ¦ÓóÌÐò£¿
ÎĵµÑ¡Ïî
´òÓ¡±¾Ò³
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ ¼¶±ð£º ³õ¼¶ Allen Wilson (wilsona@us.ibm.com), µç×ÓÉÌÎñÉè¼Æʦ, IBM 2001 Äê 10 Ô 01 ÈÕ ²å¼þºÍ DLL ͨ³£ÊÇÓÃÀ´ÎÞÐë±àдÕû¸öÐÂÓ¦ÓóÌÐò¶øÌí¼Ó¹¦Äܵļ ......
×î½ü¸ºÔðµÄsvrѹÁ¦±È½Ï´ó£¬ÒµÎñÂß¼Óе㸴ÔÓ,ÄÜÓÅ»¯µÄµØ·½ÒѾȫ²¿ÓÅ»¯ÁË£¬ ĿǰÿÃë3k´Î£¬cpu¸ºÔØ»¹ÊÇ±È½Ï¸ß top¿´Ò»Ï£¬4ºËµÄcpu¸ºÔز»ÊÇÌ«¾ùºâ£¬´òË㿼ÂÇһϽ«ÒµÎñ½ø³ÌÖ¸¶¨µ½3¸öcpuÉÏÔËÐУ¬ÁíÍâÒ»¸öcpuרߺÔð´¦ÀíÍøÂçÊÕ·¢°ü£»´òËã³¢ÊÔһϣ¬Èç¹û»¹ÊDz»ÐУ¬ÔÙ¹ý¶Îʱ¼ä£¬·ÃÎÊÁ¿ÔÙÔö¼ÓµÄ»°£¬¾ÍÒª¼Ó»úÆ÷ÁË£¬ÎØÎØ ²¹ ......
1:ÏÂÔØÉçÇø°æµÄmysql£¬
ÒªÏÂÔØÁ½¸öÎļþ£¬·Ö±ðΪ£ºMySQL-server-community-5.1.46-1.rhel5.i386.rpm
......
ssh connect to Linux
1,¼ì²éÍøÂçÁ¬½ÓÊÇ·ñÕý³£,¿´¿´ÄãµÄ»úÆ÷ÊÇ·ñ¿ªÁË22ºÅ¶Ë¿Ú,½ø³ÌÊÇ·ñÔËÐÐÕý³£..
2,¿ÉÒÔÔÚ±¾»úÉÏÓÃSSHÃüÁîµÇ½±¾»ú.
#ssh -l yourloginname xxx.xxx.xxx.xxx
ÆäÖÐyourloginnameΪÄã±¾»ú¿ÉÔ¶³ÌµÇ¼Óû§Ãû,xxx.xxx.xxx.xxxΪÄãµÄ»úÆ÷IP,
Èç¹ûµÇ¼Ìáʾ:
Are you sure you want to continue connecting ( ......
°²×°²½Ö裺
Ø °²×°tomcatÇ°ÏÈÒª±£Ö¤°²×°ÁËJDK£¬¿ÉÒÔÓÃÃüÁî²é¿´ÊÇ·ñ°²×°ÁËJDK£º
[root@wxr webapps]# java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
Ø ÏÂÔØTom ......