Personal computing discussed

Moderators: renee, Flying Fox, morphine

 
chuckula
Minister of Gerbil Affairs
Topic Author
Posts: 2109
Joined: Wed Jan 23, 2008 9:18 pm
Location: Probably where I don't belong.

Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:16 am

Read all about it here.

Basically, due to forcing HPET to be activated as the system timer on all platforms (even when the platform did not default to using HPET) Anand managed to give RyZen a noticeable relative performance boost compared to the Intel systems in its review. That wasn't because RyZen was inherently faster, but because forcing HPET on slowed down the Intel systems artificially.

There were performance penalties to this misconfiguration that negatively affected Intel while having little to no effect on AMD (less than 1% either way). Some of the performance penalties were relatively small but others were massive:

Image

So, for all the people who were claiming that Anand was the only source of the "truth" about RyZen gaming performance online and that everybody else was some kind of pro-Intel idiot (TR included) you might want to backtrack. Once again, TR shows that it is the gold-standard for proper hardware reviews. I will give props to Anandtech for being honest and posting a detailed account of what happened to its review though.
4770K @ 4.7 GHz; 32GB DDR3-2133; Officially RX-560... that's right AMD you shills!; 512GB 840 Pro (2x); Fractal Define XL-R2; NZXT Kraken-X60
--Many thanks to the TR Forum for advice in getting it built.
 
derFunkenstein
Gerbil God
Posts: 25427
Joined: Fri Feb 21, 2003 9:13 pm
Location: Comin' to you directly from the Mothership

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:30 am

This is interesting to me because I'd always forced HPET to be enabled on all my systems in the past. I don't currently have an Intel system, but it seems like I was potentially hamstringing performance. Also it's interesting because it fixed Anandtech's review to match all the others, and now we know why.
I do not understand what I do. For what I want to do I do not do, but what I hate I do.
Twittering away the day at @TVsBen
 
sweatshopking
Graphmaster Gerbil
Posts: 1464
Joined: Fri Aug 15, 2008 10:37 am

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:36 am

derFunkenstein wrote:
This is interesting to me because I'd always forced HPET to be enabled on all my systems in the past.

Why?
 
derFunkenstein
Gerbil God
Posts: 25427
Joined: Fri Feb 21, 2003 9:13 pm
Location: Comin' to you directly from the Mothership

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:38 am

The name confused me. High precision. Well I want highly precise events. And that's a wrap, I never thought about it again.

I am not ashamed to say I don't know everything about every BIOS tweak on the planet.
I do not understand what I do. For what I want to do I do not do, but what I hate I do.
Twittering away the day at @TVsBen
 
chuckula
Minister of Gerbil Affairs
Topic Author
Posts: 2109
Joined: Wed Jan 23, 2008 9:18 pm
Location: Probably where I don't belong.

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:40 am

derFunkenstein wrote:
The name confused me. High precision. Well I want highly precise events. And that's a wrap, I never thought about it again.

I am not ashamed to say I don't know everything about every BIOS tweak on the planet.


It's OK, timer source configurations are a giant PITA and what was once the new-shiny technology (HPET) can become obsolete and actually harmful to performance over a few iterations of hardware.

Anand's problem was in forcing HPET on even when the default platform went out of its way to avoid doing so. I'm not expecting Anand to performance-tweak in anybody's favor, but it's a two-way street in also avoiding negative performance-tweaks.
4770K @ 4.7 GHz; 32GB DDR3-2133; Officially RX-560... that's right AMD you shills!; 512GB 840 Pro (2x); Fractal Define XL-R2; NZXT Kraken-X60
--Many thanks to the TR Forum for advice in getting it built.
 
derFunkenstein
Gerbil God
Posts: 25427
Joined: Fri Feb 21, 2003 9:13 pm
Location: Comin' to you directly from the Mothership

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:46 am

It's also their job to know which BIOS settings do what. So I understand being less forgiving of them.
I do not understand what I do. For what I want to do I do not do, but what I hate I do.
Twittering away the day at @TVsBen
 
DragonDaddyBear
Gerbil Elite
Posts: 985
Joined: Fri Jan 30, 2009 8:01 am

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:55 am

What is really surprising is the difference in impact between AMD and Intel.

What benefit does HPET have in everyday life? Is it important for servers? Sorry, haven't been able to read the entire write up yet.
 
LostCat
Minister of Gerbil Affairs
Posts: 2107
Joined: Thu Aug 26, 2004 6:18 am
Location: Earth

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 12:07 pm

