Somehow both Anand and I ended up with international versions of Samsung’s Galaxy S 4, equipped with the first generation Exynos 5 Octa (5410) SoC. Anand bought an international model GT-I9500 while I held out for the much cooler SK Telecom Korean model SHV-E300S, including Samsung’s own SS222 LTE modem capable of working on band 17 (AT&T LTE) and Band 2,5 WCDMA in the US. Both of these came from Negri Electronics, a mobile device importer in the US.

For those of you who aren’t familiar with the Exynos 5 Octa in these devices, the SoC integrates four ARM Cortex A15 cores (1.6GHz) and four ARM Cortex A7 cores (1.2GHz) in a big.LITTLE configuration. GPU duties are handled by a PowerVR SGX 544MP3, capable of running at up to 533MHz.

We both had plans to do a deeper dive into the power and performance characteristics of one of the first major smartphone platforms to use ARM’s Cortex A15. As always, the insane pace of mobile got in the way and we both got pulled into other things.

More recently, a post over at Beyond3D from @AndreiF gave us reason to dust off our international SGS4s. Through some good old fashioned benchmarking, the poster alleged that Samsung was only exposing its 533MHz GPU clock to certain benchmarks - all other apps/games were limited to 480MHz. For the past few weeks we’ve been asked by many to look into this, what follows are our findings.

Characterizing GPU Behavior

Samsung awesomely exposes the current GPU clock without requiring root access. Simply run the following command over adb and it’ll return the current GPU frequency in MHz: 

adb shell cat /sys/module/pvrsrvkm/parameters/sgx_gpu_clk

Let’s hope this doesn’t get plugged, because it’s actually an extremely useful level of transparency that I wish more mobile platform vendors would offer. Running that command in a loop we can get real time updates on the GPU frequency while applications run different workloads.

Running any games, even the most demanding titles, returned a GPU frequency of 480MHz - just like @AndreiF alleged. Samsung never publicly claimed max GPU frequencies for the Exynos 5 Octa (our information came from internal sources), so no harm no foul thus far.

Running Epic Citadel - 480 MHz

Firing up GLBenchmark 2.5.1 however triggers a GPU clock not available elsewhere: 532MHz. The same is true for AnTuTu and Quadrant.

Running AnTuTu – 532 MHz SGX Clock

Interestingly enough, GFXBench 2.7.0 (formerly GLBenchmark 2.7.0) is unaffected. We confirmed with Kishonti, the makers of the benchmark, that the low level tests are identical between the two benchmarks. The results of the triangle throughput test offer additional confirmation for the frequency difference:

GT-I9500 Triangle Throughput Performance
Total System Power GPU Freq Run 1 Run 2 Run 3 Run 4 Run 5 Average
GFXBench 2.7.0 (GLBenchmark 2.7.0) 480MHz 37.9M Tris/s 37.9M Tris/s 37.7M Tris/s 37.7M Tris/s 38.3M Tris/s 37.9M Tris/s
GLBenchmark 2.5.1 532MHz 43.1M Tris/s 43.2M Tris/s 42.8M Tris/s 43.4M Tris/s 43.4M Tris/s 43.2M Tris/s
% Increase 10.8%           13.9%

We should see roughly an 11% increase in performance in GLBenchmark 2.5.1 over GFXBench 2.7.0, and we end up seeing a bit more than that. The reason for the difference? GLBenchmark 2.5.1 appears to be singled out as a benchmark that is allowed to run the GPU at the higher frequency/voltage setting.

The CPU is also Affected

The original post on B3D focused on GPU performance, but I was curious to see if CPU performance responded similarly to these benchmarks.

Using System Monitor I kept an eye on CPU frequency while running the same tests. Firing up GLBenchmark 2.5.1 causes a switch to the ARM Cortex A15 cluster, with a default frequency of 1.2GHz. The CPU clocks never drop below that, even when just sitting idle at the menu screen of the benchmark.

Left: GLBenchmark 2.5.1 (1.2 GHz), Right: GFXBench 2.7 (250 MHz - 500 MHz)

