ºìÁªLinuxÃÅ»§
Linux°ïÖú

Äں˱Ƚϣº2.4 ºÍ 2.6 É쵀 Web ·þÎñ

·¢²¼Ê±¼ä:2005-06-21 01:31:50À´Ô´:ºìÁª×÷Õß:uu
ÐÂÌØÐÔʹ Web ÐÔÄܸü¿ì£¬¸ü¿É¿¿
¼¶±ð£ºÖм¶


Li Ge (lge-at-us.ibm.com)
רְÈí¼þ¹¤³Ìʦ£¬Linux Technology Center£¬IBM
2004 Äê 3 ÔÂ

ÔÚÖ§³ÖÆóÒµÓ¦ÓóÌÐò·½Ã棬Linux 2.6 ÄÚºË×öÁ˺ܶà¸Ä½ø¡£±¾Îĸø³öÁË IBM Linux Technology Center µÄ Web ·þÎñ²âÊÔ¹¤×÷µÄ½á¹û£¬´Ó¸÷¸ö²»Í¬µÄ½Ç¶È¶Ô Linux 2.4 ºÍ 2.6 Äں˽øÐÐÁ˱Ƚϡ£ÆäÖеÄÁÁµãÊÇ 2.6 Äں˵ĹؼüÔöÇ¿¹¦ÄÜ¡¢²âÊÔ·½·¨Ñ§ºÍ²âÊÔ±¾ÉíµÄ½á¹û¡£×îÖÕ½á¹û£º2.6 ÄÚºËÌṩ Web Ò³·þÎñÒª±È 2.4 ¿ìµÃ¶à£¬²¢ÇÒ¿É¿¿ÐÔÒ»µãÒ²²»²î¡£
ÔÚ IBM Linux Technology Center (LTC) ½øÐÐµÄ Linux Web ·þÎñ²âÊÔ¹¤×÷µÄÄ¿µÄÊÇ·¢ÏÖ Linux Äں˵ÄȱÏÝ¡£²âÊÔ×ÅÖØÓÚÓëʵ¼ÊÇé¿öÖÐʹÓà Web ·þÎñÆ÷/Ó¦ÓóÌÐò·þÎñÆ÷µÄÆóÒµÓû§»·¾³Ïà¹ØµÄ¹¤×÷¸ººÉ£¬Ò²×ÅÖØÓÚÌá¸ß Linux Äں˵ÄÎȶ¨ÐÔ¡¢¿ÉÀ©Õ¹ÐÔÒÔ¼° (ÄÚºË) Óë Web ·þÎñÆ÷/ʵÓóÌÐò·þÎñÆ÷µÄ¼æÈÝÐÔ¡£×îÖØÒªµÄ²¢²»ÊÇʶ±ð Web ·þÎñÆ÷ºÍÓ¦ÓóÌÐò·þÎñÆ÷µÄȱÏÝ¡£

²âÊÔ×ÛÊö


Á½Àà Web ·þÎñ²âÊÔ
ÓÐÁ½Àà·þÎñÆ÷¿ÉÒÔÓÃÓÚ Web ·þÎñ£ºWeb ·þÎñÆ÷ºÍÓ¦ÓóÌÐò·þÎñÆ÷¡£ÔÚ±¾ÎÄÖУ¬ÎÒ½«Ê¹ÓÃÊõÓï¡°Web ·þÎñ¡±À´Í³Ò»±íʾËüÃÇ¡£

Web ·þÎñÆ÷ ͨ¹ý´¦Àí»ùÓÚ HTTP ЭÒéµÄÇëÇóÀ´Ê¹ÍøÒ³ÏÔʾÔÚ Web ä¯ÀÀÆ÷ÖС£
Ó¦ÓóÌÐò·þÎñÆ÷ ÊǹãÒåÉϵķþÎñÆ÷£¬Í¨¹ý¸÷ÖÖЭÒ飬ÆäÖпÉÄÜ°üÀ¨ HTTP ЭÒ飬À´Ïò¿Í»§»úÓ¦ÓóÌÐò¹«¿ªÒµÎñÂß¼­¡£Ïà¶ÔÓÚ Web ·þÎñÆ÷£¬ËüÌṩÁ˸üΪ¸´ÔÓºÍÇ¿´óµÄ¹¦ÄÜ£¬ÀýÈç»á»°¹ÜÀí¡¢¸ºÔØƽºâ¡¢ÏûÏ¢´«µÝ¡¢ÊÂÎñ¹ÜÀí¡¢°²È«£¬µÈµÈ¡£ÔÚijÖÖÒâÒåÉÏ£¬Ó¦ÓóÌÐò·þÎñÆ÷ÊÇ Web ·þÎñÆ÷µÄ³¬¼¯¡£

ÎÒÃÇΪ Linux Äں˲âÊÔ»·¾³Ñ¡ÔñÁËһЩ Web ·þÎñÆ÷ºÍÓ¦ÓóÌÐò·þÎñÆ÷£¬°üÀ¨ Apache¡¢Jakarta-Tomcat¡¢IBM WebSphere Application Server ºÍ Jboss¡£ÕâЩ´ó²¿·Ö¶¼ÊÇ¿ª·ÅÔ´´úÂëÏîÄ¿£¬¿ÉÒÔÃâ·ÑÏÂÔØ£¨Çë²ÎÔÄ ²Î¿¼×ÊÁÏ µÄÁ´½ÓÒÔ»ñµÃ¸ü¶à¹ØÓÚÕâЩ·þÎñÆ÷µÄÐÅÏ¢£©¡£