derFunkenstein wrote:
This is interesting to me because I'd always forced HPET to be enabled on all my systems in the past. I don't currently have an Intel system, but it seems like I was potentially hamstringing performance. Also it's interesting because it fixed Anandtech's review to match all the others, and now we know why.

Did something better come out while I wasn't paying attention? I never turn it off, but I'm usually fond of the default options.
Meow.
 
Aranarth
Graphmaster Gerbil
Posts: 1435
Joined: Tue Jan 17, 2006 6:56 am
Location: Big Rapids, Mich. (Est Time Zone)
Contact:

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 12:42 pm

Even the tiniest thing can come back and bite you.

I find it interesting that timers are not exactly the same across all mainboards and processor types.

I actually thought the HEPT was a STANDARD it only ran at one speed (14.33mhz) and this had been the standard since Pentium 3/4 days.
I guess it is NOT a standard in that way, it's just another available clock timer.
Main machine: Core I7 -2600K @ 4.0Ghz / 16 gig ram / Radeon RX 580 8gb / 500gb toshiba ssd / 5tb hd
Old machine: Core 2 quad Q6600 @ 3ghz / 8 gig ram / Radeon 7870 / 240 gb PNY ssd / 1tb HD
 
Shobai
Gerbil First Class
Posts: 165
Joined: Sat Sep 03, 2005 1:18 am

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 1:07 pm

The more interesting graphs, academically, are the ones you neglected to show: the AMD version of that graph, or the graph from the following pages where the "unforced" results for both platforms are shown normalised to the AMD results.

They show that both systems were affected in the same contexts, and only the magnitude of the effect was different; firstly, it makes me wonder what exactly those programs are doing that causes such a discrepancy, but it also makes me wonder how much different the results would be if the HPET for both systems was running at the same frequency - given that the Intel platform's was running at, what, 5 / 3rds the AMD's.
 
DPete27
Grand Gerbil Poohbah
Posts: 3776
Joined: Wed Jan 26, 2011 12:50 pm
Location: Wisconsin, USA

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 1:27 pm

Interesting read! I learned something new today.
Main: i5-3570K, ASRock Z77 Pro4-M, MSI RX480 8G, 500GB Crucial BX100, 2 TB Samsung EcoGreen F4, 16GB 1600MHz G.Skill @1.25V, EVGA 550-G2, Silverstone PS07B
HTPC: A8-5600K, MSI FM2-A75IA-E53, 4TB Seagate SSHD, 8GB 1866MHz G.Skill, Crosley D-25 Case Mod
 
Glorious
Gerbilus Supremus
Posts: 12343
Joined: Tue Aug 27, 2002 6:35 pm

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 1:40 pm

We actually had a thread about this sort of issue years ago:

viewtopic.php?f=4&t=89149

There difference there was that people would mess with their clock-rate behind the OS's back, so the OS timer routines using RDTSC would calculate wrong.

Here, the problem is that somehow Anandtech was testing with the OS using HPET, which breaks apples-to-apples (implementations can vary).

DerFunkenstein wrote:
This is interesting to me because I'd always forced HPET to be enabled on all my systems in the past.


The BIOS option by itself can't do it, Windows has to decide to exclusively use it. As in, the BIOS can make it available or not, but it has absolutely no way of forcing Microsoft to NOT use RDTSC.

We talked about that in the thread above, but there were some BCD options that Ryu Connor indicated were not a good idea.

I don't know, but I'm guessing that Anandtech found out why. :P

More generally, properly handled RDTSC-based methods are always superior--solely CPU stuff, not ACPI etc... which is also interrupt-based.

As Ryu Connor said in the thread I cited, there's no way Microsoft defaults to HPET only.

This is some odd OS configuration that Anandtech did deliberately without realizing that they shouldn't have.
 
DPete27
Grand Gerbil Poohbah
Posts: 3776
Joined: Wed Jan 26, 2011 12:50 pm
Location: Wisconsin, USA

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 1:42 pm

Is there a way to check if HPET is being Forced in the OS?
What is the command to disable OS-Forced HPET?

I'm sure I could google these answers up, but thought it might be helpful to others to have the instructions in this thread. Either someone can chime in, or I will update later this evening when I do my research.
Main: i5-3570K, ASRock Z77 Pro4-M, MSI RX480 8G, 500GB Crucial BX100, 2 TB Samsung EcoGreen F4, 16GB 1600MHz G.Skill @1.25V, EVGA 550-G2, Silverstone PS07B
HTPC: A8-5600K, MSI FM2-A75IA-E53, 4TB Seagate SSHD, 8GB 1866MHz G.Skill, Crosley D-25 Case Mod
 
