dmesg | grep HPET
[    0.000000] ACPI: HPET 0x00000000BFFE274F 000038 (v01 BOCHS  BXPCHPET 00000001 BXPC 00000001)
[    0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000

I seem to indeed have a HPET in my VM. Does that mean that I should be able to use fq as intended or could the HPET be some kind of virtualized device?

Regards,
Hans-Kristian 

On 25 January 2017 at 22:09, Jonathan Morton <chromatix99@gmail.com> wrote:

> On 25 Jan, 2017, at 23:05, Hans-Kristian Bakke <hkbakke@gmail.com> wrote:
>
> Do I understand correctly that fq is really just hit and miss within a VM in general then? Is there no advantage to the fair queing part even with a low-precision clock?

First, check using dmesg or whatever that you do, or do not, have a working HPET within your VM.

If this is a widespread problem, I could concoct a patch to sch_fq which compensates for it.  I already fixed the same problem when using part of sch_fq as a basis for part of sch_cake, and demonstrated correct operation on an old, slow PC without an HPET.

 - Jonathan Morton