2.4 ºÍ 2.6 Äں˲âÊÔÖ®¼äµÄ²îÒì
ʹÓà Web ·þÎñÆ÷ºÍÓ¦ÓóÌÐò·þÎñÆ÷×÷Ϊ²âÊÔ¹¤×÷¸ºÔØ£¬ÔÚ 2.5/2.6 ÄÚºËÉϵIJâÊÔ¹¤×÷Òª±ÈÔÚ 2.4 ÄÚºËÉÏÏ꾡µÃ¶à¡£ÔÚ²âÊÔ 2.4 ÄÚºËʱ£¬½öÓõ½ÁË Apache ºÍ WebSphere Application Server ÕâÁ½¸ö·þÎñÆ÷×÷Ϊ×ۺϲâÊÔ·½°¸µÄÒ»²¿·Ö¡£Web Performance Tool (WPT) ÊÇËùÓõÄÖ÷Òª Web ²âÊÔ¹¤¾ß¡£³öÓÚżȻµÄ»ú»á£¬µ±ÄÚºËÖÐÓдóµÄ¸Ä¶¯»òÕßÐèÒªÑéÖ¤Èí¼þ£¬Òª½øÐÐ Web ·þÎñ²âÊÔ¡£

ÔÚ¶Ô 2.5/2.6 Äں˵IJâÊÔÖУ¬ÎÒÃÇÖƶ¨Á˸üΪ¿É¿¿ºÍÍêÕûµÄ²âÊԼƻ® (Çë²ÎÔÄ ²Î¿¼×ÊÁÏ£¬»ñµÃ SourceForge ÉϹØÓÚ2.5 ²âÊԼƻ®ºÍʵʩ¼Æ»®µÄÁ´½Ó)¡£Ôڼƻ®ÖÐÖƶ¨ÁËÊʵ±µÄ²âÊÔ·¶Î§¡¢²âÊÔ·½·¨ºÍ²âÊÔʱ¼äÏß¡£ÔÚ×ۺϲâÊÔ¡¢Öصã²âÊÔºÍÓû§·ÂÕæ²âÊÔÖУ¬Web ·þÎñÆ÷ºÍÓ¦ÓóÌÐò·þÎñÆ÷²âÊÔ±»¹ã·ºÓÃ×÷²âÊÔ¹¤¾ß¡£

³ýÁËʹÓøü¶àµÄ·þÎñÆ÷ÒÔÍ⣬ÎÒÃÇ»¹Ê¹ÓÃÁËһЩ²»Í¬µÄ Web ¿Í»§»ú²âÊÔ¹¤¾ß£¬°üÀ¨ WPT¡¢Hammerhead¡¢Httperf ºÍ Pagepoker£¬À´Ä£ÄⲻͬÀàÐ͵ÄÓû§»·¾³¡£ËùÓзþÎñÆ÷ºÍ¿Í»§»ú¹¤¾ßÖ´ÐеijÖÐøʱ¼ä²»Í¬ (24 СʱºÍ 96 Сʱ)£¬²»Í¬ÓÚ³ÖÐøʱ¼ä¹Ì¶¨µÄ¶Ô×îпÉÓÃÄں˵IJâÊÔ¡£

´ËÍ⣬²âÊÔÓ²¼þ²»¾ÖÏÞÓÚ»ùÓÚ Intel µÄµ¥´¦ÀíÆ÷ϵͳ¡£²âÊÔÔÚ 1 ·¡¢4 ·ºÍ 8 · IBM xSeries »úÆ÷ÉÏºÍ 64 λ IBM PowerPC ϵͳÉϽøÐС£ÄÚºËÏà¹ØµÄȱÏÝÔÚ Linux ÄÚºËȱÏÝ×·×ÙϵͳÖй«¿ª¡£

2.6 Äں˵ĹؼüÔöÇ¿¹¦ÄÜ
Web ·þÎñÔÚÆóÒµ½ç°çÑÝ×ÅÖØÒªµÄ½ÇÉ«¡£ÎªÖ§³ÖÆóÒµÓ¦ÓóÌÐò£¬2.6 ÄÚºËÓÐÁËÏÔÖøµÄ¸Ä½øºÍ±ä»¯¡£ÐÂÓ²¼þÖ§³Ö¡¢Èí¼þÖ§³ÖºÍÄÚ²¿µÄÄں˸Ľø¸ø 2.6 Äں˴øÀ´Á˸üºÃµÄÀ©Õ¹ÐÔºÍÎȶ¨ÐÔ¡£2.6 ÄÚºËÔÚ¿ç¶à¸ö CPU ºÍ´óÄÚ´æʱµÄ¸ß¸ºÔØÇéÐÎÏÂÐÔÄÜ±È 2.4 ¸üºÃ¡£2.6 Öн«ÓÐÒæÓÚÆóÒµÓ¦ÓóÌÐòµÄһЩ¹Ø¼üÌØÐÔ°üÀ¨£º

ÐÂÓ²¼þÖ§³Ö
Linux Ö§³Ö·¶Î§¹ã·ºµÄÓ²¼þƽ̨¡£2.6 ÄÚºËÖ§³ÖеÄÌåϵ½á¹¹£¬ÀýÈç 64 λ PowerPC¡¢64 λ AMD Opteron ºÍǶÈëʽ´¦ÀíÆ÷¡£

