Subject: xen3, dom0 damm slow
To: NetBSD/xen <port-amd64@NetBSD.org>
From: Joel CARNAT <joel@carnat.net>
List: port-amd64
Date: 08/02/2006 17:26:30
--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I'm giving a try to NetBSD/xen3 dom0.
Everything booted up - except it took 30min to get the prompt.

The machine is a Dell Optiplex GX270 (P4 2GHz, with 700Mo of RAM).
The NetBSD/i386 3.99.23 seems to work well.
Dom0 is given 512Mo.
But since I boot the xen kernel everything slows down.
It seems that the kernel boot itself is OK and the slownest begins when
the disk is mounted.

When I leave the machine alone, it seems to sleep "well":
########################################################################
load averages:  0.06,  0.21,  0.25                  up 0 days,  1:43 17:57:=
27
36 processes:  35 sleeping, 1 on processor
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% id=
le
Memory: 19M Act, 11M Wired, 5232K Exec, 6156K File, 461M Free
Swap: 1025M Total, 1025M Free

  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
   18 root      18    0     0K   17M syncer     3:41  0.00%  0.00% [ioflush]
  346 root       2    0   180K  872K kqread     3:40  0.00%  0.00% syslogd
  988 root       2    0   336K 2848K select     2:08  0.00%  0.00% sshd
  174 root       3   -4   152K 1688K ttyin      1:22  0.00%  0.00% login
  799 root       2    0   196K 1000K select     1:13  0.00%  0.00% master
  291 root       2    0  5028K 4812K netcon     0:48  0.00%  0.00% python2.3
  798 postfix    2    0   208K 1020K select     0:40  0.00%  0.00% pickup
  171 root      10    0   244K  812K nanoslee   0:24  0.00%  0.00% cron
  728 root       2    0   288K 1444K select     0:23  0.00%  0.00% sshd
  173 postfix    2    0   252K 1060K select     0:23  0.00%  0.00% qmgr
    7 root      10    0     0K   17M usbevt     0:03  0.00%  0.00% [usb3]
   19 root     -18    0     0K   17M aiodoned   0:02  0.00%  0.00% [aiodone=
d]
    8 root      10    0     0K   17M usbevt     0:01  0.00%  0.00% [usb4]
 1021 root      28    0   180K 1028K CPU        0:00  0.00%  0.00% top
########################################################################

/ is formatted as FFSv2 (softdep on - off tested too).
is this a know problem ?

the release was build on an amd64 machine (running 3.99.23/i386) using
no additionnal flags except '-pipe'. GCC is 4.1.2.

commands like 'top', 'ps', ... runs at normal speed.
but if I try a 'ls /usr/pkgsrc', it takes a few 10th of seconds the
first time, then it takes less than a second.=20

dmesg gives:
########################################################################
NetBSD 3.99.23 (XEN3_DOM0) #0: Sun Jul 30 13:49:47 CEST 2006
        root@atheria.tumfatig.net:/usr/src/sys/arch/i386/compile/obj/XEN3_D=
OM0
total memory =3D 512 MB
avail memory =3D 492 MB
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium 4 (686-class), 2261.00 MHz, id 0xf29
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu0: L2 cache 512 KB 64B/line 8-way
cpu0: ITLB 4K/4M: 128 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: 16 page colors
hypervisor0 at mainbus0
debug virtual interrupt using event channel 1
xenbus0 at hypervisor0: Xen Virtual Bus Interface
xencons0 at hypervisor0: Xen Virtual Console Driver
npx0 at hypervisor0: using exception 16
pci0 at hypervisor0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82865 Host (rev. 0x02)
pchb0: unable to read from random number generator.
agp0 at pchb0: detected 8060k stolen memory
agp0: aperture at 0xe8000000, size 0x8000000
vga0 at pci0 dev 2 function 0: Intel 82865G Integrated Graphics Device (rev=
=2E 0x02)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0: Intel 82801EB/ER USB UHCI Controller (rev.=
 0x02)
uhci0: interrupting at irq 11, event channel 2
xen_alloc_contig: XENMEM_decrease_reservation failed!
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 82801EB/ER USB UHCI Controller (rev.=
 0x02)
uhci1: interrupting at irq 10, event channel 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 82801EB/ER USB UHCI Controller (rev.=
 0x02)
uhci2: interrupting at irq 9, event channel 4
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: Intel 82801EB/ER USB UHCI Controller (rev.=
 0x02)