Glorious
Gerbilus Supremus
Posts: 12343
Joined: Tue Aug 27, 2002 6:35 pm

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 2:10 pm

Oh I read the article.

:evil:

Not at Anandtech though, but at this:

Anandtech wrote:
Ryzen Master is not the only piece of software that requires HPET to be forced in order to do what it needs to do. For any of our readers that have used overclocking software and tools before, or even monitoring tools such as fan speed adjusters – if those tools have requested a restart before being used properly, there is a good chance that in that reboot the command has been run to enable HPET.


Every time people go all "EVIL M$!!!1" with how Bad-Daddy Bill Gates "DELETED MY SOFTWARE HOW DARE THEY UTTERLY UNCONSCIONABLE! ARGHHH", yeah--THAT'S WHY.

Your "software" is doing something stupid and wrong mucking with the internals of the OS in a way that it absolutely shouldn't. PRIME EXAMPLE: This garbage, which shouldn't be FORCING your OS timer because, that one time years ago, someone noticed that if you manipulate, at RUNTIME, the base clock and multiplier, you can (SURPRISE SURPRISE) make the computer clock slower than the wall clock and then get "better" OC benchmarks.

I can't even

---

Look, I'm basically a Linux guy now, I have a windows gaming computer that is basically a glorified Xbox, a HTPC in the basement I never turn on these days, and a cheapo 90 dollar windows tablet for reading/watching. That's it.

Microsoft is doing god's work, it's all these clowns screwing with things they don't understand for ill-conceived purposes that you should be mad at.
 
biffzinker
Gerbil Jedi
Posts: 1998
Joined: Tue Mar 21, 2006 3:53 pm
Location: AK, USA

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 2:14 pm

DPete27 wrote:
Is there a way to check if HPET is being Forced in the OS?
What is the command to disable OS-Forced HPET?

Windows 10 defaults to NOT exclusively using HPET.

You can force it to use HPET by adding through Command Prompt/PowerShell (Admin privileges required?) - bcdedit /set useplatformclock true (then reboot) enable HPET
revert to default - bcdedit /deletevalue useplatformclock (then reboot) disables only using HPET
It would take you 2,363 continuous hours or 98 days,11 hours, and 35 minutes of gameplay to complete your Steam library.
In this time you could travel to Venus one time.
 
derFunkenstein
Gerbil God
Posts: 25427
Joined: Fri Feb 21, 2003 9:13 pm
Location: Comin' to you directly from the Mothership

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 2:19 pm

Glorious wrote:
DerFunkenstein wrote:
This is interesting to me because I'd always forced HPET to be enabled on all my systems in the past.


The BIOS option by itself can't do it, Windows has to decide to exclusively use it. As in, the BIOS can make it available or not, but it has absolutely no way of forcing Microsoft to NOT use RDTSC.

We talked about that in the thread above, but there were some BCD options that Ryu Connor indicated were not a good idea.

I don't know, but I'm guessing that Anandtech found out why. :P

More generally, properly handled RDTSC-based methods are always superior--solely CPU stuff, not ACPI etc... which is also interrupt-based.

As Ryu Connor said in the thread I cited, there's no way Microsoft defaults to HPET only.

This is some odd OS configuration that Anandtech did deliberately without realizing that they shouldn't have.

I only ever heard about it because going a decade back will show you lots of Google results for enabling HPET for Hackintosh systems. So I just (out of habit) turned in on with every new motherboard I got. In fact, I found one from the days of the Sierra public beta still recommending it. That's pretty recent (link not provided).

All I ever did was set the BIOS option, so maybe I wasn't losing out
I do not understand what I do. For what I want to do I do not do, but what I hate I do.
Twittering away the day at @TVsBen
 
Redocbew
Minister of Gerbil Affairs
Posts: 2495
Joined: Sat Mar 15, 2014 11:44 am

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 2:30 pm

Yeah it sounds like a corner case for sure. Neither AMD or Intel sounded very concerned about it in the statements that Anandtech posted. It seems like this is really just more for the sake of explanation on why their initial numbers were weird than a story about the HPET timer its self.
Do not meddle in the affairs of archers, for they are subtle and you won't hear them coming.
 