³¬Ïß³Ì
³¬Ïß³ÌÊÇ Intel µÄÒ»ÏУ¬ÊÇ 2.6 ÄÚºËËùÖ§³ÖµÄÖ÷ÒªµÄÓ²¼þÌá¸ß¡£»ù±¾À´Ëµ£¬³¬Ï߳̿ÉÒÔͨ¹ýͬ²½¶àÏ̼߳¼Êõ£¨simultaneous multi-threading technology£¬SMT£©ÔÚµ¥¸öÎïÀí´¦ÀíÆ÷ÉÏ´´½¨¶à¸öÐéÄâ´¦ÀíÆ÷£»¶à¸öÓ¦ÓóÌÐòÏ߳̿ÉÒÔͬʱÔÚÒ»¸ö´¦ÀíÆ÷ÉÏÔËÐС£Îª³ä·ÖÀûÓÃÕâÒ»ÌØÐÔ£¬Ó¦ÓóÌÐòÐèÒªÊǶàÏ̵߳ġ£

³¬Ï̸߳ø Web ·þÎñÆ÷ºÍÓ¦ÓóÌÐò·þÎñÆ÷´øÀ´Á˺ܶàÒæ´¦¡£Ëü¿ÉÒÔÔö¼Ó¿É´¦ÀíµÄÊÂÎñµÄÊýÄ¿£¬Ìṩ¸ü¿ìµÄ·þÎñÆ÷ÏìӦʱ¼ä£¬²¢Ö§³Ö·þÎñÆ÷´¦Àí¸ü´óµÄ¹¤×÷¸ºÔغ͸ü¶àµÄÓû§ÇëÇó¡£µ±Ç°£¬Intel Pentium 4 Xeon ´¦ÀíÆ÷¾ßÓÐÄÚÖõij¬Ïß³ÌÓ²¼þ¡£

NUMA£¨²»Ò»ÖÂÄÚ´æ·ÃÎÊ£¬Non-Uniform Memory Access£©
NUMA ÊÇΪÌá¸ßϵͳÐÔÄÜÌí¼Óµ½ Linux 2.6 Äں˵ÄÁíÒ»¸öÖ÷ÒªÌØÐÔ¡£ÔÚÖ§³Ö¶à´¦ÀíÆ÷µÄ´«Í³Ä£ÐÍÖУ¨¶Ô³Æ¶à´¦Àí£¬»òÕß˵ÊÇ SMP£©£¬Ã¿¸ö´¦ÀíÆ÷¶ÔÄÚ´æºÍ I/O ÓÐͬµÈµÄ·ÃÎÊȨÏÞ¡£¶Ô´¦ÀíÆ÷×ÜÏߵĸßÕù¶áÂʳÉΪÐÔÄÜÆ¿Ïî¡£NUMA Ìåϵ½á¹¹¿ÉÒÔÔÚ²»Ôö¼Ó´¦ÀíÆ÷×ÜÏ߸ºÔصÄÇé¿öÏÂÌá¸ß´¦ÀíÆ÷Ëٶȡ£ÔÚ NUMA ϵͳÖУ¬Ã¿¸ö´¦ÀíÆ÷¾àij²¿·ÖÄÚ´æ½Ï½ü¶ø¾àÆäËûÄÚ´æ½ÏÔ¶¡£´¦ÀíÆ÷±»°²ÅÅÔÚ³ÆΪ¡°½Úµã¡±µÄ½ÏСµÄÇøÓòÖС£Ã¿¸ö½ÚµãÓÐÆä×Ô¼ºµÄ´¦ÀíÆ÷ºÍÄڴ棬½Úµã¼ä¿ÉÒÔ»¥ÏàͨÐÅ¡£´¦ÀíÆ÷·ÃÎʱ¾µØ½ÚµãµÄÄÚ´æÒª±È·ÃÎʲ»Í¬½ÚµãµÄÄÚ´æ¿ì¡£¾¡Á¿¼õÉÙ½Úµã¼äͨÐÅ¿ÉÒÔÌá¸ßϵͳµÄÐÔÄÜ¡£

Ϊ֧³Ö NUMA Ó²¼þ£¬Linux ÄÚºËÔÚ¶à¸ö·¶Î§µÄ½øÐÐÁËһϵÁиĽø£¬°üÀ¨µ÷ÊÔÆ÷£¬¶à· I/O£¬Ò»¸ö¿ÉÒÔÈÃÓû§¿ÉÒÔÁ˽âÓõ½µÄ´¦ÀíÆ÷ºÍÄÚ´æ×ÊÔ´·ÖÅäµÄÓû§¼¶ API£¬ºÍÄÚ²¿µÄÄÚºË API ÒÔʹÄÚºË×ÓϵͳÁ˽â NUMA ÍØÆË¡£NEC Azusa¡¢IBM x440 ºÍ IBM NUMA-Q ÊÇ NUMA »úÆ÷µÄÀý×Ó¡£

À©Õ¹µÄÉ豸֧³Ö
ÔÚ 2.6 ÄÚºËÖÐÖ§³Ö¸ü¶àÀàÐ͵ÄÉ豸¡£2.6 Äں˻¹½«Ö÷ʶ±ðºÅµÄÏÞÖÆ´Ó 255 Ôö¼Óµ½ 4095£¬²¢ÇÒÔÊÐíÿÖÖÀàÐÍ¿ÉÒÔÓжàÓÚ 100 Íò¸ö×ÓÉ豸¡£Õ⽫¸ø¸ß¶ËµÄÆóҵϵͳÒÔ×ã¹»µÄÖ§³Ö¡£

