Groups | Search | Server Info | Login | Register
Groups > comp.os.ms-windows.programmer.nt.kernel-mode > #69
| Newsgroups | comp.os.ms-windows.programmer.nt.kernel-mode |
|---|---|
| Date | 2023-10-06 13:55 -0700 |
| Message-ID | <ad64683a-c2f6-4a94-ae63-b2115ccb9466n@googlegroups.com> (permalink) |
| Subject | rdtsc bclk overclock |
| From | daniel S <wfqwqfwqf@gmail.com> |
when i overclock my bclk to 129mhz rdtsc not cycle correctly when reading the freq what cause it ??
turbo mode disabled c states disabled hyperthreading disabled speedshift disabled make sure its reading in first core KeSetAffinityThread();
i have i9 9900ks
base clock reading 4ghz
bclk clock reading 5.160ghz when overclock 129mhz
uint64_t tsc_hz = __readmsr(0xCE);
return ((tsc_hz >> 8) & 0xff) * 100 * 1E6; freq rdtsc reading consistent on 4ghz
uint64_t tsc_hz = __readmsr(0xCE);
return ((tsc_hz >> 8) & 0xff) * 129 * 1E6; freq rdtsc reading overflow on 129mhz
is there way to fix it ? i even try reading the freq directly with cpuid
inline unsigned __int64 get_tsc_freqX() {
static unsigned __int64 freq = 0;
if (freq == 0) {
int raw[4];
__cpuid(raw, 0x16); // get cpu freq
freq = static_cast<unsigned __int64>(raw[0]) * 1000000;
}
return freq;
}
but seems rdtsc still not cycle count correctly on bclk overclock 129mhz
Back to comp.os.ms-windows.programmer.nt.kernel-mode | Previous | Next — Next in thread | Find similar
rdtsc bclk overclock daniel S <wfqwqfwqf@gmail.com> - 2023-10-06 13:55 -0700 Re: rdtsc bclk overclock daniel S <wfqwqfwqf@gmail.com> - 2023-10-06 14:00 -0700
csiph-web