chuckula
Minister of Gerbil Affairs
Topic Author
Posts: 2109
Joined: Wed Jan 23, 2008 9:18 pm
Location: Probably where I don't belong.

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 2:32 pm

Under Linux I performed this command to check my current clock source [your exact path may vary a little starting at the "clocksource0" directory]:
cat /sys/devices/system/clocksource/clocksource0/current_clocksource

the result was: tsc

Interestingly enough, in my dmesg history there are several messages indicating that HPET is enabled and is acting as a clock source, so something must be changing the clock source at a later point during operation of the system.

Edit: and here we go. See the timestamps on the left side:

[    0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484882848 ns
[    0.000000] hpet clockevent registered
[    0.030907] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[    0.212288] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[    0.212288] hpet0: 8 comparators, 64-bit 14.318180 MHz counter
[    0.220005] clocksource: Switched to clocksource hpet


and later

[    1.430085] tsc: Refined TSC clocksource calibration: 2998.261 MHz
[    1.430098] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2b37da91e36, max_idle_ns: 440795264323 ns
[    2.440123] clocksource: Switched to clocksource tsc
4770K @ 4.7 GHz; 32GB DDR3-2133; Officially RX-560... that's right AMD you shills!; 512GB 840 Pro (2x); Fractal Define XL-R2; NZXT Kraken-X60
--Many thanks to the TR Forum for advice in getting it built.
 
ptsant
Gerbil XP
Posts: 397
Joined: Mon Oct 05, 2009 12:45 pm

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 2:36 pm

Glorious wrote:
Oh I read the article.

Anandtech wrote:
Ryzen Master is not the only piece of software that requires HPET to be forced in order to do what it needs to do. For any of our readers that have used overclocking software and tools before, or even monitoring tools such as fan speed adjusters – if those tools have requested a restart before being used properly, there is a good chance that in that reboot the command has been run to enable HPET.


Your "software" is doing something stupid and wrong mucking with the internals of the OS in a way that it absolutely shouldn't. PRIME EXAMPLE: This garbage, which shouldn't be FORCING your OS timer because, that one time years ago, someone noticed that if you manipulate, at RUNTIME, the base clock and multiplier, you can (SURPRISE SURPRISE) make the computer clock slower than the wall clock and then get "better" OC benchmarks.


I believe the current version of Ryzen Master does not require HPET events. See this AMD blog post:

https://community.amd.com/community/gam ... y-update-2
Image
 
Glorious
Gerbilus Supremus
Posts: 12343
Joined: Tue Aug 27, 2002 6:35 pm

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 2:43 pm

derfunkenstein wrote:
I only ever heard about it because going a decade back will show you lots of Google results for enabling HPET for Hackintosh systems. So I just (out of habit) turned in on with every new motherboard I got. In fact, I found one from the days of the Sierra public beta still recommending it. That's pretty recent (link not provided).


I know like nothing about MacOS, but given Apple's complete control of hardware, the lack of such a feature which *SHOULD* have be there might cause Hackintosh attempts to completely fail. You know, even if they don't use it (as opposed to using it in some ancient deprecated timer API), if it isn't there some check just might cause the whole thing to crash or die.

Basically, enabling it in the BIOS should never be a problem. Windows knows better. Now, with what I learned? Well, if some software configures your system to force it and you don't realize that, jeez, turning it off in the BIOS might be a like a defensive measure...

I've always enabled it too, because it shouldn't ever hurt anything. If you are even using some sort of hypervisor, I'd have to assume they'd know better too...?

Redocbew wrote:
Yeah it sounds like a corner case for sure. Neither AMD or Intel sounded very concerned about it in the statements that Anandtech posted.


Because nothing is "wrong".

If people (like Anandtech) are installing software that, unbeknownst to them, deliberately configures Windows to *ONLY* use the HPET, yes, that has performance (and power efficiency) implications.

That's not AMD or Intel's problem. Their chip isn't malfunctioning, or running slower.

And, phew, Microsoft. Well, if they try to do anything about this, THEY WILL BE SCREAMED AT. By the very people Microsoft is trying to help!

Because, obviously, any random Overclocking/Monitoring software isn't the problem, nooooooo, it's Microsoft which is running some evil conspiracy when it "breaks" or "removes" those programs.

The real problem is that fan monitoring software etc... shouldn't be forcing this. Ryu Connor wisely said, when this whole thing started in 2013, that mucking around with BCD to do this was a VERY BAD, NO GOOD, UGLY idea.
 
Redocbew
Minister of Gerbil Affairs
Posts: 2495
Joined: Sat Mar 15, 2014 11:44 am

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 2:56 pm

Well yeah, there's a million and one things that can make an otherwise decent machine run poorly, and it's usually best to leave things deep in the system like this well enough alone. I'm sure some people will take away from this story that "HPET = bad", but that's not the whole picture at all.
Do not meddle in the affairs of archers, for they are subtle and you won't hear them coming.
 
LostCat
Minister of Gerbil Affairs
Posts: 2107
Joined: Thu Aug 26, 2004 6:18 am
Location: Earth

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 3:03 pm

Ahh heh. That's what this is about. I used to force it in Windows a long time ago because I didn't know any better.
Meow.
 
Mr Bill
Gerbil Jedi
Posts: 1819
Joined: Mon Jan 21, 2002 7:00 pm
Location: Colorado Western Slope
Contact:

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 10:59 pm

What system clock do extreme overclockers now have to use to submit a valid benchmark?
X6 1100T BE | Gigabyte GA-990FXA-UD3 AM3+ | XFX HD 7870 | 16 GB DDR3 | Samsung 830/850 Pro SSD's | Logitech cherry MX-brown G710+ | Logitech G303 Daedalus Apex mouse | SeaSonic SS-660XP 80+ Pt | BenQ 24' 1900x1200 IPS | APC Back-UPS NS-1350 | Win7 Pro
 
jihadjoe
Gerbil Elite
Posts: 835
Joined: Mon Dec 06, 2010 11:34 am

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:15 pm

Ideally any testing shouldn't trust the system clock at all. For really accurate results the variances shown here even with AMD's HPET seem too big to be trusting an internal timer which is being affected by the machine's thermals and clock swings.

This might be the next big shakeup when it comes to PC reviews, the last being frametimes.
 
DrDominodog51
Gerbil Elite
Posts: 716
Joined: Sat Jan 17, 2015 12:23 pm
Location: Silicon Valley

Re: Anand's RyZen+ Review just got revised

Wed Apr 25, 2018 11:37 pm

Mr Bill wrote:
What system clock do extreme overclockers now have to use to submit a valid benchmark?

For the unfamiliar, Hwbot is the primary database/rule making authority for competitive overclocking.

Windows 8 and Windows 10 have an issue with RTC time-drift on some platforms. As a result, most platforms and benchmarks cannot be run on either version of Windows. On the few benchmarks that can be run on Windows 8/10 regardless of platform, HPET must be used. But none of that matters. Windows 8/10 is not the most efficient (fastest) OS for any 2D benchmark and accordingly doesn't get used for any benching. RTC is pretty much used on all the time as a result.

http://hwbot.org/news/9824_breaking_win ... _at_hwbot/
http://hwbot.org/news/12505_application_175_rules/
https://imgur.com/a/Jgq3FOU
A10-7850K; GA-F2A88XN-WIFI, 16 GB of 2400MHz DDR3, 500 GB Team Group L5 SSD
 
Glorious
Gerbilus Supremus
Posts: 12343
Joined: Tue Aug 27, 2002 6:35 pm

Re: Anand's RyZen+ Review just got revised

Thu Apr 26, 2018 8:20 am

DrDominodog51 wrote:
Windows 8 and Windows 10 have an issue with RTC time-drift on some platforms.


No they don't.

This kind of "understanding" is not even wrong:

http://hwbot.org/newsflash/2684_windows ... ed_for_now

That's not a bug. It's not a bug that if I type 7x7 into Windows Calculator as opposed to 7x6 that I get 42 as opposed to 49.

Which is precisely what we are talking about here: changing the inputs to a program will always get you answer that is correct for *THOSE* inputs, not the inputs you wanted.

I mean, this is actually an ABSOLUTELY ANCIENT COMPUTER SCIENCE ANECDOTE:

Passages from the Life of a Philosopher wrote:
On two occasions I have been asked, — "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" In one case a member of the Upper, and in the other a member of the Lower, House put this question. I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.


That's last sentence is pretty much my response to these hwbot people, I can't even

DrDominodog51 wrote:
As a result, most platforms and benchmarks cannot be run on either version of Windows.


Because of make-believe security in which they think that since they've crudely worked around one method of easily cheating, that other related methods don't exist.

That is really silly.

DrDominodog51 wrote:
On the few benchmarks that can be run on Windows 8/10 regardless of platform, HPET must be used. But none of that matters. Windows 8/10 is not the most efficient (fastest) OS for any 2D benchmark and accordingly doesn't get used for any benching. RTC is pretty much used on all the time as a result.


So, what, everyone does this on Windows 7?

What happens in a few years?
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Anand's RyZen+ Review just got revised

Thu Apr 26, 2018 8:35 am

DragonDaddyBear wrote:
What is really surprising is the difference in impact between AMD and Intel.

It might be an interrupt overhead thing, possibly exacerbated by Meltdown mitigation. IIRC HPET generates an interrupt at every "tick".

DragonDaddyBear wrote:
What benefit does HPET have in everyday life? Is it important for servers? Sorry, haven't been able to read the entire write up yet.

When it was introduced, it allowed intervals to be timed more accurately and/or with lower overhead than previous methods. In the "bad old days" (DOS and early Windows systems) all we had was the 55ms timer tick. Then came the 1ms multimedia timer, ACPI timer, and HPET.

x86 CPUs also have something called the Time Stamp Counter (TSC), which is typically the highest resolution and lowest overhead source available (since it ticks at the rate of the base CPU clock and only requires reading a value out of a machine register to access it). Although present since the Pentium days, older implementations suffered from various issues (tick rate varying with power management clock scaling, TSC not being synchronized across cores, etc...), but AFAIK all recent x86 designs provide a TSC that ticks at a constant rate, and is synchronized across all cores in the CPU package.
Nostalgia isn't what it used to be.
 
chuckula
Minister of Gerbil Affairs
Topic Author
Posts: 2109
Joined: Wed Jan 23, 2008 9:18 pm
Location: Probably where I don't belong.

Re: Anand's RyZen+ Review just got revised

Thu Apr 26, 2018 8:37 am

just brew it! wrote:
DragonDaddyBear wrote:
What is really surprising is the difference in impact between AMD and Intel.

It might be an interrupt overhead thing, possibly exacerbated by Meltdown mitigation. IIRC HPET generates an interrupt at every "tick".

DragonDaddyBear wrote:
What benefit does HPET have in everyday life? Is it important for servers? Sorry, haven't been able to read the entire write up yet.

When it was introduced, it allowed intervals to be timed more accurately and/or with lower overhead than previous methods. In the "bad old days" (DOS and early Windows systems) all we had was the 55ms timer tick. Then came the 1ms multimedia timer, ACPI timer, and HPET.

x86 CPUs also have something called the Time Stamp Counter (TSC), which is typically the highest resolution and lowest overhead source available (since it ticks at the rate of the base CPU clock and only requires reading a value out of a machine register to access it). Although present since the Pentium days, older implementations suffered from various issues (tick rate varying with power management clock scaling, TSC not being synchronized across cores, etc...), but AFAIK all recent x86 designs provide a TSC that ticks at a constant rate, and is synchronized across all cores in the CPU package.


My Linux systems are defaulting to TSC even though they list HPET as being an "available" clock source.
4770K @ 4.7 GHz; 32GB DDR3-2133; Officially RX-560... that's right AMD you shills!; 512GB 840 Pro (2x); Fractal Define XL-R2; NZXT Kraken-X60
--Many thanks to the TR Forum for advice in getting it built.
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Anand's RyZen+ Review just got revised

Thu Apr 26, 2018 8:54 am

chuckula wrote:
My Linux systems are defaulting to TSC even though they list HPET as being an "available" clock source.

Same. Most distros on modern hardware seem to list tsc, hpet, and acpi_pm as available sources, and default to tsc.

IIRC the only time I've needed to force it on Linux was several years ago on some older hardware (Socket AM2?), where I had to force the use of acpi_pm. I don't even remember what issue it was I was trying to fix, but I do recall that empirically acpi_pm was the only choice that seemed to address it. Since then, I just let the system choose, and haven't had any issues with it.
Nostalgia isn't what it used to be.
 
DragonDaddyBear
Gerbil Elite
Posts: 985
Joined: Fri Jan 30, 2009 8:01 am

Re: Anand's RyZen+ Review just got revised

Thu Apr 26, 2018 9:05 am

Chuck and JBI, thank you for the explanation. If you don't mind me asking, what kinds of applications would such a counter be needed for? Could you not run into race conditions if incorrectly used this? Sorry for the probably silly question, not a programmer.

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On