Ï̸߳Ľø
2.6 Äں˲ÉÓÃÁËеÄÏ߳̿⣬Native POSIX Thread Library (NPTL)¡£Õâ¸öпâ»ùÓÚ 1:1 Ä£ÐÍ£¬ÍêÈ«·ûºÏ POSIX ±ê×¼¡£Red Hat Ëù×÷µÄ²âÊÔ±íÃ÷£¬ÔÚÒ»¸öÀ쵀 IA-32 Ë« 450MHz PII Xeon ϵͳÉÏ£¬Ê¹Óà NPTL ¿ÉÒÔÔÚ 2.3 ÃëÖ®ÄÚ´´½¨ºÍÏú»Ù 100,000 ¸öÏß³Ì (ÔÚÈÎһʱ¿Ì×î¶à¿ÉÒÔͬʱÔËÐÐ 50 ¸öÏß³Ì)¡£

NPTL Ϊ¶àÏß³ÌÓ¦ÓóÌÐòÔÚ SMP »·¾³ÖдøÀ´Á˼«´óµÄÐÔÄÜÌá¸ß¡£ËüÓÈÆäÓÐÒæÓÚ³¬ÖØÁ¿¼¶µÄ¶àÏß³ÌÆóÒµ¼¶Ó¦ÓóÌÐò£¬ÀýÈç Java Ó¦ÓóÌÐò¡¢Web ·þÎñÆ÷ºÍÓ¦ÓóÌÐò·þÎñÆ÷Ó¦ÓóÌÐò¡£

2.6 ÄÚºËÖÐÁíÒ»¸ö¶ÔÏ̵߳ĸĽøÊÇ£¬¿É·ÖÅäµÄ PID ÊýÄ¿´Ó 32,000 Ôö¼Óµ½ÁË 10 ÒÚ¡£ÕâÒ»Ï̱߳仯¸ÄÉÆÁËÔÚÖظºÔØϵͳÖÐÓ¦ÓóÌÐòµÄÆô¶¯ÐÔÄÜ¡£ÓÉÓÚÔÊÐíµÄ PID ÉÏÏ޽ϵͣ¬2.4 ÄÚºËÓÐʱ»á³öÏÖÓ¦ÓóÌÐòÇëÇóµÄ PID ±àºÅ¹ý¸ßµÄÇé¿ö¡£

O(1) µ÷¶È³ÌÐò
0(1) µ÷¶È³ÌÐòÓÚ 2002 Äê±»½ÓÊܲ¢¼ÓÈëµ½¹Ù·½µÄ Linux 2.5 ÄÚºËÊ÷ÖС£0(1) µ÷¶È³ÌÐòͨ¹ý¸ÄÉÆ´óÁ¿½ø³ÌµÄÍÌÍÂÂÊÌá¸ßÁË Linux µÄÀ©Õ¹ÐÔºÍÕûÌåÉϵÄÐÔÄÜ£¬ÓÈÆäÊÇÔÚ´óÐ굀 SMP ÉÏ¡£0(1) ÔÚÈÎÎñºÍ CPU ÊýÄ¿¾Þ´óʱ¿ÉÒԺܺõØÀ©Õ¹£¬¾ßÓкÜÇ¿µÄ¡°Ç׺ÏÁ¦¡±£¬ÒÔ±ÜÃâÈÎÎñÔÚ CPU Ö®¼ä·´¸´Òƶ¯¡£0(1) µ÷¶È³ÌÐò»¹ÔÊÐí¿ç CPU µÄ¸ºÔØƽºâºÍ NUMA-aware ¸ºÔØƽºâ¡£

I/O ¸Ä½ø
¿é I/O ²ã
2.6 ÄÚºËÖеĿé I/O ²ã±»ÖØд£¬ÒÔÌá¸ßÄں˵ĿÉÀ©Õ¹ÐÔºÍÐÔÄÜ¡£2.4 ÖеÄÈ«¾Ö I/O ÇëÇóËø²»ÔÙʹÓá£ÔÚ 2.6 Öпé I/O »º³åÇø£¨kiobuf£©ÔÊÐí I/O ÇëÇó¿ÉÒÔ±È PAGE_SIZE ´ó¡£³öÏֵĴ󲿷ÖÎÊÌâÊÇÓɶԻº³åÇøÍ·ºÍ kiobuf µÄʹÓÃÒýÆðµÄ£¬ÔÚÕâ¸öеIJãÖÐÒѾ­µÃÒÔ´¦Àí¡£ÍêÈ«ÖØдÁË I/O µ÷¶È³ÌÐò¡£¶Ô SCSI µÄÖ§³ÖÒ²ÓÐÁËÖØ´óµÄ¸Ä½ø¡£

Òì²½ I/O
Òì²½ I/O ÊÇÔÚ 2.6 ÄÚºËÖÐгöÏֵġ£ËüΪ Web ·þÎñÆ÷ºÍÊý¾Ý¿âµÈÆóÒµÓ¦ÓóÌÐòµÄÀ©Õ¹ÌṩÁËÒ»¸ö;¾¶£¬¶ø²»±ØÇóÖúÓÃÓÚÍøÂçÁ¬½ÓµÄ¸´ÔÓµÄÄÚ²¿³Ø»úÖÆ¡£