uhci3: interrupting at irq 11, event channel 2
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 82801EB/ER USB EHCI Controller (rev.=
 0x02)
ehci0: interrupting at irq 5, event channel 5
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb0 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0xc2)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
wm0 at pci1 dev 12 function 0: Intel i82540EM 1000BASE-T Ethernet, rev. 2
wm0: interrupting at irq 9, event channel 4
wm0: 32-bit 33MHz PCI bus
wm0: 256 word (8 address bits) MicroWire EEPROM
wm0: Ethernet address 00:0b:db:d3:05:0b
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000bas=
eT-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801EB LPC Interface Bridge (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801EB IDE Controller (ICH5) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel using event channel 6 for irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel using event channel 7 for irq 15
atabus1 at piixide0 channel 1
piixide1 at pci0 dev 31 function 2
piixide1: Intel 82801EB Serial ATA Controller (rev. 0x02)
piixide1: bus-master DMA support present
piixide1: primary channel configured to native-PCI mode
piixide1: using irq 9, event channel 4 for native-PCI interrupt
atabus2 at piixide1 channel 0
piixide1: secondary channel configured to native-PCI mode
atabus3 at piixide1 channel 1
Intel 82801EB/ER SMBus Controller (SMBus serial bus, revision 0x02) at pci0=
 dev 31 function 3 not configured
auich0 at pci0 dev 31 function 5: i82801EB (ICH5) AC-97 Audio
auich0: interrupting at irq 3, event channel 8
auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D st=
ereo
auich0: ac97: ext id 601<AC97_22,AMAP,VRA>
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsprobe: reset error 5
Xen clock: using event channel 11
auich0: measured ac97 link rate at 47996 Hz, will use 48000 Hz
audio0 at auich0: full duplex, mmap, independent
crypto: assign driver 0, flags 2
crypto: driver 0 registers alg 1 flags 0 maxoplen 0
crypto: driver 0 registers alg 2 flags 0 maxoplen 0
crypto: driver 0 registers alg 3 flags 0 maxoplen 0
crypto: driver 0 registers alg 4 flags 0 maxoplen 0
crypto: driver 0 registers alg 5 flags 0 maxoplen 0
crypto: driver 0 registers alg 17 flags 0 maxoplen 0
crypto: driver 0 registers alg 6 flags 0 maxoplen 0
crypto: driver 0 registers alg 7 flags 0 maxoplen 0
crypto: driver 0 registers alg 15 flags 0 maxoplen 0
crypto: driver 0 registers alg 8 flags 0 maxoplen 0
crypto: driver 0 registers alg 16 flags 0 maxoplen 0
crypto: driver 0 registers alg 9 flags 0 maxoplen 0
crypto: driver 0 registers alg 10 flags 0 maxoplen 0
crypto: driver 0 registers alg 13 flags 0 maxoplen 0
crypto: driver 0 registers alg 14 flags 0 maxoplen 0
crypto: driver 0 registers alg 11 flags 0 maxoplen 0
crypto: driver 0 registers alg 18 flags 0 maxoplen 0
raidattach: Asked for 8 units
Kernelized RAIDframe activated
xenbus0: using event channel 12
uhub5 at uhub4 port 7
uhub5: NEC Corporation USB2.0 Hub Controller, class 9/0, rev 2.00/1.00, add=
r 2
uhub5: single transaction translator
uhub5: 4 ports with 4 removable, self powered
uhidev0 at uhub5 port 1 configuration 1 interface 0
uhidev0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 3, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0 at atabus0 drive 0: <IC35L060AVV207-0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 38146 MB, 77504 cyl, 16 head, 63 sec, 512 bytes/sect x 78125000 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DM=
A)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <Lite-On LTN486S 48x Max, , YDS6> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying lfs...
mountroot: trying ffs...
root file system type: ffs
readclock: 1154528052 (1154528007)
init: copying out path `/sbin/init' 11
wsdisplay0: screen 4 added (80x25, vt100 emulation)
########################################################################

any idea ?

TIA,
	Jo

--T4sUOijqQbZv57TR
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFE0MQm0/VH7L7F7Y4RApg+AJ41LeFsqLMWo4fJicc/yNs2+CI91QCfQ7Z9
MH/eAQgJEKlnnjXN2nNiygA=
=m9V1
-----END PGP SIGNATURE-----

--T4sUOijqQbZv57TR--