Run GFXBench 2.7 however and the SoC switches over to the Cortex A7s running at 500MHz (250MHz virtual frequency). It would appear that only GLB2.5.1 is allowed to run in this higher performance mode.

A quick check across AnTuTu, Linpack, Benchmark Pi, and Quadrant reveals the same behavior. The CPU governor is fixed at a certain point when either of those benchmarks is launched. 

Linpack for Android: Exynos 5 Octa all cores 1.6 GHz (left), Snapdragon 600 all cores 1.9 GHz (right)

Interestingly enough, the same behavior (on the CPU side) can be found on Qualcomm versions of the Galaxy S 4 as well. In these select benchmarks, the CPU is set to the maximum CPU frequency available at app launch and stays there for the duration, all cores are plugged in as well, regardless of load, as soon as the application starts.

Note that the CPU behavior is different from what we saw on the GPU side however. These CPU frequencies are available for all apps to use, they are simply forced to maximum (and in the case of Snapdragon, all cores are plugged in) in the case of these benchmarks. The 532MHz max GPU frequency on the other hand is only available to these specific benchmarks.

Digging Deeper

At this point the benchmarks allowed to run at higher GPU frequencies would seem arbitrary. AnTuTu, GLBenchmark 2.5.1 and Quadrant get fixed CPU frequencies and a 532MHz max GPU clock, while GFXBench 2.7 and Epic Citadel don’t. Poking around I came across the application changing the DVFS behavior to allow these frequency changes – TwDVFSApp.apk. Opening the file in a hex editor and looking at strings inside (or just running strings on the .odex file) pointed at what appeared to be hard coded profiles/exceptions for certain applications. The string "BenchmarkBooster" is a particularly telling one:

You can see specific Android java naming conventions immediately in the highlighted section. Quadrant standard, advanced, and professional, linpack (free, not paid), Benchmark Pi, and AnTuTu are all called out specifically. Nothing for GLBenchmark 2.5.1 though, despite its similar behavior. 

We can also see the files that get touched by TwDVFSApp while it is running: 


When the TwDVFSApp application grants special DVFS status to an application, the boost_mode file goes from value 0 to 1, making it easy to check if an affected application is running. For example, launching and closing Benchmark Pi:

shell@android:/sys/class/thermal/thermal_zone0 $ cat boost_mode                
shell@android:/sys/class/thermal/thermal_zone0 $ cat boost_mode                

There are strings for Fusion3 (the Snapdragon 600 + MDM9x15 combo) and Adonis (the codename for Exynos 5 Octa): 


What's even more interesting is the fact that it seems as though TwDVFSApp seems to have an architecture for other benchmark applications not specifically in the whitelist to request for BenchmarkBoost mode as an intent, since the application is also a broadcast receiver. 


So we not only can see the behavior and empirically test to see what applications are affected, but also have what appears to be the whitelist and how the TwDVFSApp application grants special DVFS to certain applications.

Why this Matters & What’s Next

None of this ultimately impacts us. We don’t use AnTuTu, BenchmarkPi or Quadrant, and moved off of GLBenchmark 2.5.1 as soon as 2.7 was available (we dropped Linpack a while ago). The rest of our suite isn’t impacted by the aggressive CPU governor and GPU frequency optimizations on the Exynos 5 Octa based SGS4s. What this does mean however is that you should be careful about comparing Exynos 5 Octa based Galaxy S 4s using any of the affected benchmarks to other devices and drawing conclusions based on that. This seems to be purely an optimization to produce repeatable (and high) results in CPU tests, and deliver the highest possible GPU performance benchmarks. 

We’ve said for years now that the mobile revolution has/will mirror the PC industry, and thus it’s no surprise to see optimizations like this employed. Just because we’ve seen things like this happen in the past however doesn’t mean they should happen now.