ÆäËû¸Ä½ø
³ýÁËÕâЩ¸Ä½øÒÔÍ⣬»¹ÓÐÆäËûһЩֵµÃÒ»ÌáµÄ±ä»¯ºÍÐÂÌØÐÔ¡£ÀýÈ磬2.6 ÄÚºËÌṩÁ˶ÔһЩÐÂÎļþϵͳµÄÖ§³Ö£¬°üÀ¨ JFS¡¢XFS¡¢NFS v4 ºÍ Andrew File System (AFS)¡£ÐµÄÍøÂçЭÒéºÍÌØÐÔ£¬ÀýÈçÁ÷¿ØÖÆ´«ÊäЭÒé (Stream Control Transmission Protocol, SCTP)¡¢Internet Protocol Security (IPSec)¡¢¸Ä½øµÄ IPv6 Ö§³ÖºÍ IP Payload Compression (IPComp)£¬¸ø Linux 2.6 ÄÚºËÓû§ÌṩÁ˸üºÃµØÍøÂ簲ȫºÍ´«ÊäÖÊÁ¿¡£

²»ÊÇ 2.6 Äں˴øÀ´µÄÌá¸ß¶¼¿ÉÒÔÓ¦ÓÃÓÚÿһ¸öÆóÒµÓ¦ÓóÌÐò¡£ËüÃÇÖÐÓÐһЩÐèÒªÌض¨µÄÓ²¼þºÍÈí¼þ¡£ÎÞÂÛÈçºÎ£¬ÕâÀïÁгöµÄ´ó²¿·ÖÌá¸ß¶¼ÊÇÈ«ÃæµÄÄں˸Ľø£¬½«°ïÖú Linux ¿çÈëÆóÒµÃż÷¡£

²âÊÔ»ù´¡ÉèÊ©
ÔÚÕâÒ»½Ú£¬ÎÒ½«ÌÖÂÛ Web ·þÎñ²âÊÔÊÇÈçºÎ½øÐеģ¬°üÀ¨Ó²¼þ»·¾³¡¢Ñ¡ÔñµÄ Web ·þÎñÆ÷/Ó¦ÓóÌÐò·þÎñÆ÷ºÍ Web ²âÊÔ¹¤¾ß£¬ÒÔ¼°Õë¶ÔµäÐͲâÊÔÇéÐεIJâÊÔ²ßÂÔ¡£ÒÔϵÄÌÖÂÛ»ùÓÚ 2.6 Äںˡ£

Web ·þÎñ·þÎñÆ÷
ÔÚ Linux 2.6 Äں˲âÊÔÖÐʹÓÃÁËËĸö Web ·þÎñ·þÎñÆ÷¡£Á½¸öÊÇ Web ·þÎñÆ÷ (Apache ºÍ Jakarta-Tomcat)£¬ÁíÍâÁ½¸öÊÇÓ¦ÓóÌÐò·þÎñÆ÷£¨WebSphere Application Server ºÍ Jboss£©¡£

Apache ÊÇ´¦ÓÚÊг¡Áìµ¼µØλµÄ Web ·þÎñÆ÷¡£Netcraft Web Server Survey µÄµ÷²é½á¹ûÏÔʾ£¬Internet Éϳ¬¹ý 64% µÄ Web Õ¾µãÕýÔÚʹÓà Apache¡£ËüÊÇÒ»¸ö¿ª·ÅÔ´´úÂëµÄÏîÄ¿¡£

Jakarta-Tomcat ÊÇÒ»¸ö¿ª·ÅÔ´´úÂëµÄ servlet ÈÝÆ÷£¬´øÓо­ Apache Ðí¿ÉµÄ JSP »·¾³¡£Jakarta-Tomcat ÓÐÒ»¸öÄÚÖÃµÄ Web ·þÎñÆ÷£¬Ò²¿ÉÒÔÔÚ²úÆ·»·¾³ÖÐÓëÆäËû Web ·þÎñÆ÷Ò»ÆðʹÓá£

WebSphere Application Server ÊÇÒ»¸öÆóÒµ¼¶µÄÓ¦ÓóÌÐò·þÎñÆ÷£¬ÓÃÓÚ¶¯Ì¬µç×ÓÉÌÎñÓ¦ÓóÌÐò¡£Õâ¸ö·þÎñÆ÷µÄ»ù´¡ÊÇ J2EE ¼¼ÊõºÍ Web Services¡£WebSphere Application Server ¾ßÓкܸߵÄÐÔÄÜ£¬²¢ÌṩÁËÒ»¸ö¿ÉÒÔ¿çÔ½´ó²¿·Ö²Ù×÷ϵͳµÄ¸ß¶È¿ÉÀ©Õ¹µÄÊÂÎñÒýÇæ¡£Ô½À´Ô½¶àµÄ WebSphere Ó¦ÓóÌÐòÕýÔÚÓÉ´«Í³µÄ Unix OS Ïò Linux ǨÒÆ£¬ÒòΪÕâÑù¿ÉÒÔͨ¹ý¸üÉٵķÑÓöø»ñµÃ½üºõͬÑùµÄÐÔÄÜ¡£

Jboss Application Server Ò²ÊÇÒ»¸öÍêÈ«¾ß±¸ J2EE ÌØÐԵĿª·ÅÔ´´úÂëµÄÓ¦ÓóÌÐò·þÎñÆ÷¡£¿ªÊ¼Ê± Jboss ÊÇÒ»¸ö¿ª·ÅÔ´´úÂëµÄ EJB ÈÝÆ÷£¬¶øÏÖÔÚËüµÄÄ¿±êÊdzÉΪһ¸öÆóÒµ¿ÉÓõÄÓ¦ÓóÌÐò·þÎñÆ÷¡£

