From: =?iso-2022-jp?B?GyRCO1ZHSBsoQiAbJEJFYhsoQg==?= Subject: Apache CGI Performance Big Degration in Dom0 vs. Native Date: Wed, 23 May 2007 17:15:11 +0800 (CST) Message-ID: <126967.7968.qm@web15309.mail.cnb.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi there,=0A=0AI ran a test on an Apache server, the workload is a hellowor= ld.c compiled cgi, very simple. OS is SLES 10. The stress tool is ab (apach= e bench).=0A=0AThe performance looks big degration from native to Dom0:=0A= =0ARunning in prefork mode:=0A=0A Nat= ive Dom0=0APerformance(request/s) 3700 = . 650=0ACPU% 75% = 99%=0A=0A=0A=0ARunning in worker mode:=0A = Native Dom0= =0APerformance(request/s) 1750. 769=0ACPU= % 32% 26%=0A=0A= =0AAlso running XenOprof and Oprof as below clock cycles data:=0A=0ADomain = 0, worker:=0ACPU: Core 2, speed 2666.75 MHz (estimated)=0ACounted CPU_CLK_U= NHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unh= alted core cycles) count 100000=0Asamples % image name = app name symbol name=0A71855 4.6699 xen-syms-pae-3.0= .4_13138-0.33 xen-syms-pae-3.0.4_13138-0.33 get_page_from_l1e=0A71812 4= .6672 xen-syms-pae-3.0.4_13138-0.33 xen-syms-pae-3.0.4_13138-0.33 handle_e= xception=0A58634 3.8107 xen-syms-pae-3.0.4_13138-0.33 xen-syms-pae-3.0= .4_13138-0.33 put_page_from_l1e=0A56301 3.6591 xen-syms-pae-3.0.4_1313= 8-0.33 xen-syms-pae-3.0.4_13138-0.33 do_update_va_mapping=0A49543 3.219= 9 vmlinux-2.6.16.46-0.10-xenpae vmlinux-2.6.16.46-0.10-xenpae _spin_lock= =0A=0ADomain 0, Prefork:=0ACPU: Core 2, speed 2666.75 MHz (estimated)=0ACou= nted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mas= k of 0x00 (Unhalted core cycles) count 100000=0Asamples % image nam= e app name symbol name=0A492796 20.0510 xe= n-syms-pae-3.0.4_13138-0.33 xen-syms-pae-3.0.4_13138-0.33 do_update_va_mapp= ing=0A268506 10.9251 xen-syms-pae-3.0.4_13138-0.33 xen-syms-pae-3.0.4_13= 138-0.33 ptwr_do_page_fault=0A81074 3.2988 xen-syms-pae-3.0.4_13138-0.= 33 xen-syms-pae-3.0.4_13138-0.33 test_all_events=0A72424 2.9468 xen-sy= ms-pae-3.0.4_13138-0.33 xen-syms-pae-3.0.4_13138-0.33 get_page_from_l1e=0A6= 6056 2.6877 xen-syms-pae-3.0.4_13138-0.33 xen-syms-pae-3.0.4_13138-0.3= 3 handle_exception=0A61031 2.4832 xen-syms-pae-3.0.4_13138-0.33 xen-sy= ms-pae-3.0.4_13138-0.33 do_mmu_update=0A=0ANative, Worker:=0ACPU: Core 2, s= peed 2667.14 MHz (estimated)=0ACounted CPU_CLK_UNHALTED events (Clock cycle= s when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 10= 0000=0Asamples % app name symbol name=0A46048 5= .8715 vmlinux-2.6.16.46-0.10-bigsmp kmap_atomic=0A41587 5.3027 vmlinu= x-2.6.16.46-0.10-bigsmp copy_page_range=0A39759 5.0696 vmlinux-2.6.16.= 46-0.10-bigsmp unmap_vmas=0A38722 4.9373 vmlinux-2.6.16.46-0.10-bigsmp= page_fault=0A30638 3.9066 vmlinux-2.6.16.46-0.10-bigsmp page_remove_r= map=0A29481 3.7591 vmlinux-2.6.16.46-0.10-bigsmp __handle_mm_fault=0A= =0A=0ANative Prefork:=0ACPU: Core 2, speed 2667.14 MHz (estimated)=0ACounte= d CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask o= f 0x00 (Unhalted core cycles) count 100000=0Asamples % app name = symbol name=0A47505 6.9430 vmlinux-2.6.16.46-0.10-bigsmp = kmap_atomic=0A41182 6.0189 vmlinux-2.6.16.46-0.10-bigsmp page_fault=0A= 36425 5.3236 vmlinux-2.6.16.46-0.10-bigsmp copy_page_range=0A34533 = 5.0471 vmlinux-2.6.16.46-0.10-bigsmp unmap_vmas=0A32155 4.6996 vmlin= ux-2.6.16.46-0.10-bigsmp __handle_mm_fault=0A30848 4.5085 vmlinux-2.6.= 16.46-0.10-bigsmp find_get_page=0A28589 4.1784 vmlinux-2.6.16.46-0.10-= bigsmp page_remove_rmap=0A=0AOn pure HTML workload, I find little performan= ce gap between domain 0 and Native, and neither so much Memory and Page ope= ration.=0AIs the Domain 0 performance for CGI degration because of Xen Memo= ry and Page ineffiencency? Any hints or experience on this?=0A=0A=0Athanks = in advance=0A=0ARgds=0AHunter Tang=0A=0A=0A __________________________= _________________________________ =0A=C7=C0=D7=A2=D1=C5=BB=A2=C3=E2=B7=D1= =D3=CA=CF=E43.5G=C8=DD=C1=BF=A3=AC20M=B8=BD=BC=FE=A3=A1 =0Ahttp://cn.mail.y= ahoo.com