[Bug 216759] [kern] Memory speed with small blocks (1K) up to 35 times slower than host system (under QEMU emulation, but not only)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 28 15:55:17 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216759

--- Comment #10 from andrew at azar-a.net ---
About linux, seems kvm-clock is broken somehow, I adjusted to TSC and got 3700
of the host...


And it seems same is for FreeBSD. Only BSD forces HPET or ACPI on any
virtualised platform. So there is only manual way to force to TSC-low which
brings us back to 3700

Seems like kernel timecounters code has been written in times of just appearing
invariant_tsc and it does not know anything about CPU flags constant_tsc
nonstop_tsc tsc_deadline_timer etc...

It's really simple in code. If it's invariant or SMP it's boosted... and that's
it:

https://github.com/freebsd/freebsd/blob/21c11d113415f2c87107b6735407b147fae0b851/sys/x86/x86/tsc.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-virtualization mailing list