Web ²âÊÔ¹¤¾ß
ÔÚÍøÉÏ¿ÉÒÔ»ñµÃÏ൱¶àµÄ Web ²âÊÔ¹¤¾ßºÍ»ù×¼²âÊÔ¡£ÏÂÃæÊÇÎÒÃÇÖ÷ÒªÓÃÀ´ÔÚÎÒÃÇµÄ 2.6 Äں˲âÊÔ»·¾³ÖзÂÕæ Web-¿Í»§»úѹÁ¦µÄËĸö¿ª·ÅÔ´´úÂëµÄ¹¤¾ß£¨Çë²ÎÔÄ ²Î¿¼×ÊÁÏ£¬»ñµÃ¹ØÓÚÕâЩ¹¤¾ßµÄ¸ü¶àÐÅÏ¢£©£º

Httperf ÊÇÒ»¸öÓÃÀ´¶ÈÁ¿ Web ·þÎñÆ÷ÐÔÄܵŤ¾ß¡£Httperf ¹¤¾ß¿ÉÒÔ¿ØÖÆ·¢³öÇëÇóµÄËٶȡ¢×ÜÁ¬½ÓÊýºÍ³¬Ê±ÏÞÖÆ¡£
Hammerhead ÊÇÒ»¸öÉè¼ÆÓÃÓÚ²âÊÔ Web ·þÎñÆ÷µÄѹÁ¦²âÊÔ¹¤¾ß¡£Hammerhead ¿ÉÒÔÔÚÈÎÒâ¸ø¶¨µÄʱ¼ä³õʼ»¯¶à¸öÀ´×Ô IP ±ðÃûµÄÁ¬½Ó²¢Ä£Äâ¶à¸ö£¨256¸öÒÔÉÏ£©Óû§¡£
PagePoker ÊÇÒ»¸ö Perl °ü£¬Ëü¶¨ÒåÁËÒ»¸öä¯ÀÀÆ÷´úÀí£¬´øÓÐÓÃÓÚ²âÊÔ Web ·þÎñÆ÷µÄ²¿¼þ¡£PagePoker ¸½´øÁËÏàÓ¦ÓÚÈý¸ö²»Í¬ÓÃ;µÄ½Å±¾£¬°üÀ¨¶à¿Í»§»ú¡¢Ñ¹Á¦²âÊԺͻù×¼²âÊÔ¡£
Web Performance Tool (WPT) ÊÇ IBM ¿ª·¢µÄÒ»¸ö Web ²âÊÔ¹¤¾ß¡£

³ýÁËÇ°ÃæÌÖÂÛµÄÓÃÓÚ Web ·þÎñ²âÊԵŤ¾ß£¬IBM »¹ÓÐÒ»¸ö½Ð×ö Trade3 µÄ¹¤¾ß£¬ËüÊÇ WebSphere ¶Ëµ½¶Ë»ù×¼²âÊÔºÍÐÔÄÜʾÀýÓ¦ÓóÌÐò¡£Trade3 »ù×¼²âÊÔÄ£ÄâÒ»¸öÔÚÏß֤ȯ¾­¼ÍÓ¦ÓóÌÐò£¬²¢Ìṩһ¸öÕæʵµÄ¹¤×÷¸ººÉÀ´Çý¶¯ WebSphere ÐÔÄÜ×é¼þºÍ²¿¼þ¡£

²âÊÔ²ßÂÔ
Web ·þÎñ²âÊÔ½«ÏµÍ³ÊÓΪһ¸öÕûÌåÀ´³¢ÊÔ´´½¨Óû§·½°¸¡£µÚÒ»´ÎÔËÐÐʱ²âÊÔ³ÖÐøʱ¼äΪ×î³õµÄ 24 ¸öСʱ¡£µÚ¶þ´ÎÔËÐÐʱʱ¼äÑÓ³¤µ½ 96 ¸öСʱ£¬µÚÈý´ÎºÍµÚËÄ´ÎÔËÐзֱð³ÖÐø 7 ÌìºÍ 14 Ìì¡£ËùÓеķ½°¸¶¼»ùÓÚ²»Í¬µÄ·þÎñÆ÷ºÍ¿Í»§»ú¹¤¾ßµÄ×éºÏ£¬ÕâЩ·þÎñÆ÷ºÍ¿Í»§»ú¹¤¾ßÔËÐÐÓÚ×î¶à 8-· IBM xSeries ºÍ pSeries ·þÎñÆ÷ÉÏ¡£ÓÃϵͳÀûÓÃÂʼà²â¹¤¾ßÀ´¼Ç¼ÄÚºËѹÁ¦³Ì¶È¡£

ͼ 1 ±íʾµÄÊǼ¸¸ö²»Í¬µÄ²âÊÔ¹¤¾ßÈçºÎ¸¨Öú²»Í¬µÄ Web ·þÎñÆ÷»òÕßÓ¦ÓóÌÐò·þÎñÆ÷¡£²»Í¬µÄ²âÊÔ¹¤¾ßÉ跨ģÄⲻͬÀàÐ͵ÄÓû§»·¾³¡£

ͼ 1. ²âÊÔ»·¾³


