Discussion:
openbsd v. 6.1 run as xen guest has constant load 1
Imre Oolberg
2017-04-12 22:04:09 UTC
Permalink
Hi!

I have run OpenBSD as Xen guest for some time now, at times
unsuccessfully, most of the time it runs beautifully.

I tried new OpenBSD v. 6.1 to run as Xen guest and it has constant load
of 1, other than that cant say anything is wrong with it (although i
have tested it much yet). guest has one cpu and runs on mp kernel.

My Xen platform is hand compiled v. 4.5.1 running on Debian v. 8 Jessie.
I think platform is all right because OpenBSD v. 6.0 runs there ok.

6.1 dmesg is

OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr 1 13:45:56 MDT 2017
***@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 377483264 (359MB)
avail mem = 361455616 (344MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfc001000 (11 entries)
bios0: vendor Xen version "4.5.1" date 07/12/2015
bios0: Xen HVM domU
acpi0 at bios0: rev 2
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP APIC HPET WAET SSDT SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 48 pins
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5-1603 0 @ 2.80GHz, 2800.46 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,HV,NXE,LONG,LAHF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2800458040 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
acpihpet0 at acpi0: 62500000 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
"PNP0F13" at acpi0 not configured
"PNP0303" at acpi0 not configured
"PNP0700" at acpi0 not configured
"PNP0501" at acpi0 not configured
"ACPI0007" at acpi0 not configured
pvbus0 at mainbus0: Xen 4.5
xen0 at pvbus0: features 0x705, 32 grant table frames, event channel 1
xbf0 at xen0 backend 0 channel 5: disk
scsibus1 at xbf0: 2 targets
sd0 at scsibus1 targ 0 lun 0: <Xen, phy hda 768, 0000> SCSI3 0/direct
fixed
sd0: 12288MB, 512 bytes/sector, 25165824 sectors
xbf1 at xen0 backend 0 channel 6: cdrom
scsibus2 at xbf1: 2 targets
cd0 at scsibus2 targ 0 lun 0: <Xen, qdisk hdd 5696, 0000> SCSI3 5/cdrom
fixed
"vkbd" at xen0: device/vkbd/0 not configured
xnf0 at xen0 backend 0 channel 7: address 70:31:44:06:66:66
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 1
scsibus3 at atapiscsi0: 2 targets
cd1 at scsibus3 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 2.0.> ATAPI 5/cdrom
removable
cd1(pciide0:1:1): using PIO mode 4, DMA mode 2
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: SMBus
disabled
xspd0 at pci0 dev 2 function 0 "XenSource Platform Device" rev 0x01
vga1 at pci0 dev 3 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 1: density unknown
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on sd0a (b3aac2add1de273d.a) swap on sd0b dump on sd0b

and guest xen conf is

***@moraal-dom0:/etc/xen# cat openbsd-61.cfg
builder = "hvm"
name = "openbsd-61"
memory = "384"
vcpus = 1
vif = [ 'mac=70:31:44:06:66:66,bridge=ovsbr0.10' ]
disk = [ 'phy:/dev/vg_data_wd_1tb/openbsd_61,hda,w',
'file:/root/install61.iso,hdd:cdrom,r' ]

# boot="dc"
vnc=1
vnclisten = "192.168.10.11"
vncdisplay = 6
serial = "pty"

this is top

load averages: 1.17, 1.11, 0.85
obsd61.morall 01:00:10
28 processes: 1 running, 26 idle, 1 on processor
up 0:21
1 CPUs: 0.1% user, 0.0% nice, 0.1% system, 0.0% interrupt, 99.8%
idle
Memory: Real: 21M/88M act/tot Free: 265M Cache: 33M Swap: 0K/592M

PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU
COMMAND
1 root 10 0 384K 396K idle wait 0:01 0.00% init
93628 _ntp 2 -20 880K 2364K sleep poll 0:00 0.00% ntpd
10324 root 28 0 996K 3388K run - 0:00 0.00% sshd
703 _pflogd 4 0 664K 428K sleep bpf 0:00 0.00%
pflogd
39530 root 18 0 676K 788K sleep pause 0:00 0.00% ksh
64422 root 3 0 308K 1144K idle ttyin 0:00 0.00%
getty
35880 _syslogd 2 0 908K 1536K sleep kqread 0:00 0.00%
syslogd
34854 _smtpd 2 0 1272K 3480K idle kqread 0:00 0.00%
smtpd
51028 _smtpd 2 0 1416K 3720K idle kqread 0:00 0.00%
smtpd
3365 _smtpq 2 0 1492K 3688K idle kqread 0:00 0.00%
smtpd
7934 _smtpd 2 0 1360K 3604K idle kqread 0:00 0.00%
smtpd
8766 root 2 0 692K 1240K sleep poll 0:00 0.00% cron
40747 _smtpd 2 0 1468K 3708K idle kqread 0:00 0.00%
smtpd
25829 _smtpd 2 0 1276K 3548K idle kqread 0:00 0.00%
smtpd
44405 root 3 0 304K 1128K idle ttyin 0:00 0.00%
getty
56534 _ntp 2 0 696K 2256K idle poll 0:00 0.00% ntpd
33817 root 2 0 488K 1888K sleep netio 0:00 0.00%
syslogd
62333 root 28 0 1388K 3344K onproc - 0:00 0.00% top
21086 root 2 0 1608K 2088K idle kqread 0:00 0.00%
smtpd
54428 root 2 -20 748K 1604K idle poll 0:00 0.00% ntpd
48555 root 2 0 872K 1468K idle select 0:00 0.00% sshd
44511 root 3 0 312K 1148K idle ttyin 0:00 0.00%
getty
16660 root 3 0 312K 1148K idle ttyin 0:00 0.00%
getty
86125 root 3 0 312K 1148K idle ttyin 0:00 0.00%
getty
77760 root 3 0 316K 1152K idle ttyin 0:00 0.00%
getty
19012 root 2 0 600K 608K idle netio 0:00 0.00%
pflogd
40148 _sndio 2 -20 412K 736K idle poll 0:00 0.00%
sndiod
79127 _sndiop 2 0 388K 696K idle poll 0:00 0.00%
sndiod

systat has

1 users Load 1.07 1.09 0.86 PAUSED obsd61.morall
01:01:41

PID USER NAME CPU 10\ 20\
30\ 40\ 50\ 60\ 70\ 80\ 90\ 100\
<idle> 99.27
###########################################################
79888 root idle0 99.02
###########################################################

I would be very thankful if you could provide
explanation/suggestion/workaround/fix for it. If i can provide any other
data helping to sort it out i would be glad to do it.


Best regards,

Imre
Theo Buehler
2017-04-12 22:18:53 UTC
Permalink
Hi!
I have run OpenBSD as Xen guest for some time now, at times unsuccessfully,
most of the time it runs beautifully.
I tried new OpenBSD v. 6.1 to run as Xen guest and it has constant load of
1, other than that cant say anything is wrong with it (although i have
tested it much yet). guest has one cpu and runs on mp kernel.
This is expected. There was a change in how the load is calculated, see
e.g. these threads:

https://marc.info/?t=147912558400001&r=1&w=2
https://marc.info/?t=148853697600001&r=1&w=2
Theo de Raadt
2017-04-13 02:38:35 UTC
Permalink
Post by Theo Buehler
Hi!
I have run OpenBSD as Xen guest for some time now, at times unsuccessfully,
most of the time it runs beautifully.
I tried new OpenBSD v. 6.1 to run as Xen guest and it has constant load of
1, other than that cant say anything is wrong with it (although i have
tested it much yet). guest has one cpu and runs on mp kernel.
This is expected. There was a change in how the load is calculated, see
https://marc.info/?t=147912558400001&r=1&w=2
https://marc.info/?t=148853697600001&r=1&w=2
Read the last email in the 1st thread.

Tomorrow things could change again. It isn't a promised number in a
particular scheduled because there is no *strict specification for
what it means*, and you don't want such a thing, you are counting
flies on a sidewalk where a dog had a roll yesterday
Imre Oolberg
2017-04-13 10:15:59 UTC
Permalink
Hi!

Thank you for explaining! I also suspected that rather this has to do
with so to say interpretation than system is doing something the wrong
way.

Will go soon to collect a new little computer hardware based on ASRock
J3710M and see how it all goes together. It looks like very interesting
holiday this weekend, 6.1, xen, vmm, switchd etc. Thank you very much
for your time making the OpenBSD project!


Best regards,

Imre

Loading...