25 entries in 0.702s
a111: Logged on 2017-03-18 11:03 Framedragger:
http://btcbase.org/log/2017-03-10#1624858 << re
rdtsc etc, i'm curious, does `grep -E '^model name|^cpu MHz' /proc/cpuinfo` consistently report to you mhz which are (+/-1 a mhz or so) equal to model frequency? (i know you can turn off linux powersaving etc features)
Framedragger: (also due to modern out-of-order execution in cpu pipelines, may need to force all commands before the
rdtsc call to be 'flushed', i.e. to have completed before the counter instruction is called; just noting for self)
Framedragger:
http://btcbase.org/log/2017-03-10#1624858 << re
rdtsc etc, i'm curious, does `grep -E '^model name|^cpu MHz' /proc/cpuinfo` consistently report to you mhz which are (+/-1 a mhz or so) equal to model frequency? (i know you can turn off linux powersaving etc features)
☝︎☟︎ Framedragger: asciilifeform: something about needing to discard 'invalid values' with
rdtsc (even when set up correctly - apparently best to 'pin' particular cpu, etc etc..) oh god.
Framedragger: i actually did check what was available before deciding on clock measurement yknow. but yah, need to try
rdtsc a111: Logged on 2016-09-14 12:01 Framedragger: "
rdtsc is not guaranteed to be available on every CPU, or to run at a constant rate, *or be consistent between different cores.*" (emphasis mine). `get_cycles()` is recommended, but from cursory look it seems that on some architectures it uses
rdtsc internally? madness.
a111: Logged on 2016-09-14 12:01 Framedragger: "
rdtsc is not guaranteed to be available on every CPU, or to run at a constant rate, *or be consistent between different cores.*" (emphasis mine). `get_cycles()` is recommended, but from cursory look it seems that on some architectures it uses
rdtsc internally? madness.
Framedragger: "
rdtsc is not guaranteed to be available on every CPU, or to run at a constant rate, *or be consistent between different cores.*" (emphasis mine). `get_cycles()` is recommended, but from cursory look it seems that on some architectures it uses
rdtsc internally? madness.
☟︎☟︎ Framedragger: (linux appears to require `
rdtsc` to be able to return something akin to tick count. asciilifeform maybe knows if this is a doomed affair.)