ͼ 2 ±íʾµÄÊÇʹÓà IBM WebSphere ²úÆ·ºÍ»ù×¼²âÊÔ£¨Trade3£©µÄѹÁ¦²âÊÔ»·¾³£¬Ä£ÄâÁËÒ»¸öÔÚÏß֤ȯ¾­¼Í»·¾³¡£

ͼ 2. ѹÁ¦²âÊÔ»·¾³


²âÊÔ½á¹û×ܽá
ÏÂÃæµÄ²¿·Ö¸ø³öÁËWeb ·þÎñ²âÊÔµÄÒ»¸ö¼ò¶ÌÃèÊö£¬²âÊÔÒÔÎÒÃÇÔÚ 2.4/2.6 ÄÚºËËùÓõĵäÐÍ·½°¸½øÐС£ÔÚÒ»¸ö 8 · SMP IBM xSeries ϵͳÉϽøÐеĵäÐÍ Apache/WPT ²âÊÔ£¬Ö¤Ã÷ÁËÔÚ²¢²»Ó°Ïì·þÎñÖÊÁ¿Ç°ÌáÏ 2.6 ÄÚºËÉϵÄÏÔÖøÐÔÄܸĽø¡£

²âÊÔ»·¾³


»úÆ÷£ºIBM xSeries Netfinity 8500R 8681-7RY
CPU£º(8) Pentium III-700MHz
Äڴ棺9 GB
½»»»¿Õ¼ä£º2 GB
Linux ·¢Ðа汾£ºRed Hat 7.3
Web ·þÎñÆ÷£ºApache Http Server 2.0.47
Web ²âÊÔ¹¤¾ß£ºWPT 1.9.4

¹Û²â½á¹û


Á½´Î²âÊÔÔÚͬһϵͳÉÏÒÔÏàͬµÄÅäÖÃÍê³É¡£Î¨Ò»²»Í¬µÄÊÇÄں˵İ汾¡£
×Ô¶¯µÄ Web ²âÊÔ¹¤¾ß WPT ÓÃÓÚÄ£Äâ Web ¿Í»§»ú¡£´´½¨ÁË 30 ¸öÐéÄâµÄ¿Í»§»ú£¬Ã¿¸ö¿Í»§»úÓÐÁ½¸öÏ̡߳£
ÔÚͬÑù³¤µÄ³ÖÐøʱ¼äÄÚ£¬ÔÚ 2.6 ÄÚºËÉÏ Apache ·þÎñµÄ Web ÊýÄ¿±ÈÔÚ 2.4 ÄÚºËÉ϶à Î屶¡£ÔÚ 2.6 ÄÚºËÉÏ´¦ÀíÒ³µÄƽ¾ùʱ¼äÖ»ÊÇ 2.4 ÄÚºËÉ쵀 1/5¡£
ÔÚÁ½´Î 24 СʱµÄÔËÐÐÖУ¬Ã»Óз¢Éú²»³É¹¦µÄÁ¬½Ó£¬°üÀ¨Á¬½Óʧ°Ü¡¢ÏÈÇ°·þÎñÆ÷¹Ø±Õ¡¢ÇëÇóдʧ°ÜºÍ³¬Ê±¡£

±í 1. ½á¹û¶ÔÕÕ
ÄÚºË Æ½¾ù CPU ÀûÓÃÂÊ Æ½¾ùÄÚ´æÀûÓÃÂÊ Æ½¾ù½»»»¿Õ¼äÀûÓÃÂÊ ·þÎñµÄ Web Ò³×ÜÊý ÿÃë·þÎñµÄÒ³ ´¦ÀíµÄƽ¾ùʱ¼ä£¨ºÁÃ룩 ²»³É¹¦µÄÁ¬½Ó
2.4.18 -smp 100%£¨Óû§:7.38% ϵͳ:92.62%£© 6.41% 0% 8,845,147 102.37 294.44 0
2.6.0 -test5 99.42%£¨Óû§:39.35% ϵͳ:60.07%£© 35.96% 0% 53,827,939 623.00 57.71 0


ͼ 3. ·þÎñµÄ Web Ò³Óëʱ¼ä


½áÊøÓï
ÎÒÃÇÒѾ­Ö¤Ã÷£¬Ê¹ÓÃÒ»¸öµäÐ͵IJâÊÔ·½°¸ ---- ÔÚÒ»¸ö 8-· SMP IBM xSeries ϵͳÉÏʹÓà Apache/WPT ---- Apache ·þÎñÆ÷ÔÚ 2.6 ÄÚºËÉϱÈÔÚ 2.4 ÄÚºËÉϾßÓиüºÃµÄÀ©Õ¹ÐÔºÍÐÔÄÜ¡£ÔÚͬһ¸öϵͳÉÏ£¬ÏàͬµÄ¹¤×÷¸ººÉÇé¿öÏ£¬Ïà¶ÔÓÚ 2.4.18 Äںˣ¬Ê¹Óà 2.6.0-test5 ÄÚºËµÄ Apache ¸üÓÐЧµÄÀûÓÃϵͳ×ÊÔ´£¬²¢¶à·þÎñ 5 ±¶ÍøÒ³¡£ÕâÒ»ÕæʵµÄÊý¾ÝÖ¤Ã÷¶àÖÖÌØÐԺͱ仯°ïÖú 2.6 Äں˾߱¸Á˸üºÃµÄ¿ÉÀ©Õ¹ÐÔºÍÐÔÄÜ£¬Í¬Ê±¸ü³ÉÊìµØÓÃÓÚÆóÒµ¼¶Ó¦ÓóÌÐò¡£

