Comments (6)
@deiruch thanks for reporting this issue and apologies for the delayed response. Your idea of the mode being "enabled automatically by my IDE of choice when running certain projects. Or an API would probably be used by libraries like BenchmarkDotNet" makes a ton of sense. There is a team here just spinning up that's focused on developing performance testing tooling for your applications, and this sounds like an awesome feature request for that tool :). I'll make sure to share this with the team.
from windows-dev-performance.
I don't think this is particularly feasible, especially in mobile devices like yours where the CPU is locked, so it's impossible to do any kind of tweaking to the clock rate or other factors (for example, using Intel XTU to set a fixed clock rate won't work on your Surface)
from windows-dev-performance.
Allowing detection of (thermal) throttling would be a useful first step. Quoting Bruce Dawson on Twitter:
Is there a user-mode way to detect CPU thermal throttling in Windows? Ideally I'd like to know the requested CPU frequency, actual CPU frequency, and if the frequency is throttled the reason why. I've seen CPUs throttled due to overheating and due to insufficient power.
from windows-dev-performance.
You might be able to lock your CPU frequency at a value far enough below the maximum that it will avoid throttling. The following commands should keep your CPU at 85%.
powercfg.exe /setacvalueindex scheme_current sub_processor procthrottlemin 85
powercfg.exe /setdcvalueindex scheme_current sub_processor procthrottlemin 85
powercfg.exe /setacvalueindex scheme_current sub_processor procthrottlemax 85
powercfg.exe /setdcvalueindex scheme_current sub_processor procthrottlemax 85
powercfg.exe /setactive scheme_current
shutdown /r /t 0
(Note that both AC and DC power settings are being set with that command)
from windows-dev-performance.
Even on a desktop (Ryzen 5950X), its performance is temperature sensitive. In order to benchmark my app's startup performance, I have to close/kill/suspend anything else that's running, turn the CPU fans to max, and open the window (even in winter). Those background processes that sip teeny tiny bits of CPU can cause gross fluctuations in the timings for startup performance measurements.
from windows-dev-performance.
Related Issues (20)
- PROCESSOR_POWER_INFORMATION.CurrentMhz no longer shows CurrentMhz HOT 7
- Throttling detection needed in Windows HOT 5
- Symbol server PE files are being overwritten with different versions HOT 13
- WinDbg's `dU` command is painfully slow HOT 4
- Merge module validation in Orca fails on well-formed merge module
- NT heap scales horrendously in some cases HOT 2
- Set up your dev environment on Windows for Rust HOT 2
- PrefetchVirtualMemory does not prefetch virtual memory (windows api bug) HOT 1
- Explorer leaks resources over a long time HOT 2
- Configuring RDP with MSA is impossible using the RDP Developer Menu HOT 1
- Argon containers use only weak cores on systems with heterogeneous CPUs HOT 4
- Explorer Zip uncompress very slow HOT 25
- A %temp% directory full of node_module garbage slows down the Windows User Profile service on logon HOT 3
- Need alternate way to access Feedback Hub HOT 4
- Search in Explorer is slow HOT 9
- .NET Framework Cumulative Update Previews install automatically every month on non-insider builds HOT 3
- Alt+tab issue when in full-screen app HOT 2
- Can't Pinpoint What to do with Error PR175 with Visual Studio HOT 2
- "Must define a target architecture" issue from winnt.h when included by `.rc` files HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-dev-performance.