It's interesting that this is sort of the reverse of what we saw GPU vendors do in FurMark. For those of you who aren't familiar, FurMark is a stress testing tool that tries to get your platform to draw as much power as possible. In order to avoid creating a situation where thermals were higher than they'd be while playing a normal game (and to avoid damaging graphics cards without thermal protection), we saw GPU vendors limit the clock frequency of their GPUs when they detected these power-virus style of apps. In a mobile device I'd expect even greater sensitivity to something like this. I suspect we'll eventually get to that point. I'd also add that just like we've seen this sort of thing many times in the PC space, the same is likely true for mobile. The difficulty is in uncovering when something strange is going on.

What Samsung needs to do going forward is either open up these settings for all users/applications (e.g. offer a configurable setting that fixes the CPU governor in a high performance mode, and unlocks the 532MHz GPU frequency) or remove the optimization altogether. The risk of doing nothing is that we end up in an arms race between all of the SoC and device makers where non-insignificant amounts of time and engineering effort is spent on gaming the benchmarks rather than improving user experience. Optimizing for user experience is all that’s necessary, good benchmarks benefit indirectly - those that don’t will eventually become irrelevant.



View All Comments

  • jwcalla - Tuesday, July 30, 2013 - link

    Another reason not to take benchmarks too seriously. Reply
  • UpSpin - Tuesday, July 30, 2013 - link

    As you said in your article, it was predictable that such a thing will happen. NVidia and ATI used tricks with their drivers, and Intel does it similar (Antutu and Atom) or simply by crippling the competition:
    Not related to ARM and mobile, but AMD vs. Intel and specifically the ICC:
    so maybe you better also revise your server benchmarks to take care of this spoofing, because I doubt you've considered it yet.
  • flashbacck - Tuesday, July 30, 2013 - link

    This is really fantastic. Reply
  • takeship - Tuesday, July 30, 2013 - link

    As I recall, they stopped marking out code path optimizations as cheating, since everyone does that for every game, but effects & downsampling to improve fps was (and is) still cheating. I.e. no derez to 16bit floats in the background when the benchmark is asking for 32bit floats. This though, is something different. As though Nvidia (or AMD) would lift their PowerTune/Powermizer/Boost speeds explicitly for benchmarking purposes, then enforce the normal limits during gaming.

    Imagine if Intel & AMD started shipping procs with only the boost frequency listed. Sheesh.

    Samsung should be called on this. Every performance claim they make is now b*ll***t until proven otherwise.
  • gnx - Tuesday, July 30, 2013 - link

    This confirms suspicions about vendors "optimizing" for bench marks, and I doubt Samsung is the only culprit.

    What interests me more is the fact that this might be done cause of heat problems. The raw power of modern flagship smartphones seem to outstrip their cooling faculties, so despite the need to advertise and brag about high frequency processing power, the smartphones are too dangerous to allow any app to run their processors at full power, hence this "cheating" on benchmark apps.

    For all the amazing development in the mobile cpu/GPU sphere the last three years, there is still a long way to go, it seems.
  • Den - Tuesday, July 30, 2013 - link

    Can you bypass it by renaming the benchmark to quack.exe? (That was one of the first I remember on the PC side where you got better numbers out of quake.exe than you did if you renamed it to quack.exe before benching,) Reply
  • mike55 - Tuesday, July 30, 2013 - link

    I've been looking for a CPU usage overlay like that. Where can I get this System Monitor? Reply
  • BugblatterIII - Tuesday, July 30, 2013 - link

    I don't care whether it's been done before or whether everyone does it. This is fraud. It's providing misleading information upon which a consumer may base their decision to buy. That's fraud, and it's illegal in the UK at least.

    And I'm not a Samsung hater; I'd say the same for any company doing this.
  • BC2009 - Tuesday, July 30, 2013 - link

    So, what I want from Anandtech is the ACTUAL benchmarks after they disable the benchmark booster so we can see how the GS4 really stacks up agains the HTC One and iPhone 5. Reply
  • WaltFrench - Tuesday, July 30, 2013 - link

    Go back and re-read. Now about power, is t it roughly true that increasing voltage and speed by 10% should increase GPU power by about 20%—maybe more? Assuming that your games wouldn't shut down for thermal protection during play, the full-bore speed might mean an hour's less play. Reply

Log in

Don't have an account? Sign up now