²Î¿¼×ÊÁÏ

2.5 ²âÊԼƻ® ºÍ Ö´Ðмƻ® ¶¼¿ÉÒÔÔÚ SourceForge Éϵõ½¡£


²âÊÔÖз¢ÏÖµÄȱÏÝÔÚ Linux ÄÚºËȱÏÝ×·×Ùϵͳ Öб¨¸æ¡£


Httperf ÓÃÓÚ¶ÈÁ¿ Web ·þÎñÆ÷µÄÐÔÄÜ¡£


Hammerhead ÊÇÒ»¸ö Web ·þÎñÆ÷ѹÁ¦²âÊÔ¹¤¾ß¡£


PagePoker ÊÇÒ»¸ö Perl °ü£¬Ëü¶¨ÒåÁËÒ»¸öä¯ÀÀÆ÷´úÀí£¬´øÓÐÓÃÓÚ²âÊÔ Web ·þÎñÆ÷µÄ²¿¼þ¡£


Web Performance Tool (WPT)£¬Ò²³ÆΪ Akstress£¬ÊÇÓÉ IBM ¿ª·¢µÄ¡£WPT ÒѾ­¡°ÍËÐÝ¡±ÁË£¬ÒòΪËüµÄ¹¦ÄÜÏÖÓÐµÄ IBM ¹¤¾ß¶¼¿ÉÒÔÌṩ£¬°üÀ¨ Rational Suite Test Studio ºÍ WebSphere Studio Workload Simulator¡£


Trade3 ÊÇ IBM »ùÓÚ WebSphereµÄ ¶Ëµ½¶Ë»ù×¼²âÊÔºÍÐÔÄÜʾÀýÓ¦ÓóÌÐò¡£


ÓÃÓÚ²âÊԵķþÎñÆ÷ÊÇ ApacheJakarta-Tomcat¡¢IBM WebSphere Application Server ºÍ Jboss¡£


ÒªÉîÈëÁ˽â 2.6 Äںˣ¬ÇëÔĶÁ Ulrich Weigand µÄÌâΪ¡°What¡¯s new in Linux 2.6?¡±µÄ½éÉÜ¡£


Joseph Pranevich µÄ The Wonderful World of Linux 2.6 ÊǹØÓÚÐÂÄÚºËÌØÐԵļ«ºÃ¶ÁÎµ«ÊÇ£¬ÎÞ¿É·ñÈϵأ¬´øÓÐ¶Ô i386 Linux µÄÆ«°®£©¡£


¡°¸ÄÉÆ Linux ÄÚºËÐÔÄܺͿÉÉìËõÐÔ¡±£¨developerWorks£¬2003 Äê 1 Ô£©£¬ÌÖÂÛÁËÓÉ LTC µÄһЩ³ÉÔ±½øÐеIJâÊÔ£¬º­¸ÇÁËÒ»×é¸÷²»ÏàͬµÄ¹¤×÷¸ººÉ£¬°üÀ¨´ÅÅ̺Ϳé I/O¡¢SMP À©Õ¹ÐÔ£¬µÈµÈ¡£


¡°²âÊÔ Linux µÄ¿É¿¿ÐÔ¡±£¨developerWorks£¬2003 Äê 12 Ô£©ÃèÊöÁËÔÚ 2.4 ÄÚºËÉϵõ½µÄÏ꾡¿É¿¿ÐÔ²âÊԵĽá¹û¡£


ÔÚ developerWorks Linux רÇø ¿ÉÒÔÕÒµ½¸ü¶àΪ Linux ¿ª·¢Õß×¼±¸µÄ×ÊÁÏ¡£


ÔÚ Developer Bookstore µÄ Linux רÇø Äú¿ÉÒÔÕÒµ½ºÜ¶à¾«Ñ¡µÄ¹ØÓÚ Linux µÄÊé¼®¡£



¹ØÓÚ×÷Õß
Li Ge ÊÇ IBM Linux Technology Center µÄרְÈí¼þ¹¤³Ìʦ¡£ËýÓÚ 2001 Äê±ÏÒµÓÚÐÂÄ«Î÷¸çÖÝÁ¢´óѧ£¬»ñ¼ÆËã»ú¿Æѧ˶ʿѧλ¡£ËýÓÐÈýÄêµÄ Linux ¹¤×÷¾­Ñ飬µ±Ç°µÄ¹¤×÷ÊÇ Linux ÄÚºËÑéÖ¤ºÍ Linux ¿É¿¿ÐÔ¶ÈÁ¿¡£¿ÉÒÔͨ¹ý lge-at-us.ibm.com ÓëËýÁªÏµ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 6 ÌõÆÀÂÛ

  1. 8688 ÓÚ 2005-10-21 00:02:36·¢±í:

    ºÜºÃ£¬Ç¿ÁÒÖ§³Ö

  2. ABC ÓÚ 2005-09-19 00:33:48·¢±í:

    Ö§³Ö

  3. bluesky22 ÓÚ 2005-08-19 18:31:31·¢±í:

    Ç¿ÁÒÖ§³Ö¡«¡«

  4. °®µÄ±ßÔµ ÓÚ 2005-08-18 00:27:03·¢±í:

    ÊܽÌ

  5. »ð ÓÚ 2005-07-22 00:08:14·¢±í:

    Á˽â

  6. ·çÓêÎÞ×è ÓÚ 2005-07-05 00:12:32·¢±í:

    ¶¥