tor inside vmm, horribly slow?!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

tor inside vmm, horribly slow?!

Jiri B-2
Hi,

has anybody tried to run tor inside vmm guest?

it's horrible slow, just doing 'tor-resolve $dnsname' takes
sometimes ages.

# dmesg | head -n 4
OpenBSD 6.2-current (GENERIC.MP) #0: Sat Feb 10 00:05:49 MST 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
    real mem = 520093696 (496MB)
    avail mem = 497381376 (474MB)

is it related to vmm ssl issue reported in the past?

# vmstat ; time tor-resolve www.openbsd.org
 procs    memory       page                    disks    traps          cpu
 r   s   avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
 1  35   42M    302M  176   0   0   0   0   0  17   0  124   544   29  0 88 12
129.128.5.194
    0m46.07s real     0m00.00s user     0m00.00s system

# vmstat ; time tor-resolve www.openbsd.org
 procs    memory       page                    disks    traps          cpu
 r   s   avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
 1  35   42M    302M  166   0   0   0   0   0  15   0  122   514   28  0 88 12
129.128.5.194
    0m00.13s real     0m00.00s user     0m00.00s system

Jiri

Reply | Threaded
Open this post in threaded view
|

Re: tor inside vmm, horribly slow?!

Mike Larkin
On Sun, Feb 11, 2018 at 06:38:49PM -0500, Jiri B wrote:

> Hi,
>
> has anybody tried to run tor inside vmm guest?
>
> it's horrible slow, just doing 'tor-resolve $dnsname' takes
> sometimes ages.
>
> # dmesg | head -n 4
> OpenBSD 6.2-current (GENERIC.MP) #0: Sat Feb 10 00:05:49 MST 2018
>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>     real mem = 520093696 (496MB)
>     avail mem = 497381376 (474MB)
>
> is it related to vmm ssl issue reported in the past?
>

no

> # vmstat ; time tor-resolve www.openbsd.org
>  procs    memory       page                    disks    traps          cpu
>  r   s   avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
>  1  35   42M    302M  176   0   0   0   0   0  17   0  124   544   29  0 88 12
> 129.128.5.194
>     0m46.07s real     0m00.00s user     0m00.00s system
>
> # vmstat ; time tor-resolve www.openbsd.org
>  procs    memory       page                    disks    traps          cpu
>  r   s   avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
>  1  35   42M    302M  166   0   0   0   0   0  15   0  122   514   28  0 88 12
> 129.128.5.194
>     0m00.13s real     0m00.00s user     0m00.00s system
>
> Jiri
>

This report sucks. no dmesg, no information about what the VM config is, what
version the guest is, what version the host is, etc.

Reply | Threaded
Open this post in threaded view
|

Re: tor inside vmm, horribly slow?!

Jiri B-2
On Sun, Feb 11, 2018 at 04:47:02PM -0800, Mike Larkin wrote:

> > has anybody tried to run tor inside vmm guest?
> >
> > it's horrible slow, just doing 'tor-resolve $dnsname' takes
> > sometimes ages.
> > [...]
> > is it related to vmm ssl issue reported in the past?
>
> no
>
> > [...]
> This report sucks. no dmesg, no information about what the VM config is, what
> version the guest is, what version the host is, etc.

Big apologize, I thought it could be something known.
Info below. Thank you for help.

Jiri

Another try inside vmm guest:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# time tor-resolve www.openbsd.org
129.128.5.194
    0m00.14s real     0m00.00s user     0m00.00s system
# time tor-resolve www.openbsd.org
129.128.5.194
    0m52.96s real     0m00.00s user     0m00.00s system

# tail /var/log/daemon
Feb 12 08:19:59 onion Tor[21861]: Bootstrapped 100%: Done
Feb 12 08:20:04 onion ntpd[51629]: adjusting local clock by 0.384653s
Feb 12 08:23:01 onion ntpd[51629]: adjusting local clock by -0.063873s
Feb 12 08:42:58 onion Tor[21861]: Your system clock just jumped 150 seconds forward; assuming established circuits no longer work.
Feb 12 08:42:59 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
Feb 12 08:42:59 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
Feb 12 08:45:55 onion Tor[21861]: Your system clock just jumped 150 seconds forward; assuming established circuits no longer work.
Feb 12 08:45:57 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
Feb 12 08:45:57 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
Feb 12 08:47:05 onion ntpd[51629]: adjusting clock frequency by -7.934969 to -23.542969ppm

VMM:
~~~~

(Originally I forgot 'group internal' in vm.conf, so I put tap1 into group
'internal' manually via ifconfig.)

vm "onion" {
    disable
    owner jirib
    memory 512M
    boot $kernel
    local interface tap
    disk $onion_osdisk
    disk $onion_datadisk
}

Networking on host:
~~~~~~~~~~~~~~~~~~~

# route -nv show -inet | grep ^default
default            176.74.xxx.xxx     UGS        5    38658     -     8 em0   "internet4"

# sysctl net.inet.ip.forwarding                                                                                                                                                                                                        
net.inet.ip.forwarding=1

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 90:e2:ba:xx:xx:xx
        index 1 priority 0 llprio 3
        groups: public egress
        media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
        status: active
        inet 176.74.xxx netmask 0xffffffe0 broadcast 176.74.xxx

tap1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr fe:e1:ba:d2:f7:28
        description: vm2-if0-onion
        index 17 priority 0 llprio 3
        groups: tap internal
        status: active
        inet 100.64.2.2 netmask 0xfffffffe

PF on host (uses 'group internal'):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# pfctl -sr | egrep '(on egress.*nat-to|on internal.*all)'
pass out quick on egress from any to route "internet4" flags S/SA nat-to (egress) round-robin
pass in quick on internal all flags S/SA

Storage on host:
~~~~~~~~~~~~~~~~

'disk's are located on softraid RAID1 array:

1# bioctl sd8                                                                                                                                                                                                                            
Volume      Status               Size Device  
softraid0 2 Online       536871947776 sd8     RAID1
          0 Online       536871947776 2:0.0   noencl <sd2a>
          1 Online       536871947776 2:1.0   noencl <sd3a>

# dmesg | grep ^sd[23]
sd2 at scsibus1 targ 2 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c5009387182f
sd2: 953869MB, 512 bytes/sector, 1953525168 sectors
sd3 at scsibus1 targ 3 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c500939203ed
sd3: 953869MB, 512 bytes/sector, 1953525168 sectors

dmesg on host:
~~~~~~~~~~~~~~

with disabled lm driver because of issue with bad fan RPM.

OpenBSD 6.2-current (GENERIC.MP) #0: Sat Feb 10 00:05:49 MST 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8564375552 (8167MB)
avail mem = 8297807872 (7913MB)
enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d5a000
enter_shared_special_pages: entered kutext page va 0xffffffff81831000 pa 0x1831000
enter_shared_special_pages: entered kutext page va 0xffffffff81832000 pa 0x1832000
enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
enter_shared_special_pages: entered kudata page va 0xffffffff81ac8000 pa 0x1ac8000
cpu_enter_pages: entered tss+gdt page at va 0xffffffff81ab4000 pa 0x1ab4000
cpu_enter_pages: entered t.stack page at va 0xffffffff81ab5000 pa 0x1ab5000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81ab53e0
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9f000 (68 entries)
bios0: vendor American Megatrends Inc. version "1.1" date 05/27/2010
bios0: Supermicro X8SIL
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI DMAR SSDT
acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) BR1E(S4) USB0(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) USB6(S4) GBE_(S4) BR20(S4) BR21(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
lapic_map: entered lapic page va 0xffffffff81a9e000 pa 0xfee00000
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.91 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 1866666040 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800021fff000 pa 0x10f7ab000
cpu_enter_pages: entered t.stack page at va 0xffff800022000000 pa 0x10f7ac000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220003e0
: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022010000 pa 0x10f7b6000
cpu_enter_pages: entered t.stack page at va 0xffff800022011000 pa 0x10f7b7000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220113e0
: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022019000 pa 0x10f7b9000
cpu_enter_pages: entered t.stack page at va 0xffff80002201a000 pa 0x10f7ba000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002201a3e0
: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022022000 pa 0x10f7bc000
cpu_enter_pages: entered t.stack page at va 0xffff800022023000 pa 0x10f7bd000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220233e0
: apid 1 (application processor)
cpu4: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
cpu4: 256KB 64b/line 8-way L2 cache
cpu4: smt 1, core 0, package 0
cpu5 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff80002202b000 pa 0x10f7bf000
cpu_enter_pages: entered t.stack page at va 0xffff80002202c000 pa 0x10f7c0000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002202c3e0
: apid 3 (application processor)
cpu5: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
cpu5: 256KB 64b/line 8-way L2 cache
cpu5: smt 1, core 1, package 0
cpu6 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022034000 pa 0x10f7c2000
cpu_enter_pages: entered t.stack page at va 0xffff800022035000 pa 0x10f7c3000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220353e0
: apid 5 (application processor)
cpu6: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
cpu6: 256KB 64b/line 8-way L2 cache
cpu6: smt 1, core 2, package 0
cpu7 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff80002203d000 pa 0x10f7c5000
cpu_enter_pages: entered t.stack page at va 0xffff80002203e000 pa 0x10f7c6000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002203e3e0
: apid 7 (application processor)
cpu7: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
cpu7: 256KB 64b/line 8-way L2 cache
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
, remapped to apid 8
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpihpet0: recalibrated TSC frequency 1866681600 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P3)
acpiprt3 at acpi0: bus 2 (P0P5)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus 6 (BR1E)
acpiprt6 at acpi0: bus 3 (BR20)
acpiprt7 at acpi0: bus 4 (BR24)
acpiprt8 at acpi0: bus 5 (BR25)
acpicpu0 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu4 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu5 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu6 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu7 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpibtn0 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 1866 MHz: speeds: 1868, 1867, 1733, 1600, 1467, 1333, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11
ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 5 function 0 "Intel Core PCIE" rev 0x11: msi
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:28:c0
em1 at pci2 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:28:c1
"Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
"Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
"Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured
"Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured
"Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured
"Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: msi
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:2d:74
em3 at pci3 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:2d:75
ppb3 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05: msi
pci4 at ppb3 bus 4
em4 at pci4 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:25:90:3c:66:00
ppb4 at pci0 dev 28 function 5 "Intel 3400 PCIE" rev 0x05: msi
pci5 at ppb4 bus 5
em5 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:25:90:3c:66:01
ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci6 at ppb5 bus 6
vga1 at pci6 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: msi, AHCI 1.3
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 3.0Gb/s
ahci0: port 2: 3.0Gb/s
ahci0: port 3: 3.0Gb/s
ahci0: port 4: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD7500BPKT-6, 01.0> SCSI3 0/direct fixed naa.50014ee6580d48d5
sd0: 715404MB, 512 bytes/sector, 1465149168 sectors
sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD7500BPKT-6, 01.0> SCSI3 0/direct fixed naa.50014ee6580d4746
sd1: 715404MB, 512 bytes/sector, 1465149168 sectors
sd2 at scsibus1 targ 2 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c5009387182f
sd2: 953869MB, 512 bytes/sector, 1953525168 sectors
sd3 at scsibus1 targ 3 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c500939203ed
sd3: 953869MB, 512 bytes/sector, 1953525168 sectors
sd4 at scsibus1 targ 4 lun 0: <ATA, OCZ-VERTEX3, 2.22> SCSI3 0/direct fixed naa.5e83a97e2078f993
sd4: 122104MB, 512 bytes/sector, 250069680 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 8 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x18: mcp98243
sdtemp1 at iic0 addr 0x1a: mcp98243
"eeprom" at iic0 addr 0x50 not configured
"eeprom" at iic0 addr 0x52 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x25
wbsio0 port 0xa10/2 not configured
vmm0 at mainbus0: VMX/EPT
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 "Winbond Electronics Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 2 configuration 1 interface 1 "Winbond Electronics Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
umass0 at uhub2 port 3 configuration 1 interface 0 "Kingston DataTraveler 3.0" rev 2.10/0.01 addr 4
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd5 at scsibus2 targ 1 lun 0: <Kingston, DataTraveler 3.0, > SCSI4 0/direct removable serial.09511666F1307641D3AB
sd5: 7377MB, 512 bytes/sector, 15109516 sectors
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhidev2 at uhub3 port 1 configuration 1 interface 0 "Cherry Mikroschalter product 0x0011" rev 2.00/1.00 addr 3
uhidev2: iclass 3/1
ukbd1 at uhidev2: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev3 at uhub3 port 2 configuration 1 interface 0 "American Power Conversion Back-UPS XS 1400U  FW:926.T2 .I USB FW:T2" rev 1.10/1.06 addr 4
uhidev3: iclass 3/0, 123 report ids
upd0 at uhidev3
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
sd6 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd6: 20481MB, 512 bytes/sector, 41945104 sectors
sd7 at scsibus4 targ 2 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd7: 694920MB, 512 bytes/sector, 1423197841 sectors
sd8 at scsibus4 targ 3 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd8: 512000MB, 512 bytes/sector, 1048578023 sectors
root on sd6a (667e2bfc7c13fc8a.a) swap on sd6b dump on sd6b

