Re: vmd: vm extremely slow; # time ls /var*; takes 14 seconds

2018-02-18 Thread Mike Larkin
On Sun, Feb 18, 2018 at 04:39:52AM -0600, Abel Abraham Camarillo Ojeda wrote:
> On Sun, Feb 18, 2018 at 12:29 AM, Pratik Vyas  wrote:
> > * Abel Abraham Camarillo Ojeda  [2018-02-17 23:11:52
> > -0600]:
> >
> >
> >> To: bugs@openbsd.org
> >> Subject: vmd: vm extremely slow; time ls /var*; takes 14 seconds
> >> From: root
> >> Cc: root
> >> Reply-To: root
> >>
> >>> Synopsis:  vmd: vm extremely slow
> >>> Category:  amd64
> >>> Environment:
> >>
> >>System  : OpenBSD 6.2
> >>Details : OpenBSD 6.2-current (GENERIC.MP) #5: Mon Feb 12
> >> 21:05:57 MST 2018
> >>
> >> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> >>
> >>Architecture: OpenBSD.amd64
> >>Machine : amd64
> >>>
> >>> Description:
> >>
> >>just running # time ls /var*; after booting bsd.rd
> >>takes like 14 seconds, according to my phone clock
> >>
> >>don't know if it happened before because i'm just starting to
> >>try vmm
> >>
> >>i ran out of patience when trying to install OpenBSD
> >>because it takes ages...
> >>
> >>how to diagnose further?
> >>
> >>thanks
> >>
> >>> How-To-Repeat:
> >>
> >>
> >>Welcome to the OpenBSD/amd64 6.2 installation program.
> >>
> >> (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? (I)nstall, (U)pgrade,
> >> (A)utoinstall or (S)hell? S
> >> # time ls /var*
> >> db empty  runtmptzlist
> >>0m00.02s real 0m00.00s user 0m00.00s system
> >> # # time incorrectly reports 0s but on reality there happened like 14secs
> >>
> >>> Fix:
> >>
> >>unknown
> >>
> >> SENDBUG: dmesg, pcidump, acpidump and usbdevs are attached.
> >> SENDBUG: Feel free to delete or use the -D flag if they contain
> >> sensitive information.
> >>
> >> $ doas vmd -dv
> >> startup
> >> failed to open /etc/vm.conf: No such file or directory
> >> test: started vm 1 successfully, tty /dev/ttypj
> >>
> >> vm dmesg:
> >>
> >> $ doas vmctl start test -b /bsd.rd -L -c
> >> vmctl: starting without disks
> >> Connected to /dev/ttypj (speed 115200)
> >> Copyright (c) 1982, 1986, 1989, 1991, 1993
> >>The Regents of the University of California.  All rights reserved.
> >> Copyright (c) 1995-2018 OpenBSD. All rights reserved.
> >> https://www.OpenBSD.org
> >>
> >> OpenBSD 6.2-current (RAMDISK_CD) #4: Mon Feb 12 21:10:26 MST 2018
> >>dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
> >> real mem = 520093696 (496MB)
> >> avail mem = 500633600 (477MB)
> >> enter_shared_special_pages: entered idt page va 0x8001 pa
> >> 0x1a24000
> >> enter_shared_special_pages: entered kutext page va 0x81341000
> >> pa 0x1341000
> >> enter_shared_special_pages: entered kutext page va 0x81342000
> >> pa 0x1342000
> >> enter_shared_special_pages: entered kutext page va 0x81343000
> >> pa 0x1343000
> >> cpu_enter_pages: entered tss+gdt page at va 0x81856000 pa
> >> 0x1856000
> >> cpu_enter_pages: entered t.stack page at va 0x81857000 pa
> >> 0x1857000
> >> cpu_enter_pages: cif_tss.tss_rsp0 = 0x818573e0
> >> mainbus0 at root
> >> bios0 at mainbus0
> >> acpi at bios0 not configured
> >> cpu0 at mainbus0: (uniprocessor)
> >> cpu0: AMD FX(tm)-6300 Six-Core Processor, 3512.49 MHz
> >> cpu0:
> >> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> >> cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
> >> 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> >> cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
> >> associative
> >> cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
> >> associative
> >> pvbus0 at mainbus0: OpenBSD
> >> pci0 at mainbus0 bus 0
> >> pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
> >> virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
> >> viornd0 at virtio0
> >> virtio0: irq 3
> >> virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Network" rev 0x00
> >> vio0 at virtio1: address fe:e1:bb:d1:64:13
> >> virtio1: irq 5
> >> virtio2 at pci0 dev 3 function 0 "OpenBSD VMM Control" rev 0x00
> >> virtio2: no matching child driver; not configured
> >> isa0 at mainbus0
> >> com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
> >> com0: console
> >> softraid0 at root
> >> scsibus0 at softraid0: 256 targets
> >> root on rd0a swap on rd0b dump on rd0b
> >> erase ^?, werase ^W, kill ^U, intr ^C, status ^T
> >>
> >> Welcome to the OpenBSD/amd64 6.2 installation program.
> >>
> >> (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? (I)nstall, (U)pgrade,
> >> (A)utoinstall or (S)hell? S
> >> # time ls /var*
> >> db empty  runtmptzlist
> >>

Re: vmd: vm extremely slow; # time ls /var*; takes 14 seconds

2018-02-18 Thread Abel Abraham Camarillo Ojeda
On Sun, Feb 18, 2018 at 12:29 AM, Pratik Vyas  wrote:
> * Abel Abraham Camarillo Ojeda  [2018-02-17 23:11:52
> -0600]:
>
>
>> To: bugs@openbsd.org
>> Subject: vmd: vm extremely slow; time ls /var*; takes 14 seconds
>> From: root
>> Cc: root
>> Reply-To: root
>>
>>> Synopsis:  vmd: vm extremely slow
>>> Category:  amd64
>>> Environment:
>>
>>System  : OpenBSD 6.2
>>Details : OpenBSD 6.2-current (GENERIC.MP) #5: Mon Feb 12
>> 21:05:57 MST 2018
>>
>> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>>
>>Architecture: OpenBSD.amd64
>>Machine : amd64
>>>
>>> Description:
>>
>>just running # time ls /var*; after booting bsd.rd
>>takes like 14 seconds, according to my phone clock
>>
>>don't know if it happened before because i'm just starting to
>>try vmm
>>
>>i ran out of patience when trying to install OpenBSD
>>because it takes ages...
>>
>>how to diagnose further?
>>
>>thanks
>>
>>> How-To-Repeat:
>>
>>
>>Welcome to the OpenBSD/amd64 6.2 installation program.
>>
>> (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? (I)nstall, (U)pgrade,
>> (A)utoinstall or (S)hell? S
>> # time ls /var*
>> db empty  runtmptzlist
>>0m00.02s real 0m00.00s user 0m00.00s system
>> # # time incorrectly reports 0s but on reality there happened like 14secs
>>
>>> Fix:
>>
>>unknown
>>
>> SENDBUG: dmesg, pcidump, acpidump and usbdevs are attached.
>> SENDBUG: Feel free to delete or use the -D flag if they contain
>> sensitive information.
>>
>> $ doas vmd -dv
>> startup
>> failed to open /etc/vm.conf: No such file or directory
>> test: started vm 1 successfully, tty /dev/ttypj
>>
>> vm dmesg:
>>
>> $ doas vmctl start test -b /bsd.rd -L -c
>> vmctl: starting without disks
>> Connected to /dev/ttypj (speed 115200)
>> Copyright (c) 1982, 1986, 1989, 1991, 1993
>>The Regents of the University of California.  All rights reserved.
>> Copyright (c) 1995-2018 OpenBSD. All rights reserved.
>> https://www.OpenBSD.org
>>
>> OpenBSD 6.2-current (RAMDISK_CD) #4: Mon Feb 12 21:10:26 MST 2018
>>dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
>> real mem = 520093696 (496MB)
>> avail mem = 500633600 (477MB)
>> enter_shared_special_pages: entered idt page va 0x8001 pa
>> 0x1a24000
>> enter_shared_special_pages: entered kutext page va 0x81341000
>> pa 0x1341000
>> enter_shared_special_pages: entered kutext page va 0x81342000
>> pa 0x1342000
>> enter_shared_special_pages: entered kutext page va 0x81343000
>> pa 0x1343000
>> cpu_enter_pages: entered tss+gdt page at va 0x81856000 pa
>> 0x1856000
>> cpu_enter_pages: entered t.stack page at va 0x81857000 pa
>> 0x1857000
>> cpu_enter_pages: cif_tss.tss_rsp0 = 0x818573e0
>> mainbus0 at root
>> bios0 at mainbus0
>> acpi at bios0 not configured
>> cpu0 at mainbus0: (uniprocessor)
>> cpu0: AMD FX(tm)-6300 Six-Core Processor, 3512.49 MHz
>> cpu0:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
>> cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
>> 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
>> cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
>> associative
>> cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
>> associative
>> pvbus0 at mainbus0: OpenBSD
>> pci0 at mainbus0 bus 0
>> pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
>> virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
>> viornd0 at virtio0
>> virtio0: irq 3
>> virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Network" rev 0x00
>> vio0 at virtio1: address fe:e1:bb:d1:64:13
>> virtio1: irq 5
>> virtio2 at pci0 dev 3 function 0 "OpenBSD VMM Control" rev 0x00
>> virtio2: no matching child driver; not configured
>> isa0 at mainbus0
>> com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
>> com0: console
>> softraid0 at root
>> scsibus0 at softraid0: 256 targets
>> root on rd0a swap on rd0b dump on rd0b
>> erase ^?, werase ^W, kill ^U, intr ^C, status ^T
>>
>> Welcome to the OpenBSD/amd64 6.2 installation program.
>>
>> (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? (I)nstall, (U)pgrade,
>> (A)utoinstall or (S)hell? S
>> # time ls /var*
>> db empty  runtmptzlist
>>0m00.02s real 0m00.00s user 0m00.00s system
>> #
>>
>> dmesg:
>> OpenBSD 6.2-current (GENERIC.MP) #5: Mon Feb 12 21:05:57 MST 2018
>>dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>> real mem = 8517390336 (8122MB)
>> avail mem = 8252248064 (7869MB)
>> enter_shared_special_pages: entered idt page va 

Re: vmd: vm extremely slow; # time ls /var*; takes 14 seconds

2018-02-17 Thread Pratik Vyas

* Abel Abraham Camarillo Ojeda  [2018-02-17 23:11:52 -0600]:


To: bugs@openbsd.org
Subject: vmd: vm extremely slow; time ls /var*; takes 14 seconds
From: root
Cc: root
Reply-To: root


Synopsis:  vmd: vm extremely slow
Category:  amd64
Environment:

   System  : OpenBSD 6.2
   Details : OpenBSD 6.2-current (GENERIC.MP) #5: Mon Feb 12
21:05:57 MST 2018

dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

   Architecture: OpenBSD.amd64
   Machine : amd64

Description:

   just running # time ls /var*; after booting bsd.rd
   takes like 14 seconds, according to my phone clock

   don't know if it happened before because i'm just starting to
   try vmm

   i ran out of patience when trying to install OpenBSD
   because it takes ages...

   how to diagnose further?

   thanks


How-To-Repeat:


   Welcome to the OpenBSD/amd64 6.2 installation program.

(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? (I)nstall, (U)pgrade,
(A)utoinstall or (S)hell? S
# time ls /var*
db empty  runtmptzlist
   0m00.02s real 0m00.00s user 0m00.00s system
# # time incorrectly reports 0s but on reality there happened like 14secs


Fix:

   unknown

SENDBUG: dmesg, pcidump, acpidump and usbdevs are attached.
SENDBUG: Feel free to delete or use the -D flag if they contain
sensitive information.

$ doas vmd -dv
startup
failed to open /etc/vm.conf: No such file or directory
test: started vm 1 successfully, tty /dev/ttypj

vm dmesg:

$ doas vmctl start test -b /bsd.rd -L -c
vmctl: starting without disks
Connected to /dev/ttypj (speed 115200)
Copyright (c) 1982, 1986, 1989, 1991, 1993
   The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2018 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.2-current (RAMDISK_CD) #4: Mon Feb 12 21:10:26 MST 2018
   dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 520093696 (496MB)
avail mem = 500633600 (477MB)
enter_shared_special_pages: entered idt page va 0x8001 pa 0x1a24000
enter_shared_special_pages: entered kutext page va 0x81341000
pa 0x1341000
enter_shared_special_pages: entered kutext page va 0x81342000
pa 0x1342000
enter_shared_special_pages: entered kutext page va 0x81343000
pa 0x1343000
cpu_enter_pages: entered tss+gdt page at va 0x81856000 pa 0x1856000
cpu_enter_pages: entered t.stack page at va 0x81857000 pa 0x1857000
cpu_enter_pages: cif_tss.tss_rsp0 = 0x818573e0
mainbus0 at root
bios0 at mainbus0
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD FX(tm)-6300 Six-Core Processor, 3512.49 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
pvbus0 at mainbus0: OpenBSD
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
viornd0 at virtio0
virtio0: irq 3
virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio1: address fe:e1:bb:d1:64:13
virtio1: irq 5
virtio2 at pci0 dev 3 function 0 "OpenBSD VMM Control" rev 0x00
virtio2: no matching child driver; not configured
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
com0: console
softraid0 at root
scsibus0 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/amd64 6.2 installation program.

(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? (I)nstall, (U)pgrade,
(A)utoinstall or (S)hell? S
# time ls /var*
db empty  runtmptzlist
   0m00.02s real 0m00.00s user 0m00.00s system
#

dmesg:
OpenBSD 6.2-current (GENERIC.MP) #5: Mon Feb 12 21:05:57 MST 2018
   dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8517390336 (8122MB)
avail mem = 8252248064 (7869MB)
enter_shared_special_pages: entered idt page va 0x8001 pa 0x1d5a000
enter_shared_special_pages: entered kutext page va 0x81832000
pa 0x1832000
enter_shared_special_pages: entered kutext page va 0x81833000
pa 0x1833000
enter_shared_special_pages: entered kutext page va 0x81834000
pa 0x1834000
enter_shared_special_pages: entered kudata page va 0x81ac9000
pa 0x1ac9000
cpu_enter_pages: entered tss+gdt page at va 0x81ab4000 pa 0x1ab4000
cpu_enter_pages: