From berhoeckner at googlemail.com Mon Mar 2 04:54:17 2009 From: berhoeckner at googlemail.com (=?ISO-8859-1?Q?Bernhard_H=F6ckner?=) Date: Mon Mar 2 04:54:23 2009 Subject: domU page faults under heavy network load In-Reply-To: <14830020.49681234901798034.JavaMail.root@zim.freshx.de> References: <13712113.49661234900587705.JavaMail.root@zim.freshx.de> <14830020.49681234901798034.JavaMail.root@zim.freshx.de> Message-ID: <59208d7f0903020454g17c1fbedifc5b2da04761ff77@mail.gmail.com> Hi, i had similar panics while trying to scp something from domU to dom0. When scp to a real host everything went ok. Kernel with the config from HEAD: login: Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex xennetif_tx (network transmit lock) r = 0 (0xc15f0084) locked @ /usr/home/yuri/xen/src/src/sys/dev/xen/netfront/netfront.c:1388 KDB: stack backtrace: X_db_sym_numargs(c0349f61,ca0baa94,c0110026,56c,0,...) at X_db_sym_numargs+0x136 kdb_backtrace(56c,0,ffffffff,c04fd334,ca0baacc,...) at kdb_backtrace+0x29 witness_display_spinlock(c034c296,ca0baae0,4,1,0,...) at witness_display_spinlock+0x76 witness_warn(5,0,c037441d,c0367b24,c,...) at witness_warn+0x1ef trap(ca0bab68) at trap+0x11b alltraps(c1556800,0,c036c038,427,c1502480,...) at alltraps+0x1b xlvbd_add(c15f0000,ca0bacc8,c00c00a2,c03c1140,c154d4b8,...) at xlvbd_add+0x3b4a intr_event_execute_handlers(c15007ec,c154d480,c0342dcc,4dd,c154d4f0,...) at intr_event_execute_handlers+0x125 intr_event_add_handler(c1554140,ca0bad38,c0342b17,32d,c15007ec,...) at intr_event_add_handler+0x41f fork_exit(c00aedf0,c1554140,ca0bad38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xca0bad70, ebp = 0 --- Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xc7e7bd00 fault code = supervisor read, page not present instruction pointer = 0x21:0xc02ee0ce stack pointer = 0x29:0xca0baba8 frame pointer = 0x29:0xca0babfc code segment = base 0x0, limit 0xf67ff, type 0x1b = DPL 1, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 12 (irq135: xn) [thread pid 12 tid 100023 ] Stopped at xlvbd_add+0x300e: movl 0x900(%edx,%eax,4),%edx db> nm -n kernel | grep c02ee c02ee480 t xn_intr c02eec60 t xen_net_read_mac c02eed80 T network_connect ======================== Kernel with SMBFS added: Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex xennetif_tx (network transmit lock) r = 0 (0xc15ff084) locked @ /usr/src/sys/dev/xen/netfront/netfront.c:1388 KDB: stack backtrace: X_db_sym_numargs(c0361f75,ca0aea94,c0119515,c0383945,56c,...) at X_db_sym_numargs+0x146 kdb_backtrace(c0383945,56c,ffffffff,c0515d74,ca0aeacc,...) at kdb_backtrace+0x29 witness_display_spinlock(c0364202,ca0aeae0,4,1,0,...) at witness_display_spinlock+0x75 witness_warn(5,0,c038bc29,c037f5f3,c,...) at witness_warn+0x1fd trap(ca0aeb68) at trap+0x10e alltraps(c14ed800,0,c0383945,427,e4e85800,...) at alltraps+0x1b xlvbd_add(c15ff000,ca0aecc8,c00c9ff4,c03d9b80,c150aa38,...) at xlvbd_add+0x3ab0 intr_event_execute_handlers(c150d7ec,c150aa00,c035b0e6,4dd,c150aa70,...) at intr_event_execute_handlers+0x125 intr_event_add_handler(c150cb90,ca0aed38,c035ae55,32d,c150d7ec,...) at intr_event_add_handler+0x41f fork_exit(c00b8d70,c150cb90,ca0aed38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xca0aed70, ebp = 0 --- Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xc7b1e900 fault code = supervisor read, page not present instruction pointer = 0x21:0xc03029d0 stack pointer = 0x29:0xca0aeba8 frame pointer = 0x29:0xca0aebfc code segment = base 0x0, limit 0xf67ff, type 0x1b = DPL 1, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 12 (irq135: xn) [thread pid 12 tid 100023 ] Stopped at xlvbd_add+0x2f70: movl 0x900(%edx,%eax,4),%edx db> nm -n kernel | grep c0302 c0302450 t xn_ifinit_locked c0302500 t xn_ifinit c0302560 t xn_ioctl c03027b0 t xn_start c0302d70 t xn_intr From syso.fml at no-route.org Thu Mar 26 18:53:06 2009 From: syso.fml at no-route.org (Sylwester Sosnowski) Date: Thu Mar 26 18:53:18 2009 Subject: FreeBSD 7.1-RELEASE Xen DomU (HVM) success Message-ID: <49CC3173.8010700@no-route.org> Hi, I've successfully set up FreeBSD 7.1-RELEASE amd64 in a Xen DomU with HVM (Hardware Virtual Machine). For some reason the DomU didn't mount root if ACPI was disabled in the Xen configuration (acpi=0). The whole setup was pretty stable and fast. I've measured a network throughput (using a RTL8139+ virtual interface, ioemu, 100Mbit/s Fast Ethernet) of 94-96 Mbit/s between Dom0 and DomU. The clock source also seems to be stable. You can find my configuration and some dmesg output here[1]. If anyone is interested in following my work, feel free to contact me by E-Mail or by answering here. Regards, Sylwester From syso.fml at no-route.org Thu Mar 26 18:53:11 2009 From: syso.fml at no-route.org (Sylwester Sosnowski) Date: Thu Mar 26 18:53:18 2009 Subject: FreeBSD 7.1-RELEASE Xen DomU (HVM) success Message-ID: <49CC2CCC.1090205@no-route.org> Hi, I've successfully set up FreeBSD 7.1-RELEASE amd64 in a Xen DomU with HVM (Hardware Virtual Machine). For some reason the DomU didn't mount root if ACPI was disabled in the Xen configuration (acpi=0). The whole setup was pretty stable and fast. I've measured a network throughput (using a RTL8139+ virtual interface, ioemu, 100Mbit/s Fast Ethernet) of 94-96 Mbit/s between Dom0 and DomU. The clock source also seems to be stable. You can find my configuration and some dmesg output here[1]. If anyone is interested in following my work, feel free to contact me by E-Mail or by answering here. Regards, Sylwester From syso.fml at no-route.org Thu Mar 26 19:36:15 2009 From: syso.fml at no-route.org (Sylwester Sosnowski) Date: Thu Mar 26 19:36:21 2009 Subject: FreeBSD 7.1-RELEASE Xen DomU (HVM) success In-Reply-To: <49CC3173.8010700@no-route.org> References: <49CC3173.8010700@no-route.org> Message-ID: <49CC3B8F.4010303@no-route.org> Sorry I've forgot to attach the URL in the previous posting. http://tmp.no-route.org/~syso/freebsd-xen/ From mister.olli at googlemail.com Fri Mar 27 07:35:08 2009 From: mister.olli at googlemail.com (Mister Olli) Date: Fri Mar 27 07:35:15 2009 Subject: Compiling CURRENT with XEN config fails Message-ID: <1238162602.24399.29.camel@phoenix.blechhirn.net> Hi, I just tried to compile CURRENT kernel with the XEN kernel config that is shipped with it, but it fails with the following error: cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/xen/evtchn/evtchn.c /usr/src/sys/xen/evtchn/evtchn.c:516: error: conflicting types for 'bind_virq_to_irqhandler' /usr/src/sys/xen/xen_intr.h:61: error: previous declaration of 'bind_virq_to_irqhandler' was here /usr/src/sys/xen/evtchn/evtchn.c: In function 'bind_virq_to_irqhandler': /usr/src/sys/xen/evtchn/evtchn.c:523: error: 'arg' undeclared (first use in this function) /usr/src/sys/xen/evtchn/evtchn.c:523: error: (Each undeclared identifier is reported only once /usr/src/sys/xen/evtchn/evtchn.c:523: error: for each function it appears in.) *** Error code 1 Stop in /usr/obj/usr/src/sys/XEN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. template-8_CURRENT# svn info http://svn.freebsd.org/base/head /usr/src Path: head URL: http://svn.freebsd.org/base/head Repository Root: http://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 190466 Node Kind: directory Last Changed Author: jamie Last Changed Rev: 190466 Last Changed Date: 2009-03-27 14:13:59 +0100 (Fri, 27 Mar 2009) Path: /usr/src URL: http://svn.freebsd.org/base/head Repository Root: http://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 190464 Node Kind: directory Schedule: normal Last Changed Author: dds Last Changed Rev: 190464 Last Changed Date: 2009-03-27 12:03:02 +0100 (Fri, 27 Mar 2009) Anybody knows how to fix this??? ;-)) greetz Olli From kay.wanous at gmail.com Mon Mar 30 09:09:33 2009 From: kay.wanous at gmail.com (Kay Wanous) Date: Mon Mar 30 09:09:40 2009 Subject: FreeBSD 7.1-RELEASE Xen DomU (HVM) success In-Reply-To: <49CC3B8F.4010303@no-route.org> References: <49CC3173.8010700@no-route.org> <49CC3B8F.4010303@no-route.org> Message-ID: Hi all, Thanks Sylwester for posting your config, etc. Do you have some documentation up as to how you created the FreeBSD DomU? I'm not that experienced with Xen and I'm having a hard time figuring out how to get started. I'm trying to install FreeBSD as a DomU on a DomO of Debian lenny. I am seeing a fair amount of nice documentation but it all seems to point to http://www.fsmware.com/xenofreebsd/7.0/download/ or similar for starting configurations, but DNS for the site appears to be down. Has it changed domain names? Thanks, Kay On Thu, Mar 26, 2009 at 10:35 PM, Sylwester Sosnowski wrote: > Sorry I've forgot to attach the URL in the previous posting. > > http://tmp.no-route.org/~syso/freebsd-xen/ > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" > From syso.fml at no-route.org Mon Mar 30 10:12:59 2009 From: syso.fml at no-route.org (Sylwester Sosnowski) Date: Mon Mar 30 10:13:05 2009 Subject: FreeBSD 7.1-RELEASE Xen DomU (HVM) success In-Reply-To: References: <49CC3173.8010700@no-route.org> <49CC3B8F.4010303@no-route.org> Message-ID: <49D0FD8F.4070302@no-route.org> Kay Wanous wrote: > Hi all, > > Thanks Sylwester for posting your config, etc. Do you have some > documentation up as to how you created the FreeBSD DomU? I'm not that > experienced with Xen and I'm having a hard time figuring out how to > get started. > > Sure. Because I've got a bunch of E-Mail requests of people asking me how to configure Xen and run a FreeBSD DomU with HVM in it I've just finished writing some still alpha-state documentation. You can find it at http://tmp.no-route.org/~syso/tmp/setting_up_xen_with_hvm_draft2.html Sorry, I'm not a native english speaker. If you've got a question or suggestion feel free to send me an E-Mail or asking your question here (as long it's not off-topic). Regards, Sylwester