dmesg of VMM guest:
~~~~~~~~~~~~~~~~~~~

2nd disk is softraid crypto array, manually enabled

OpenBSD 6.2-current (GENERIC.MP) #0: Sat Feb 10 00:05:49 MST 2018
[hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 520093696 (496MB)
avail mem = 497381376 (474MB)
enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d55000
enter_shared_special_pages: entered kutext page va 0xffffffff81831000 pa 0x1831000
enter_shared_special_pages: entered kutext page va 0xffffffff81832000 pa 0x1832000
enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
enter_shared_special_pages: entered kudata page va 0xffffffff81ac8000 pa 0x1ac8000
cpu_enter_pages: entered tss+gdt page at va 0xffffffff81ab4000 pa 0x1ab4000
cpu_enter_pages: entered t.stack page at va 0xffffffff81ab5000 pa 0x1ab5000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81ab53e0
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1867.15 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,HV,NXE,RDTSCP,LONG,LAHF,ITSC,INSECURE
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
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 Storage" rev 0x00
vioblk0 at virtio1
scsibus1 at vioblk0: 2 targets
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd0: 5120MB, 512 bytes/sector, 10485760 sectors
virtio1: irq 5
virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk1 at virtio2
scsibus2 at vioblk1: 2 targets
sd1 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd1: 20480MB, 512 bytes/sector, 41943040 sectors
virtio2: irq 6
virtio3 at pci0 dev 4 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio3: address fe:e1:bb:d1:93:2b
virtio3: irq 7
virtio4 at pci0 dev 5 function 0 "OpenBSD VMM Control" rev 0x00
vmmci0 at virtio4
virtio4: irq 9
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
com0: console
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (6355033e836e6151.a) swap on sd0b dump on sd0b
sd2 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd2: 20479MB, 512 bytes/sector, 41942320 sectors
Automatic boot in progress: starting file system checks.
/dev/sd0a (6355033e836e6151.a): file system is clean; not checking
/dev/sd0i (6355033e836e6151.i): file system is clean; not checking
/dev/sd0d (6355033e836e6151.d): file system is clean; not checking
/dev/sd0f (6355033e836e6151.f): file system is clean; not checking
/dev/sd0g (6355033e836e6151.g): file system is clean; not checking
/dev/sd0h (6355033e836e6151.h): file system is clean; not checking
/dev/sd0e (6355033e836e6151.e): file system is clean; not checking
setting tty flags
pf enabled
starting network
vio0: bound to 100.64.2.3 from 100.64.2.2 (fe:e1:bb:d1:93:2c)
reordering libraries: done.
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
acpidump: Can't find ACPI information
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: smtpd sndiod.
starting local daemons: cron.
Mon Feb 12 08:14:37 CET 2018

os/apps/stats... in vmm guest:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# tail /var/log/daemon
Feb 12 08:19:59 onion Tor[21861]: Bootstrapped 100%: Done
Feb 12 08:20:04 onion ntpd[51629]: adjusting local clock by 0.384653s
Feb 12 08:23:01 onion ntpd[51629]: adjusting local clock by -0.063873s
Feb 12 08:42:58 onion Tor[21861]: Your system clock just jumped 150 seconds forward; assuming established circuits no longer work.
Feb 12 08:42:59 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
Feb 12 08:42:59 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
Feb 12 08:45:55 onion Tor[21861]: Your system clock just jumped 150 seconds forward; assuming established circuits no longer work.
Feb 12 08:45:57 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
Feb 12 08:45:57 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
Feb 12 08:47:05 onion ntpd[51629]: adjusting clock frequency by -7.934969 to -23.542969ppm

# pkg_info | grep tor                                                    
tor-0.3.2.9p0       anonymity service using onion routing

# vmstat  
 procs    memory       page                    disks    traps          cpu
 r   s   avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
 1  35   42M    304M   84   0   0   0   0   0   9   0  112   278   29  0 88 12

some stats from inside vmm guest:

vmstat -c 1 -w 5
 procs    memory       page                    disks    traps          cpu
 r   s   avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
 1  36   42M    304M   64   0   0   0   0   0   6   0  109   217   29  0 88 12

systat -d 1 -b -n -w 80 ifstat

   1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:20
IFACE     STATE DESC             IPKTS IBYTES  IERRS  OPKTS OBYTES  OERRS  COLLS
vio0      up:U                       0      0      0      0      0      0      0
enc0      dn:U                       0      0      0      0      0      0      0
lo0       up                         0      0      0      0      0      0      0
pflog0    up                         0      0      0      0      0      0      0
Totals                               0      0      0      0      0      0      0

systat -d 1 -b -n -w 80 iostat

   1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:20
DEVICE          READ    WRITE     RTPS    WTPS     SEC            STATS        
sd0         18958950 27185971      632    2078     2.1                          
sd1            53043    10649        6       0     0.0                          
sd2            19046     4096        2       0     0.0                          
Totals      19031039 27200716      640    2080     2.2                          
                                                            23231 total pages  
                                                            23231 dma pages    
                                                               32 dirty pages  
                                                                8 delwri bufs  
                                                                0 busymap bufs  
                                                             1543 avail kvaslots
                                                             1543 kvaslots      
                                                                0 pending writes
                                                                0 pending reads
                                                                0 cache hits    
                                                                0 high flips    
                                                                0 high flops    
                                                                0 dma flips    

systat -d 1 -b -n -w 80 mbufs

   1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:24
IFACE             LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM                      
System                    0   256   134          11                            
                             2048    14           4                            
lo0                                                                            
vio0                         2048     6     2   128     6                      
enc0                                                                            
pflog0                                                                          

systat -d 1 -b -n -w 80 netstat

   1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:24
LOCAL ADDRESS          FOREIGN ADDRESS        PROTO   RECV-Q  SEND-Q STATE      
127.0.0.1:26705        127.0.0.1:9050         tcp          0       0 TIME_WAIT  
100.64.2.3:46165       46.166.165.18:9001     tcp          0       0 ESTABLISHED

systat -d 1 -b -n -w 80 swap

   1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:26
DISK         512-blocks       USED       20\      40\      60\      80\     100\
sd0b            1044226          0                                              

systat -d 1 -b -n -w 80 states

   1 users Load 0.03 0.01 0.00 (1-21 of 70)             onion.xxx 09:00:26
PR   D SRC                  DEST                 STATE   AGE   EXP  PKTS BYTES A
tcp  O 100.64.2.3:46165     46.166.165.18:9001    4:4   2427 86299  1128  580K *
udp  O 100.64.2.3:25259     100.64.2.2:53         2:1     53     0     2   100 1
udp  O 100.64.2.3:20112     100.64.2.2:53         2:1     53     0     2   100 1
udp  O 100.64.2.3:37223     100.64.2.2:53         2:1     53     0     2   100 1
udp  O 100.64.2.3:2129      100.64.2.2:53         2:1     53     0     2   100 1
udp  O 100.64.2.3:45180     100.64.2.2:53         2:1     53     0     2   100 1
udp  O 100.64.2.3:5504      100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:44179     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:30595     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:4562      100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:48989     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:21079     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:41037     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:4739      100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:33984     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:23139     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:18018     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:18401     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:1817      100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:47599     100.64.2.2:53         2:1     23     7     2   100 4
udp  O 100.64.2.3:39838     100.64.2.2:53         2:1     23     7     2   100 4

systat -d 1 -b -n -w 80 pool

   1 users Load 0.03 0.01 0.00 (1-21 of 162)            onion.xxx 09:00:30
NAME             SIZE REQUESTS     FAIL    INUSE    PGREQ    PGREL    NPAGE HIWA
amapchunkpl       152     1454        0      178       13        4        9    9
amappl             72      453        0       56        3        1        2    2
amappl1            72    52926        0     4612      283      196       87  100
amappl10          144      255        0        5        1        0        1    1
amappl11          152      638        0       47        2        0        2    2
amappl12          160       47        0        7        1        0        1    1
amappl13          168       66        0       13        1        0        1    1
amappl14          176       70        0        3        2        1        1    1
amappl15          184       43        0        1        1        0        1    1
amappl16          192      438        0       32        4        1        3    3
amappl2            80     3270        0      219       15        8        7    9
amappl3            88      401        0       18        4        3        1    4
amappl4            96      804        0       79        7        5        2    4
amappl5           104      469        0       27        2        1        1    2
amappl6           112      307        0       17        1        0        1    1
amappl7           120      196        0       23        1        0        1    1
amappl8           128     1860        0       33       32       30        2   31
amappl9           136      100        0       11        1        0        1    1
anonpl             16    93305        0     8523      100       63       37   60
aobjpl             64        1        0        1        1        0        1    1
arp                56        2        0        2        1        0        1    1

systat -d 1 -b -n -w 80 pcache

   1 users Load 0.03 0.01 0.00 (1-21 of 162)            onion.xxx 09:00:34
NAME             LEN IDLE  NGC  CPU         REQ        REL       LREQ       LREL
mbufpl             8    0    6    0       26175      26230          1          7
mtagpl             8    0    0    0           2          3          0          0
mcl2k              8    0    0    0        6032       6047          0          0
mcl2k2             8    0    0    0           7          8          0          0
mcl4k              8    0    0    0          19         22          0          0
mcl8k              8    0    0    0           0          0          0          0
mcl9k              8    0    0    0           0          0          0          0
mcl12k             8    0    0    0           0          0          0          0
mcl16k             8    0    0    0           0          0          0          0
mcl64k             8    0    0    0           0          0          0          0

systat -d 1 -b -n -w 80 malloc

   1 users Load 0.03 0.01 0.00 (1-21 of 35)             onion.xxx 09:00:36
TYPE            INUSE MEMUSE HIGHUS  LIMIT REQUESTS TYPE  KERN  BUCKETS        
ISOFS mount         1  32768  32768 76185K        1     0     0 ...........|....
MSDOSFS mount       1  16384  16384 76185K        1     0     0 ..........|.....
NDP                 4    128    128 76185K        4     0     0 .|..............
NFS daemon          1  16384  16384 76185K        1     0     0 ..........|.....
NFS srvsock         1    128    128 76185K        1     0     0 ...|............
SYN cache           2  16384  16384 76185K        2     0     0 .........|......
UFS mount          33  69872  69872 76185K       33     0     0 |..|.|.|...|....
UFS quota           1  32768  32768 76185K        1     0     0 ...........|....
UVM amap          199   8768   8816 76185K     2028     0     0 |||||...........
UVM aobj            2   2064   2064 76185K        2     0     0 |......|........
VM map              2    512    512 76185K        2     0     0 ....|...........
VM swap             7  39120  39120 76185K        7     0     0 |.|....|..||....
counters           18  16896  16896 76185K       18     0     0 ..|||||.||......
crypto data        20 264512 264512 76185K       20     0     0 ..|.|.|...|.....
devbuf            549 467568 500352 76185K     1402     0     0 |||||||||||||...
dirhash            39   7808   7808 76185K       63     0     0 ||||.|..........
ether_multi         1     32     32 76185K        1     0     0 .|..............
exec                0      0   1344 76185K      455     0     0 ||..|.|.........
file desc           1    512    512 76185K        1     0     0 .....|..........
ifaddr             26   8384   8384 76185K       30     0     0 .||||...|.......
in_multi           11    704    704 76185K       11     0     0 .|||............

systat -d 1 -b -n -w 80 buckets

   1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:40
BUCKET         REQUESTS          INUSE          FREE         HIWAT     COULDFREE
16                 1074            184            72          1280             0
32                 1387            154           102           640             0
64                 3532           1242            38           320             0
128                 974            342            42           160             0
256                2814             67            13            80             0
512                 766            103             9            40             0
1024               1155            291             5            20             0
2048                 58             28             2            10             0
4096               1000             14             1             5             0
8192                201            196             0             5             0
16384               225             20             0             5             0
32768                18             10             0             5             0
65536               284              1             0             5             0
131072                0              0             0             5             0
262144                0              0             0             5             0
524288                1              1             0             5             0

systat -d 1 -b -n -w 80 cpu

   1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:42
CPU                User           Nice        System     Interrupt          Idle
0                  0.0%           0.0%          0.0%          0.0%          0.0%

Reply | Threaded
Open this post in threaded view
|

Re: tor inside vmm, horribly slow?!

Mike Larkin
On Mon, Feb 12, 2018 at 03:07:31AM -0500, Jiri B wrote:

> On Sun, Feb 11, 2018 at 04:47:02PM -0800, Mike Larkin wrote:
> > > has anybody tried to run tor inside vmm guest?
> > >
> > > it's horrible slow, just doing 'tor-resolve $dnsname' takes
> > > sometimes ages.
> > > [...]
> > > is it related to vmm ssl issue reported in the past?
> >
> > no
> >
> > > [...]
> > This report sucks. no dmesg, no information about what the VM config is, what
> > version the guest is, what version the host is, etc.
>
> Big apologize, I thought it could be something known.
> Info below. Thank you for help.
>
> Jiri
>

What did the guest pick for timecounter? (sysctl kern.timecounter.hardware)

Your hardware is nearly a decade old. I wouldn't be surprised if vmm
picked some ancient timecounter hardware. For the example below, my guest
chose 'tsc' (I have a 2013-era Ivy Bridge CPU). All my hosts/VMs are
-current. And we know if your hardware is shit, we do the best we can but
no promises as to how precise time is going to be. With tsc timecounter,
my VMs that have been up for weeks have drifted maybe a second or two from
the host.

In any case, in my amd64 VM, the first time I do your command I see this:

 time tor-resolve www.openbsd.org
129.128.5.194
    0m20.30s real     0m00.00s user     0m00.00s system

And the second time:

time tor-resolve www.openbsd.org
129.128.5.194
    0m00.20s real     0m00.00s user     0m00.00s system




Now, on the host, the first time:

 time tor-resolve www.openbsd.org
129.128.5.194
    0m17.54s real     0m00.00s user     0m00.01s system

And the second time on the host:

 time tor-resolve www.openbsd.org
129.128.5.194
    0m00.54s real     0m00.00s user     0m00.02s system

In other words, I don't see anything odd here. The vm appears to actually
be running faster than the host. I'm not concerned about the 2-3 second
difference on the first resolve. I bet if I ran it a hundred times I'd see
things pretty much the same.

-ml

> Another try inside vmm guest:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> # time tor-resolve www.openbsd.org
> 129.128.5.194
>     0m00.14s real     0m00.00s user     0m00.00s system
> # time tor-resolve www.openbsd.org
> 129.128.5.194
>     0m52.96s real     0m00.00s user     0m00.00s system
>
> # tail /var/log/daemon
> Feb 12 08:19:59 onion Tor[21861]: Bootstrapped 100%: Done
> Feb 12 08:20:04 onion ntpd[51629]: adjusting local clock by 0.384653s
> Feb 12 08:23:01 onion ntpd[51629]: adjusting local clock by -0.063873s
> Feb 12 08:42:58 onion Tor[21861]: Your system clock just jumped 150 seconds forward; assuming established circuits no longer work.
> Feb 12 08:42:59 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
> Feb 12 08:42:59 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
> Feb 12 08:45:55 onion Tor[21861]: Your system clock just jumped 150 seconds forward; assuming established circuits no longer work.
> Feb 12 08:45:57 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
> Feb 12 08:45:57 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
> Feb 12 08:47:05 onion ntpd[51629]: adjusting clock frequency by -7.934969 to -23.542969ppm
>
> VMM:
> ~~~~
>
> (Originally I forgot 'group internal' in vm.conf, so I put tap1 into group
> 'internal' manually via ifconfig.)
>
> vm "onion" {
>     disable
>     owner jirib
>     memory 512M
>     boot $kernel
>     local interface tap
>     disk $onion_osdisk
>     disk $onion_datadisk
> }
>
> Networking on host:
> ~~~~~~~~~~~~~~~~~~~
>
> # route -nv show -inet | grep ^default
> default            176.74.xxx.xxx     UGS        5    38658     -     8 em0   "internet4"
>
> # sysctl net.inet.ip.forwarding                                                                                                                                                                                                        
> net.inet.ip.forwarding=1
>
> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         lladdr 90:e2:ba:xx:xx:xx
>         index 1 priority 0 llprio 3
>         groups: public egress
>         media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
>         status: active
>         inet 176.74.xxx netmask 0xffffffe0 broadcast 176.74.xxx
>
> tap1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         lladdr fe:e1:ba:d2:f7:28
>         description: vm2-if0-onion
>         index 17 priority 0 llprio 3
>         groups: tap internal
>         status: active
>         inet 100.64.2.2 netmask 0xfffffffe
>
> PF on host (uses 'group internal'):
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> # pfctl -sr | egrep '(on egress.*nat-to|on internal.*all)'
> pass out quick on egress from any to route "internet4" flags S/SA nat-to (egress) round-robin
> pass in quick on internal all flags S/SA
>
> Storage on host:
> ~~~~~~~~~~~~~~~~
>
> 'disk's are located on softraid RAID1 array:
>
> 1# bioctl sd8                                                                                                                                                                                                                            
> Volume      Status               Size Device  
> softraid0 2 Online       536871947776 sd8     RAID1
>           0 Online       536871947776 2:0.0   noencl <sd2a>
>           1 Online       536871947776 2:1.0   noencl <sd3a>
>
> # dmesg | grep ^sd[23]
> sd2 at scsibus1 targ 2 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c5009387182f
> sd2: 953869MB, 512 bytes/sector, 1953525168 sectors
> sd3 at scsibus1 targ 3 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c500939203ed
> sd3: 953869MB, 512 bytes/sector, 1953525168 sectors
>
> dmesg on host:
> ~~~~~~~~~~~~~~
>
> with disabled lm driver because of issue with bad fan RPM.
>
> OpenBSD 6.2-current (GENERIC.MP) #0: Sat Feb 10 00:05:49 MST 2018
>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8564375552 (8167MB)
> avail mem = 8297807872 (7913MB)
> enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d5a000
> enter_shared_special_pages: entered kutext page va 0xffffffff81831000 pa 0x1831000
> enter_shared_special_pages: entered kutext page va 0xffffffff81832000 pa 0x1832000
> enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
> enter_shared_special_pages: entered kudata page va 0xffffffff81ac8000 pa 0x1ac8000
> cpu_enter_pages: entered tss+gdt page at va 0xffffffff81ab4000 pa 0x1ab4000
> cpu_enter_pages: entered t.stack page at va 0xffffffff81ab5000 pa 0x1ab5000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81ab53e0
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9f000 (68 entries)
> bios0: vendor American Megatrends Inc. version "1.1" date 05/27/2010
> bios0: Supermicro X8SIL
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI DMAR SSDT
> acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) BR1E(S4) USB0(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) USB6(S4) GBE_(S4) BR20(S4) BR21(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> lapic_map: entered lapic page va 0xffffffff81a9e000 pa 0xfee00000
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.91 MHz
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
> cpu0: 256KB 64b/line 8-way L2 cache
> acpitimer0: recalibrated TSC frequency 1866666040 Hz
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 133MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> cpu1 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800021fff000 pa 0x10f7ab000
> cpu_enter_pages: entered t.stack page at va 0xffff800022000000 pa 0x10f7ac000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220003e0
> : apid 2 (application processor)
> cpu1: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022010000 pa 0x10f7b6000
> cpu_enter_pages: entered t.stack page at va 0xffff800022011000 pa 0x10f7b7000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220113e0
> : apid 4 (application processor)
> cpu2: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022019000 pa 0x10f7b9000
> cpu_enter_pages: entered t.stack page at va 0xffff80002201a000 pa 0x10f7ba000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002201a3e0
> : apid 6 (application processor)
> cpu3: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 0, core 3, package 0
> cpu4 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022022000 pa 0x10f7bc000
> cpu_enter_pages: entered t.stack page at va 0xffff800022023000 pa 0x10f7bd000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220233e0
> : apid 1 (application processor)
> cpu4: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
> cpu4: 256KB 64b/line 8-way L2 cache
> cpu4: smt 1, core 0, package 0
> cpu5 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff80002202b000 pa 0x10f7bf000
> cpu_enter_pages: entered t.stack page at va 0xffff80002202c000 pa 0x10f7c0000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002202c3e0
> : apid 3 (application processor)
> cpu5: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
> cpu5: 256KB 64b/line 8-way L2 cache
> cpu5: smt 1, core 1, package 0
> cpu6 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022034000 pa 0x10f7c2000
> cpu_enter_pages: entered t.stack page at va 0xffff800022035000 pa 0x10f7c3000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220353e0
> : apid 5 (application processor)
> cpu6: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
> cpu6: 256KB 64b/line 8-way L2 cache
> cpu6: smt 1, core 2, package 0
> cpu7 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff80002203d000 pa 0x10f7c5000
> cpu_enter_pages: entered t.stack page at va 0xffff80002203e000 pa 0x10f7c6000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002203e3e0
> : apid 7 (application processor)
> cpu7: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,INSECURE
> cpu7: 256KB 64b/line 8-way L2 cache
> cpu7: smt 1, core 3, package 0
> ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
> , remapped to apid 8
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpihpet0 at acpi0: 14318179 Hz
> acpihpet0: recalibrated TSC frequency 1866681600 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (P0P1)
> acpiprt2 at acpi0: bus 1 (P0P3)
> acpiprt3 at acpi0: bus 2 (P0P5)
> acpiprt4 at acpi0: bus -1 (P0P6)
> acpiprt5 at acpi0: bus 6 (BR1E)
> acpiprt6 at acpi0: bus 3 (BR20)
> acpiprt7 at acpi0: bus 4 (BR24)
> acpiprt8 at acpi0: bus 5 (BR25)
> acpicpu0 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu2 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu3 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu4 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu5 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu6 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu7 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpibtn0 at acpi0: PWRB
> ipmi at mainbus0 not configured
> cpu0: Enhanced SpeedStep 1866 MHz: speeds: 1868, 1867, 1733, 1600, 1467, 1333, 1200 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11
> ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: msi
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 5 function 0 "Intel Core PCIE" rev 0x11: msi
> pci2 at ppb1 bus 2
> em0 at pci2 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:28:c0
> em1 at pci2 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:28:c1
> "Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
> "Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
> "Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured
> "Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured
> "Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured
> "Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured
> ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 21
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb2 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: msi
> pci3 at ppb2 bus 3
> em2 at pci3 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:2d:74
> em3 at pci3 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:2d:75
> ppb3 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05: msi
> pci4 at ppb3 bus 4
> em4 at pci4 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:25:90:3c:66:00
> ppb4 at pci0 dev 28 function 5 "Intel 3400 PCIE" rev 0x05: msi
> pci5 at ppb4 bus 5
> em5 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:25:90:3c:66:01
> ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
> pci6 at ppb5 bus 6
> vga1 at pci6 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05
> ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: msi, AHCI 1.3
> ahci0: port 0: 3.0Gb/s
> ahci0: port 1: 3.0Gb/s
> ahci0: port 2: 3.0Gb/s
> ahci0: port 3: 3.0Gb/s
> ahci0: port 4: 3.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD7500BPKT-6, 01.0> SCSI3 0/direct fixed naa.50014ee6580d48d5
> sd0: 715404MB, 512 bytes/sector, 1465149168 sectors
> sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD7500BPKT-6, 01.0> SCSI3 0/direct fixed naa.50014ee6580d4746
> sd1: 715404MB, 512 bytes/sector, 1465149168 sectors
> sd2 at scsibus1 targ 2 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c5009387182f
> sd2: 953869MB, 512 bytes/sector, 1953525168 sectors
> sd3 at scsibus1 targ 3 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c500939203ed
> sd3: 953869MB, 512 bytes/sector, 1953525168 sectors
> sd4 at scsibus1 targ 4 lun 0: <ATA, OCZ-VERTEX3, 2.22> SCSI3 0/direct fixed naa.5e83a97e2078f993
> sd4: 122104MB, 512 bytes/sector, 250069680 sectors, thin
> ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 8 int 18
> iic0 at ichiic0
> sdtemp0 at iic0 addr 0x18: mcp98243
> sdtemp1 at iic0 addr 0x1a: mcp98243
> "eeprom" at iic0 addr 0x50 not configured
> "eeprom" at iic0 addr 0x52 not configured
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x25
> wbsio0 port 0xa10/2 not configured
> vmm0 at mainbus0: VMX/EPT
> uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> uhidev0 at uhub2 port 2 configuration 1 interface 0 "Winbond Electronics Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
> uhidev0: iclass 3/1
> ums0 at uhidev0: 3 buttons, Z dir
> wsmouse0 at ums0 mux 0
> uhidev1 at uhub2 port 2 configuration 1 interface 1 "Winbond Electronics Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
> uhidev1: iclass 3/1
> ukbd0 at uhidev1: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> umass0 at uhub2 port 3 configuration 1 interface 0 "Kingston DataTraveler 3.0" rev 2.10/0.01 addr 4
> umass0: using SCSI over Bulk-Only
> scsibus2 at umass0: 2 targets, initiator 0
> sd5 at scsibus2 targ 1 lun 0: <Kingston, DataTraveler 3.0, > SCSI4 0/direct removable serial.09511666F1307641D3AB
> sd5: 7377MB, 512 bytes/sector, 15109516 sectors
> uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> uhidev2 at uhub3 port 1 configuration 1 interface 0 "Cherry Mikroschalter product 0x0011" rev 2.00/1.00 addr 3
> uhidev2: iclass 3/1
> ukbd1 at uhidev2: 8 variable keys, 6 key codes
> wskbd2 at ukbd1 mux 1
> wskbd2: connecting to wsdisplay0
> uhidev3 at uhub3 port 2 configuration 1 interface 0 "American Power Conversion Back-UPS XS 1400U  FW:926.T2 .I USB FW:T2" rev 1.10/1.06 addr 4
> uhidev3: iclass 3/0, 123 report ids
> upd0 at uhidev3
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> sd6 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
> sd6: 20481MB, 512 bytes/sector, 41945104 sectors
> sd7 at scsibus4 targ 2 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
> sd7: 694920MB, 512 bytes/sector, 1423197841 sectors
> sd8 at scsibus4 targ 3 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
> sd8: 512000MB, 512 bytes/sector, 1048578023 sectors
> root on sd6a (667e2bfc7c13fc8a.a) swap on sd6b dump on sd6b
>
> dmesg of VMM guest:
> ~~~~~~~~~~~~~~~~~~~
>
> 2nd disk is softraid crypto array, manually enabled
>
> OpenBSD 6.2-current (GENERIC.MP) #0: Sat Feb 10 00:05:49 MST 2018
> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 520093696 (496MB)
> avail mem = 497381376 (474MB)
> enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d55000
> enter_shared_special_pages: entered kutext page va 0xffffffff81831000 pa 0x1831000
> enter_shared_special_pages: entered kutext page va 0xffffffff81832000 pa 0x1832000
> enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
> enter_shared_special_pages: entered kudata page va 0xffffffff81ac8000 pa 0x1ac8000
> cpu_enter_pages: entered tss+gdt page at va 0xffffffff81ab4000 pa 0x1ab4000
> cpu_enter_pages: entered t.stack page at va 0xffffffff81ab5000 pa 0x1ab5000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81ab53e0
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0
> acpi at bios0 not configured
> cpu0 at mainbus0: (uniprocessor)
> cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1867.15 MHz
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,HV,NXE,RDTSCP,LONG,LAHF,ITSC,INSECURE
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> 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 Storage" rev 0x00
> vioblk0 at virtio1
> scsibus1 at vioblk0: 2 targets
> sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
> sd0: 5120MB, 512 bytes/sector, 10485760 sectors
> virtio1: irq 5
> virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Storage" rev 0x00
> vioblk1 at virtio2
> scsibus2 at vioblk1: 2 targets
> sd1 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
> sd1: 20480MB, 512 bytes/sector, 41943040 sectors
> virtio2: irq 6
> virtio3 at pci0 dev 4 function 0 "Qumranet Virtio Network" rev 0x00
> vio0 at virtio3: address fe:e1:bb:d1:93:2b
> virtio3: irq 7
> virtio4 at pci0 dev 5 function 0 "OpenBSD VMM Control" rev 0x00
> vmmci0 at virtio4
> virtio4: irq 9
> isa0 at mainbus0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
> com0: console
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (6355033e836e6151.a) swap on sd0b dump on sd0b
> sd2 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
> sd2: 20479MB, 512 bytes/sector, 41942320 sectors
> Automatic boot in progress: starting file system checks.
> /dev/sd0a (6355033e836e6151.a): file system is clean; not checking
> /dev/sd0i (6355033e836e6151.i): file system is clean; not checking
> /dev/sd0d (6355033e836e6151.d): file system is clean; not checking
> /dev/sd0f (6355033e836e6151.f): file system is clean; not checking
> /dev/sd0g (6355033e836e6151.g): file system is clean; not checking
> /dev/sd0h (6355033e836e6151.h): file system is clean; not checking
> /dev/sd0e (6355033e836e6151.e): file system is clean; not checking
> setting tty flags
> pf enabled
> starting network
> vio0: bound to 100.64.2.3 from 100.64.2.2 (fe:e1:bb:d1:93:2c)
> reordering libraries: done.
> starting early daemons: syslogd pflogd ntpd.
> starting RPC daemons:.
> savecore: no core dump
> acpidump: Can't find ACPI information
> checking quotas: done.
> clearing /tmp
> kern.securelevel: 0 -> 1
> creating runtime link editor directory cache.
> preserving editor files.
> starting network daemons: smtpd sndiod.
> starting local daemons: cron.
> Mon Feb 12 08:14:37 CET 2018
>
> os/apps/stats... in vmm guest:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> # tail /var/log/daemon
> Feb 12 08:19:59 onion Tor[21861]: Bootstrapped 100%: Done
> Feb 12 08:20:04 onion ntpd[51629]: adjusting local clock by 0.384653s
> Feb 12 08:23:01 onion ntpd[51629]: adjusting local clock by -0.063873s
> Feb 12 08:42:58 onion Tor[21861]: Your system clock just jumped 150 seconds forward; assuming established circuits no longer work.
> Feb 12 08:42:59 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
> Feb 12 08:42:59 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
> Feb 12 08:45:55 onion Tor[21861]: Your system clock just jumped 150 seconds forward; assuming established circuits no longer work.
> Feb 12 08:45:57 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
> Feb 12 08:45:57 onion Tor[21861]: Tor has successfully opened a circuit. Looks like client functionality is working.
> Feb 12 08:47:05 onion ntpd[51629]: adjusting clock frequency by -7.934969 to -23.542969ppm
>
> # pkg_info | grep tor                                                    
> tor-0.3.2.9p0       anonymity service using onion routing
>
> # vmstat  
>  procs    memory       page                    disks    traps          cpu
>  r   s   avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
>  1  35   42M    304M   84   0   0   0   0   0   9   0  112   278   29  0 88 12
>
> some stats from inside vmm guest:
>
> vmstat -c 1 -w 5
>  procs    memory       page                    disks    traps          cpu
>  r   s   avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
>  1  36   42M    304M   64   0   0   0   0   0   6   0  109   217   29  0 88 12
>
> systat -d 1 -b -n -w 80 ifstat
>
>    1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:20
> IFACE     STATE DESC             IPKTS IBYTES  IERRS  OPKTS OBYTES  OERRS  COLLS
> vio0      up:U                       0      0      0      0      0      0      0
> enc0      dn:U                       0      0      0      0      0      0      0
> lo0       up                         0      0      0      0      0      0      0
> pflog0    up                         0      0      0      0      0      0      0
> Totals                               0      0      0      0      0      0      0
>
> systat -d 1 -b -n -w 80 iostat
>
>    1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:20
> DEVICE          READ    WRITE     RTPS    WTPS     SEC            STATS        
> sd0         18958950 27185971      632    2078     2.1                          
> sd1            53043    10649        6       0     0.0                          
> sd2            19046     4096        2       0     0.0                          
> Totals      19031039 27200716      640    2080     2.2                          
>                                                             23231 total pages  
>                                                             23231 dma pages    
>                                                                32 dirty pages  
>                                                                 8 delwri bufs  
>                                                                 0 busymap bufs  
>                                                              1543 avail kvaslots
>                                                              1543 kvaslots      
>                                                                 0 pending writes
>                                                                 0 pending reads
>                                                                 0 cache hits    
>                                                                 0 high flips    
>                                                                 0 high flops    
>                                                                 0 dma flips    
>
> systat -d 1 -b -n -w 80 mbufs
>
>    1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:24
> IFACE             LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM                      
> System                    0   256   134          11                            
>                              2048    14           4                            
> lo0                                                                            
> vio0                         2048     6     2   128     6                      
> enc0                                                                            
> pflog0                                                                          
>
> systat -d 1 -b -n -w 80 netstat
>
>    1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:24
> LOCAL ADDRESS          FOREIGN ADDRESS        PROTO   RECV-Q  SEND-Q STATE      
> 127.0.0.1:26705        127.0.0.1:9050         tcp          0       0 TIME_WAIT  
> 100.64.2.3:46165       46.166.165.18:9001     tcp          0       0 ESTABLISHED
>
> systat -d 1 -b -n -w 80 swap
>
>    1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:26
> DISK         512-blocks       USED       20\      40\      60\      80\     100\
> sd0b            1044226          0                                              
>
> systat -d 1 -b -n -w 80 states
>
>    1 users Load 0.03 0.01 0.00 (1-21 of 70)             onion.xxx 09:00:26
> PR   D SRC                  DEST                 STATE   AGE   EXP  PKTS BYTES A
> tcp  O 100.64.2.3:46165     46.166.165.18:9001    4:4   2427 86299  1128  580K *
> udp  O 100.64.2.3:25259     100.64.2.2:53         2:1     53     0     2   100 1
> udp  O 100.64.2.3:20112     100.64.2.2:53         2:1     53     0     2   100 1
> udp  O 100.64.2.3:37223     100.64.2.2:53         2:1     53     0     2   100 1
> udp  O 100.64.2.3:2129      100.64.2.2:53         2:1     53     0     2   100 1
> udp  O 100.64.2.3:45180     100.64.2.2:53         2:1     53     0     2   100 1
> udp  O 100.64.2.3:5504      100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:44179     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:30595     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:4562      100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:48989     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:21079     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:41037     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:4739      100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:33984     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:23139     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:18018     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:18401     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:1817      100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:47599     100.64.2.2:53         2:1     23     7     2   100 4
> udp  O 100.64.2.3:39838     100.64.2.2:53         2:1     23     7     2   100 4
>
> systat -d 1 -b -n -w 80 pool
>
>    1 users Load 0.03 0.01 0.00 (1-21 of 162)            onion.xxx 09:00:30
> NAME             SIZE REQUESTS     FAIL    INUSE    PGREQ    PGREL    NPAGE HIWA
> amapchunkpl       152     1454        0      178       13        4        9    9
> amappl             72      453        0       56        3        1        2    2
> amappl1            72    52926        0     4612      283      196       87  100
> amappl10          144      255        0        5        1        0        1    1
> amappl11          152      638        0       47        2        0        2    2
> amappl12          160       47        0        7        1        0        1    1
> amappl13          168       66        0       13        1        0        1    1
> amappl14          176       70        0        3        2        1        1    1
> amappl15          184       43        0        1        1        0        1    1
> amappl16          192      438        0       32        4        1        3    3
> amappl2            80     3270        0      219       15        8        7    9
> amappl3            88      401        0       18        4        3        1    4
> amappl4            96      804        0       79        7        5        2    4
> amappl5           104      469        0       27        2        1        1    2
> amappl6           112      307        0       17        1        0        1    1
> amappl7           120      196        0       23        1        0        1    1
> amappl8           128     1860        0       33       32       30        2   31
> amappl9           136      100        0       11        1        0        1    1
> anonpl             16    93305        0     8523      100       63       37   60
> aobjpl             64        1        0        1        1        0        1    1
> arp                56        2        0        2        1        0        1    1
>
> systat -d 1 -b -n -w 80 pcache
>
>    1 users Load 0.03 0.01 0.00 (1-21 of 162)            onion.xxx 09:00:34
> NAME             LEN IDLE  NGC  CPU         REQ        REL       LREQ       LREL
> mbufpl             8    0    6    0       26175      26230          1          7
> mtagpl             8    0    0    0           2          3          0          0
> mcl2k              8    0    0    0        6032       6047          0          0
> mcl2k2             8    0    0    0           7          8          0          0
> mcl4k              8    0    0    0          19         22          0          0
> mcl8k              8    0    0    0           0          0          0          0
> mcl9k              8    0    0    0           0          0          0          0
> mcl12k             8    0    0    0           0          0          0          0
> mcl16k             8    0    0    0           0          0          0          0
> mcl64k             8    0    0    0           0          0          0          0
>
> systat -d 1 -b -n -w 80 malloc
>
>    1 users Load 0.03 0.01 0.00 (1-21 of 35)             onion.xxx 09:00:36
> TYPE            INUSE MEMUSE HIGHUS  LIMIT REQUESTS TYPE  KERN  BUCKETS        
> ISOFS mount         1  32768  32768 76185K        1     0     0 ...........|....
> MSDOSFS mount       1  16384  16384 76185K        1     0     0 ..........|.....
> NDP                 4    128    128 76185K        4     0     0 .|..............
> NFS daemon          1  16384  16384 76185K        1     0     0 ..........|.....
> NFS srvsock         1    128    128 76185K        1     0     0 ...|............
> SYN cache           2  16384  16384 76185K        2     0     0 .........|......
> UFS mount          33  69872  69872 76185K       33     0     0 |..|.|.|...|....
> UFS quota           1  32768  32768 76185K        1     0     0 ...........|....
> UVM amap          199   8768   8816 76185K     2028     0     0 |||||...........
> UVM aobj            2   2064   2064 76185K        2     0     0 |......|........
> VM map              2    512    512 76185K        2     0     0 ....|...........
> VM swap             7  39120  39120 76185K        7     0     0 |.|....|..||....
> counters           18  16896  16896 76185K       18     0     0 ..|||||.||......
> crypto data        20 264512 264512 76185K       20     0     0 ..|.|.|...|.....
> devbuf            549 467568 500352 76185K     1402     0     0 |||||||||||||...
> dirhash            39   7808   7808 76185K       63     0     0 ||||.|..........
> ether_multi         1     32     32 76185K        1     0     0 .|..............
> exec                0      0   1344 76185K      455     0     0 ||..|.|.........
> file desc           1    512    512 76185K        1     0     0 .....|..........
> ifaddr             26   8384   8384 76185K       30     0     0 .||||...|.......
> in_multi           11    704    704 76185K       11     0     0 .|||............
>
> systat -d 1 -b -n -w 80 buckets
>
>    1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:40
> BUCKET         REQUESTS          INUSE          FREE         HIWAT     COULDFREE
> 16                 1074            184            72          1280             0
> 32                 1387            154           102           640             0
> 64                 3532           1242            38           320             0
> 128                 974            342            42           160             0
> 256                2814             67            13            80             0
> 512                 766            103             9            40             0
> 1024               1155            291             5            20             0
> 2048                 58             28             2            10             0
> 4096               1000             14             1             5             0
> 8192                201            196             0             5             0
> 16384               225             20             0             5             0
> 32768                18             10             0             5             0
> 65536               284              1             0             5             0
> 131072                0              0             0             5             0
> 262144                0              0             0             5             0
> 524288                1              1             0             5             0
>
> systat -d 1 -b -n -w 80 cpu
>
>    1 users Load 0.03 0.01 0.00                          onion.xxx 09:00:42
> CPU                User           Nice        System     Interrupt          Idle
> 0                  0.0%           0.0%          0.0%          0.0%          0.0%
>

Reply | Threaded
Open this post in threaded view
|

Re: tor inside vmm, horribly slow?!

Jiri B-2
On Mon, Feb 12, 2018 at 12:38:00AM -0800, Mike Larkin wrote:

> > > > it's horrible slow, just doing 'tor-resolve $dnsname' takes
> > > > sometimes ages.
> > > > [...]
> [...]
>
> What did the guest pick for timecounter? (sysctl kern.timecounter.hardware)
>
> Your hardware is nearly a decade old. I wouldn't be surprised if vmm
> picked some ancient timecounter hardware. For the example below, my guest
> chose 'tsc' (I have a 2013-era Ivy Bridge CPU). All my hosts/VMs are
> -current. And we know if your hardware is shit, we do the best we can but
> no promises as to how precise time is going to be. With tsc timecounter,
> my VMs that have been up for weeks have drifted maybe a second or two from
> the host.
>
> [...]
>
> In other words, I don't see anything odd here. The vm appears to actually
> be running faster than the host. I'm not concerned about the 2-3 second
> difference on the first resolve. I bet if I ran it a hundred times I'd see
> things pretty much the same.

Mike, thank you for your time. The VM picked 'tsc' as timecounter.

Putting CC Pascal, Tor port maintainer, as I am suspicious that this slowness
is related to what tor itself is doing in that time.

Pascal, any idea what could cause slowness of tor when using onion service
inside VMM? Info below (plus history https://marc.info/?l=openbsd-misc&m=151839235419514&w=2):

Feb 12 10:30:25 onion Tor[96278]: connection_connect_sockaddr: Connection to socket established (sock 4).
Feb 12 10:32:55 onion Tor[96278]: connection_edge_reached_eof: conn (fd 4) reached eof. Closing.
Feb 12 10:32:55 onion Tor[96278]: Your system clock just jumped 151 seconds forward; assuming established circuits no longer work.
^^^ 2 mins gap?

Tor tests, if this is general issue or not.

- scenario 1

* loop date + tor-resolve $dnsname + sleep 1
* torsocks curl -s -I http://www.openbsd.org

^^  this works ok

- scenario 2

make tor to have local onion service with httpd enabled

* install -d -o _tor -g _tor -m 700 /var/tor/onion

* modify /etc/tor/torrc:

Log debug syslog
HiddenServiceDir /var/tor/onion/
HiddenServicePort 80 127.0.0.1:80

* enable httpd & tor
* loop date + tor-resolve $dnsname + sleep 1
* get your .onion service address

cat /var/tor/onion/hostname

* access your .onion service from other (tor)browser

...
Feb 12 10:30:24.519 [warn] Got SOCKS5 status response '4': host is unreachable
Mon Feb 12 10:30:26 CET 2018
129.128.5.194
Mon Feb 12 10:32:58 CET 2018
129.128.5.194
Mon Feb 12 10:33:00 CET 2018
...

^^ tor-resolve $dnsnanme gets slow downed in a while, 2 mins gap

Feb 12 10:30:24 onion Tor[96278]: rend_service_rendezvous_has_opened: Done building circuit 2327426966 to rendezvous with cookie D92E6387 for service xxxxxxxxxxxxxxxx
Feb 12 10:30:24 onion Tor[96278]: internal circ (length 4): $0FBE018DADAB416DE17A10C5D4AD3EBF0E243561(open) $BF50E09EED25B82861CF95E1AAA42DCFEF53E5D1(open) $F80FDE27EFCB3F6A7B4E2CC517133DBFFA78BA2D(open) $CCF0E904BAD135F6B2180BD89D19E487F83786A5(open)
Feb 12 10:30:24 onion Tor[96278]: connection_handle_listener_read: New SOCKS connection opened from 127.0.0.1.
Feb 12 10:30:24 onion Tor[96278]: rep_hist_note_used_port: New port prediction added. Will continue predictive circ building for 1967 more seconds.
Feb 12 10:30:24 onion Tor[96278]: connection_edge_process_inbuf: data from edge while in 'waiting for circuit' state. Leaving it on buffer.
Feb 12 10:30:24 onion Tor[96278]: exit circ (length 3): $0FBE018DADAB416DE17A10C5D4AD3EBF0E243561(open) $594252BFEE13625AC120F50F3015CB3C1DA55690(open) $1AF72E8906E6C49481A791A6F8F84F8DFEBBB2BA(open)
Feb 12 10:30:24 onion Tor[96278]: pathbias_count_use_attempt: Used circuit 2 is already in path state use succeeded. Circuit is a General-purpose client currently open.
Feb 12 10:30:24 onion Tor[96278]: link_apconn_to_circ: Looks like completed circuit to [scrubbed] does allow optimistic data for connection to [scrubbed]
Feb 12 10:30:24 onion Tor[96278]: connection_ap_handshake_send_resolve: Address sent for resolve, ap socket 4, n_circ_id 2260876578
Feb 12 10:30:25 onion Tor[96278]: connection_connect_sockaddr: Connection to socket established (sock 4).
Feb 12 10:32:55 onion Tor[96278]: connection_edge_reached_eof: conn (fd 4) reached eof. Closing.
Feb 12 10:32:55 onion Tor[96278]: Your system clock just jumped 151 seconds forward; assuming established circuits no longer work.

^^ 2 mins gap

So just slow HW issue?

Jiri

Reply | Threaded
Open this post in threaded view
|

Re: tor inside vmm, horribly slow?!

me-2
In reply to this post by Jiri B-2


> Am 12.02.2018 um 00:38 schrieb Jiri B <[hidden email]>:
>
> Hi,
>
> has anybody tried to run tor inside vmm guest?
>
> it's horrible slow, just doing 'tor-resolve $dnsname' takes
> sometimes ages.

Perhaps this has nothing to do with vmm.

I am not a computer expert, just a normal user (so please don't ask me
to difficult questions), but I run tor on my computer at home (so it's
real hardware and no vmm).

Since upgrading OpenBSD from

| OpenBSD 6.2-current (GENERIC.MP) #399: Fri Feb  2 18:28:58 MST 2018
|    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

to

| OpenBSD 6.2-current (GENERIC.MP) #4: Sat Feb 10 18:04:19 MST 2018
|    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

my tor server also has problems.


/var/log/daemon:
| Feb 11 20:15:50 server Tor[54286]: Your system clock just jumped 115 seconds forward; assuming established circuits no longer work.
| Feb 11 20:16:02 server Tor[54286]: Tor has successfully opened a circuit. Looks like client functionality is working.
| Feb 11 20:16:02 server Tor[54286]: Tor has successfully opened a circuit. Looks like client functionality is working.
| Feb 11 20:24:43 server Tor[54286]: Your system clock just jumped 299 seconds forward; assuming established circuits no longer work.
| Feb 11 20:26:24 server Tor[54286]: tor_assertion_failed_: Bug: src/or/channel.c:1503: channel_closed: Assertion CHANNEL_CONDEMNED(chan) failed; aborting. (on Tor 0.3.2.9 9e8b762fcecfece6)
| Feb 11 20:26:24 server Tor[54286]: Bug: Assertion CHANNEL_CONDEMNED(chan) failed in channel_closed at src/or/channel.c:1503. (Stack trace not available) (on Tor 0.3.2.9 9e8b762fcecfece6)

dmesg:

OpenBSD 6.2-current (GENERIC.MP) #4: Sat Feb 10 18:04:19 MST 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8351621120 (7964MB)
avail mem = 8091496448 (7716MB)
enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d5c000
enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
enter_shared_special_pages: entered kutext page va 0xffffffff81834000 pa 0x1834000
enter_shared_special_pages: entered kutext page va 0xffffffff81835000 pa 0x1835000
enter_shared_special_pages: entered kudata page va 0xffffffff81acb000 pa 0x1acb000
cpu_enter_pages: entered tss+gdt page at va 0xffffffff81aa2000 pa 0x1aa2000
cpu_enter_pages: entered t.stack page at va 0xffffffff81aa3000 pa 0x1aa3000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81aa33e0
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xedc10 (87 entries)
bios0: vendor LENOVO version "FBKTCQAUS" date 12/16/2017
bios0: LENOVO ThinkServer TS140
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC FPDT FIDT TCPA DBGP LUFT SSDT SSDT MCFG
HPET SSDT SSDT ASF! DMAR EINJ ERST HEST BERT BGRT
acpi0: wakeup devices UAR1(S0) PXSX(S0) RP01(S0) PXSX(S0) PXSX(S0)
PXSX(S0) RP04(S0) PXSX(S0) PXSX(S0) PXSX(S0) PXSX(S0) GLAN(S0)
EHC1(S0) EHC2(S0) XHC_(S0) HDEF(S0) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
lapic_map: entered lapic page va 0xffffffff81aa6000 pa 0xfee00000
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz, 3492.47 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 3292379149 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
cpu1 at mainbus0cpu_enter_pages: entered tss+gdt page at va
0xffff800022000000 pa 0x10f184000
cpu_enter_pages: entered t.stack page at va 0xffff800022001000 pa 0x10f185000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220013e0
: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz, 3491.92 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0cpu_enter_pages: entered tss+gdt page at va
0xffff800022011000 pa 0x10f18f000
cpu_enter_pages: entered t.stack page at va 0xffff800022012000 pa 0x10f190000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220123e0
: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz, 3491.92 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0cpu_enter_pages: entered tss+gdt page at va
0xffff80002201a000 pa 0x10f192000
cpu_enter_pages: entered t.stack page at va 0xffff80002201b000 pa 0x10f193000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002201b3e0
: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz, 3491.92 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpihpet0: recalibrated TSC frequency 3292361746 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP04)
acpiprt3 at acpi0: bus -1 (PEG0)
acpiprt4 at acpi0: bus -1 (PEG1)
acpiprt5 at acpi0: bus -1 (PEG2)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpipwrres1 at acpi0: FN01, resource for FAN1
acpipwrres2 at acpi0: FN02, resource for FAN2
acpipwrres3 at acpi0: FN03, resource for FAN3
acpipwrres4 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
"INT3F0D" at acpi0 not configured
tpm0 at acpi0: TPM_ addr 0xfed40000/0x5000: device 0x0000104a rev 0x4e
acpibtn0 at acpi0: PWRB
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 3492 MHz: speeds: 3301, 3300, 3100, 2900,
2800, 2600, 2400, 2200, 2000, 1900, 1700, 1500, 1300, 1200, 1000, 800
MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Xeon E3-1200 v3 Host" rev 0x06
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics P4600" rev 0x06
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1920x1080, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x06: msi
azalia0: No codecs found
xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x05: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel I217-LM" rev 0x05: msi, address 6c:0b:84:ab:7b:9d
ehci0 at pci0 dev 26 function 0 "Intel 8 Series USB" rev 0x05: apic 8 int 17
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x05: msi
azalia1: codecs: Realtek ALC662
audio0 at azalia1
ppb0 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xd5
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 3 "Intel 8 Series PCIE" rev 0xd5: msi
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 "ITExpress IT8893E PCIE-PCI" rev 0x41
pci3 at ppb2 bus 3
ehci1 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x05: apic 8 int 23
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel C226 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x05: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 6.0Gb/s
ahci0: port 2: 6.0Gb/s
ahci0: port 3: 6.0Gb/s
ahci0: port 4: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD30EFRX-68E, 80.0> SCSI3
0/direct fixed naa.50014ee6af299a57
sd0: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD30EFRX-68E, 80.0> SCSI3
0/direct fixed naa.50014ee6047f0c09
sd1: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd2 at scsibus1 targ 2 lun 0: <ATA, WDC WD30EFRX-68E, 82.0> SCSI3
0/direct fixed naa.50014ee2613796fe
sd2: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd3 at scsibus1 targ 3 lun 0: <ATA, WDC WD30EFRX-68E, 80.0> SCSI3
0/direct fixed naa.50014ee003d70fb7
sd3: 2861588MB, 512 bytes/sector, 5860533168 sectors
cd0 at scsibus1 targ 4 lun 0: <HL-DT-ST, DVDRAM GTC0N, LW01> ATAPI 5/cdrom removable
ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x05: apic 8 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x19: mcp98243
sdtemp1 at iic0 addr 0x1b: mcp98243
spdmem0 at iic0 addr 0x51: 4GB DDR3 SDRAM ECC PC3-12800 with thermal sensor
spdmem1 at iic0 addr 0x53: 4GB DDR3 SDRAM ECC PC3-12800 with thermal sensor
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
uonerng0 at uhub0 port 1 configuration 1 interface 0 "Moonbase Otago
http://www.moonbaseotago.com/random 00" rev 2.00/0.09 addr 2
uonerng0: xfer failed: TIMEOUT
uonerng1 at uhub0 port 1 configuration 1 interface 1 "Moonbase Otago
http://www.moonbaseotago.com/random 00" rev 2.00/0.09 addr 2
uonerng1: failed to open bulk-in pipe: IN_USE
udcf0 at uhub0 port 3 configuration 1 interface 0 "GUDEADS Expert
mouseCLOCK USB II" rev 2.00/6.00 addr 3
uhidev0 at uhub0 port 4 configuration 1 interface 0 "Heng Yu
Technology K108D" rev 1.10/1.00 addr 4
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub0 port 4 configuration 1 interface 1 "Heng Yu
Technology K108D" rev 1.10/1.00 addr 4
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 1: input=0, output=0, feature=7
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 3: input=3, output=0, feature=0
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.05 addr 2
uhub4 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.05 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd4 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd4: 2861588MB, 512 bytes/sector, 5860532576 sectors
sd5 at scsibus3 targ 2 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd5: 2861588MB, 512 bytes/sector, 5860532576 sectors
root on sd4a (68f9e850be9db7fb.a) swap on sd4b dump on sd4b

Reply | Threaded
Open this post in threaded view
|

Re: tor inside vmm, horribly slow?!

Chris Cappuccio
Revert uipc_socket.c rev 1.90. Does tor work properly again?

Thomas Weinbrenner [[hidden email]] wrote:

>
>
> > Am 12.02.2018 um 00:38 schrieb Jiri B <[hidden email]>:
> >
> > Hi,
> >
> > has anybody tried to run tor inside vmm guest?
> >
> > it's horrible slow, just doing 'tor-resolve $dnsname' takes
> > sometimes ages.
>
> Perhaps this has nothing to do with vmm.
>
> I am not a computer expert, just a normal user (so please don't ask me
> to difficult questions), but I run tor on my computer at home (so it's
> real hardware and no vmm).
>
> Since upgrading OpenBSD from
>
> | OpenBSD 6.2-current (GENERIC.MP) #399: Fri Feb  2 18:28:58 MST 2018
> |    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> to
>
> | OpenBSD 6.2-current (GENERIC.MP) #4: Sat Feb 10 18:04:19 MST 2018
> |    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> my tor server also has problems.
>
>
> /var/log/daemon:
> | Feb 11 20:15:50 server Tor[54286]: Your system clock just jumped 115 seconds forward; assuming established circuits no longer work.
> | Feb 11 20:16:02 server Tor[54286]: Tor has successfully opened a circuit. Looks like client functionality is working.
> | Feb 11 20:16:02 server Tor[54286]: Tor has successfully opened a circuit. Looks like client functionality is working.
> | Feb 11 20:24:43 server Tor[54286]: Your system clock just jumped 299 seconds forward; assuming established circuits no longer work.
> | Feb 11 20:26:24 server Tor[54286]: tor_assertion_failed_: Bug: src/or/channel.c:1503: channel_closed: Assertion CHANNEL_CONDEMNED(chan) failed; aborting. (on Tor 0.3.2.9 9e8b762fcecfece6)
> | Feb 11 20:26:24 server Tor[54286]: Bug: Assertion CHANNEL_CONDEMNED(chan) failed in channel_closed at src/or/channel.c:1503. (Stack trace not available) (on Tor 0.3.2.9 9e8b762fcecfece6)
>
> dmesg:
>
> OpenBSD 6.2-current (GENERIC.MP) #4: Sat Feb 10 18:04:19 MST 2018
>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8351621120 (7964MB)
> avail mem = 8091496448 (7716MB)
> enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d5c000
> enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
> enter_shared_special_pages: entered kutext page va 0xffffffff81834000 pa 0x1834000
> enter_shared_special_pages: entered kutext page va 0xffffffff81835000 pa 0x1835000
> enter_shared_special_pages: entered kudata page va 0xffffffff81acb000 pa 0x1acb000
> cpu_enter_pages: entered tss+gdt page at va 0xffffffff81aa2000 pa 0x1aa2000
> cpu_enter_pages: entered t.stack page at va 0xffffffff81aa3000 pa 0x1aa3000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81aa33e0
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xedc10 (87 entries)
> bios0: vendor LENOVO version "FBKTCQAUS" date 12/16/2017
> bios0: LENOVO ThinkServer TS140
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S5
> acpi0: tables DSDT FACP APIC FPDT FIDT TCPA DBGP LUFT SSDT SSDT MCFG
> HPET SSDT SSDT ASF! DMAR EINJ ERST HEST BERT BGRT
> acpi0: wakeup devices UAR1(S0) PXSX(S0) RP01(S0) PXSX(S0) PXSX(S0)
> PXSX(S0) RP04(S0) PXSX(S0) PXSX(S0) PXSX(S0) PXSX(S0) GLAN(S0)
> EHC1(S0) EHC2(S0) XHC_(S0) HDEF(S0) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> lapic_map: entered lapic page va 0xffffffff81aa6000 pa 0xfee00000
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz, 3492.47 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
> cpu0: 256KB 64b/line 8-way L2 cache
> acpitimer0: recalibrated TSC frequency 3292379149 Hz
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
> cpu1 at mainbus0cpu_enter_pages: entered tss+gdt page at va
> 0xffff800022000000 pa 0x10f184000
> cpu_enter_pages: entered t.stack page at va 0xffff800022001000 pa 0x10f185000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220013e0
> : apid 2 (application processor)
> cpu1: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz, 3491.92 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0cpu_enter_pages: entered tss+gdt page at va
> 0xffff800022011000 pa 0x10f18f000
> cpu_enter_pages: entered t.stack page at va 0xffff800022012000 pa 0x10f190000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220123e0
> : apid 4 (application processor)
> cpu2: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz, 3491.92 MHz
> cpu2:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0cpu_enter_pages: entered tss+gdt page at va
> 0xffff80002201a000 pa 0x10f192000
> cpu_enter_pages: entered t.stack page at va 0xffff80002201b000 pa 0x10f193000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002201b3e0
> : apid 6 (application processor)
> cpu3: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz, 3491.92 MHz
> cpu3:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 0, core 3, package 0
> ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpihpet0: recalibrated TSC frequency 3292361746 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (RP01)
> acpiprt2 at acpi0: bus 2 (RP04)
> acpiprt3 at acpi0: bus -1 (PEG0)
> acpiprt4 at acpi0: bus -1 (PEG1)
> acpiprt5 at acpi0: bus -1 (PEG2)
> acpiec0 at acpi0: not present
> acpicpu0 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
> acpicpu2 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
> acpicpu3 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
> acpipwrres0 at acpi0: FN00, resource for FAN0
> acpipwrres1 at acpi0: FN01, resource for FAN1
> acpipwrres2 at acpi0: FN02, resource for FAN2
> acpipwrres3 at acpi0: FN03, resource for FAN3
> acpipwrres4 at acpi0: FN04, resource for FAN4
> acpitz0 at acpi0: critical temperature is 105 degC
> acpitz1 at acpi0: critical temperature is 105 degC
> "INT3F0D" at acpi0 not configured
> tpm0 at acpi0: TPM_ addr 0xfed40000/0x5000: device 0x0000104a rev 0x4e
> acpibtn0 at acpi0: PWRB
> "PNP0C0B" at acpi0 not configured
> "PNP0C0B" at acpi0 not configured
> "PNP0C0B" at acpi0 not configured
> "PNP0C0B" at acpi0 not configured
> "PNP0C0B" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> acpivideo0 at acpi0: GFX0
> acpivout0 at acpivideo0: DD1F
> cpu0: Enhanced SpeedStep 3492 MHz: speeds: 3301, 3300, 3100, 2900,
> 2800, 2600, 2400, 2200, 2000, 1900, 1700, 1500, 1300, 1200, 1000, 800
> MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Xeon E3-1200 v3 Host" rev 0x06
> inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics P4600" rev 0x06
> drm0 at inteldrm0
> inteldrm0: msi
> inteldrm0: 1920x1080, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x06: msi
> azalia0: No codecs found
> xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x05: msi
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
> "Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
> em0 at pci0 dev 25 function 0 "Intel I217-LM" rev 0x05: msi, address 6c:0b:84:ab:7b:9d
> ehci0 at pci0 dev 26 function 0 "Intel 8 Series USB" rev 0x05: apic 8 int 17
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x05: msi
> azalia1: codecs: Realtek ALC662
> audio0 at azalia1
> ppb0 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xd5
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 28 function 3 "Intel 8 Series PCIE" rev 0xd5: msi
> pci2 at ppb1 bus 2
> ppb2 at pci2 dev 0 function 0 "ITExpress IT8893E PCIE-PCI" rev 0x41
> pci3 at ppb2 bus 3
> ehci1 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x05: apic 8 int 23
> usb2 at ehci1: USB revision 2.0
> uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> pcib0 at pci0 dev 31 function 0 "Intel C226 LPC" rev 0x05
> ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x05: msi, AHCI 1.3
> ahci0: port 0: 6.0Gb/s
> ahci0: port 1: 6.0Gb/s
> ahci0: port 2: 6.0Gb/s
> ahci0: port 3: 6.0Gb/s
> ahci0: port 4: 1.5Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD30EFRX-68E, 80.0> SCSI3
> 0/direct fixed naa.50014ee6af299a57
> sd0: 2861588MB, 512 bytes/sector, 5860533168 sectors
> sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD30EFRX-68E, 80.0> SCSI3
> 0/direct fixed naa.50014ee6047f0c09
> sd1: 2861588MB, 512 bytes/sector, 5860533168 sectors
> sd2 at scsibus1 targ 2 lun 0: <ATA, WDC WD30EFRX-68E, 82.0> SCSI3
> 0/direct fixed naa.50014ee2613796fe
> sd2: 2861588MB, 512 bytes/sector, 5860533168 sectors
> sd3 at scsibus1 targ 3 lun 0: <ATA, WDC WD30EFRX-68E, 80.0> SCSI3
> 0/direct fixed naa.50014ee003d70fb7
> sd3: 2861588MB, 512 bytes/sector, 5860533168 sectors
> cd0 at scsibus1 targ 4 lun 0: <HL-DT-ST, DVDRAM GTC0N, LW01> ATAPI 5/cdrom removable
> ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x05: apic 8 int 18
> iic0 at ichiic0
> sdtemp0 at iic0 addr 0x19: mcp98243
> sdtemp1 at iic0 addr 0x1b: mcp98243
> spdmem0 at iic0 addr 0x51: 4GB DDR3 SDRAM ECC PC3-12800 with thermal sensor
> spdmem1 at iic0 addr 0x53: 4GB DDR3 SDRAM ECC PC3-12800 with thermal sensor
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> vmm0 at mainbus0: VMX/EPT
> uonerng0 at uhub0 port 1 configuration 1 interface 0 "Moonbase Otago
> http://www.moonbaseotago.com/random 00" rev 2.00/0.09 addr 2
> uonerng0: xfer failed: TIMEOUT
> uonerng1 at uhub0 port 1 configuration 1 interface 1 "Moonbase Otago
> http://www.moonbaseotago.com/random 00" rev 2.00/0.09 addr 2
> uonerng1: failed to open bulk-in pipe: IN_USE
> udcf0 at uhub0 port 3 configuration 1 interface 0 "GUDEADS Expert
> mouseCLOCK USB II" rev 2.00/6.00 addr 3
> uhidev0 at uhub0 port 4 configuration 1 interface 0 "Heng Yu
> Technology K108D" rev 1.10/1.00 addr 4
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> uhidev1 at uhub0 port 4 configuration 1 interface 1 "Heng Yu
> Technology K108D" rev 1.10/1.00 addr 4
> uhidev1: iclass 3/0, 3 report ids
> uhid0 at uhidev1 reportid 1: input=0, output=0, feature=7
> uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
> uhid2 at uhidev1 reportid 3: input=3, output=0, feature=0
> uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
> Hub" rev 2.00/0.05 addr 2
> uhub4 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching
> Hub" rev 2.00/0.05 addr 2
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> sd4 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
> sd4: 2861588MB, 512 bytes/sector, 5860532576 sectors
> sd5 at scsibus3 targ 2 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
> sd5: 2861588MB, 512 bytes/sector, 5860532576 sectors
> root on sd4a (68f9e850be9db7fb.a) swap on sd4b dump on sd4b

Reply | Threaded
Open this post in threaded view
|

Re: tor inside vmm, horribly slow?!

Chris Cappuccio
In reply to this post by me-2
Oops, actually uipc_socket2.c

Reply | Threaded
Open this post in threaded view
|

Re: tor inside vmm, horribly slow?!

me-2
In reply to this post by Chris Cappuccio


> Am 14.02.2018 um 02:09 schrieb Chris Cappuccio <[hidden email]>:
>
> Revert uipc_socket.c rev 1.90. Does tor work properly again?

Because of https://marc.info/?l=openbsd-ports&m=151855574502582
I tried a newer snapshot and now tor works properly again.

signature.asc (849 bytes) Download Attachment