Closed yogev1978 closed 9 years ago
Thanks, I will look into it. This is supposed to work (RDTSC is supported).
Do you know what hardware is used to measure the time (PIT, RTC, ...)?
I am not a developer myself (volunteering as a PR guy for KolibriOS), so my answer might be not so technical. But as far as I understood, we use PC Speaker port 0x61 via PIT, and count 250ms to calculate the CPU frequency: http://wiki.osdev.org/PC_Speaker
Thanks a lot - I have tested it on your website now, and it displays a value greater than 0. Although that value is pretty small (8 MHz), it's good enough for KolibriOS to display the CPU usage correctly.
KolibriOS uses RDTSC to calculate CPU frequency. In your emulator, the CPU frequency is reported as 0 (0000 MHz - see attached screenshot). On real machines, the actual CPU frequency is reported. In other emulators (VMware, Oracle VirtualBox, QEMU, BOCHS) the frequency reported might be wrong (since the emulator is not running at the same speed as the host machine), but it's still not 0.
It's very much preferred not to report 0 since it affects some KolibriOS programs (Process Manager reports wrong CPU usage, Ghost Monitor thinks that CPU usage is always 100%, CPUID reports CPU speed as 0 MHz etc.)