8 ms·
It is a shame these kind of knobs are rarely exposed on a laptop. Sometimes I throttle my laptop cpu down to like 800MHz-1.2GHz to save power/prevent the fan fr
by bee_rider 4y ago
It is a shame these kind of knobs are rarely exposed on a laptop. Sometimes I throttle my laptop cpu down to like 800MHz-1.2GHz to save power/prevent the fan from going. But this makes Vim less responsive for certain events. What I’d actually like is normal behavior but with the turbo clock limited to like… I dunno, a second.
- MikusR 4y agohttps://www.techpowerup.com/download/techpowerup-throttlestop/ https://www.techpowerup.com/download/techpowerup-throttlesto...
- jeffbee 4y agoIn Linux you want powercap tools. You can tune all three parameters in terms of power and time constant, so you can do exactly what you suggest. You can change it on the fly without rebooting so you could have a ridiculous setup like mine where I have the power limits wired up to two unused buttons on my mouse.
- bee_rider 4y agoCunningham’d. Awesome, I’ll look into it, thanks.
- bee_rider 4y agoSeems to work pretty well. I was initially confused — it seems the default on my system had the “long term” limit set to some very high value, which made my changes to the short term moot. Seems like an odd default but I’ll blame ASUS for that I guess. Still slightly confused as to what exactly the “time window” means physically. With mine set to 1000us I still seem to get multiple seconds at full power. But it bumps down before the fan spins up so that seems good enough! Looking forward to the inevitable realization tomorrow that this is going to make my computer unusable in zoom calls.
- tambourine_man 4y agoIf Vim isn’t responsive in a machine with hundreds of MHz something is very wrong with your setup. Vim was fast on machines with dozens of MHz. Either a bad terminal emulator or some plugin making it slow, I’d guess.
- pclmulqdq 4y agoIt's probably a plugin. A lot of them are very slow.
- 3np 4y agoAs far as I understand, neovim has multithreading where vim doesn't here, making heavy and bad plugins have less impact.
- pmontra 4y agoNot vim but vi, it was fast enough for me on machines with less than a dozen MHz, probably high single digit. However we have many more layers now. I had a 80x24 serial tty exchanging ASCII characters with the computer back then.
- gonzo 4y agoYes, but at what baud?
- pmontra 4y agoProbably 4 digits. I was young and not a very fast typer yet. Zenith green phosphor terminals with a repeat key. This one or very similar https://commons.wikimedia.org/wiki/File:Zenith_Z-19_Terminal.jpg https://commons.wikimedia.org/wiki/File:Zenith_Z-19_Terminal... According to https://vt100.net/heath/z19-om.pdf https://vt100.net/heath/z19-om.pdf it can do 110 to 9600 baud. It was connected to some Z8000 based Onyx server. It was generally good but incredibly slow when more than four or five of us were compiling code for the tests at university class. Pascal, Berkeley p system or something with a similar name.
- 4y ago
- lhl 4y agoIf you're running on Linux, almost all of this is completely configurable using ryzenadj for AMD laptops or powercap and thermald for Intel chips. Here's a document on how you might go about adjusting this w/ powercap: https://github.com/junaruga/framework-laptop-config/wiki/Improving-thermal-management-with-Intel-Running-Average-Power-Limit-(RAPL) https://github.com/junaruga/framework-laptop-config/wiki/Imp... For anyone looking for a good summary of the knobs available for AMD: https://github.com/FlyGoat/RyzenAdj/wiki/Renoir-Tuning-Guide https://github.com/FlyGoat/RyzenAdj/wiki/Renoir-Tuning-Guide Or for Intel: https://github.com/lhl/linuxlaptops/wiki/2022-Framework-Laptop-DIY-Edition-12th-Gen-Intel-Batch-1#cpu-measurements https://github.com/lhl/linuxlaptops/wiki/2022-Framework-Lapt...
- bayindirh 4y agoOr you can always fine tune the on-demand governor to gracefully speed up the processor as the load increases and keep it there for a second or so and bring it down.
- lhl 4y agoModern Linux kernels load the `intel_pstate` frequency driver by default these days which has it's own governors that don't quite act the same way as generic ones, but you can control scaling for them w/ the EPB/EPP hints. * https://www.kernel.org/doc/html/v4.12/admin-guide/pm/intel_pstate.html https://www.kernel.org/doc/html/v4.12/admin-guide/pm/intel_p... * https://manpages.ubuntu.com/manpages/kinetic/en/man8/x86_energy_perf_policy.8.html https://manpages.ubuntu.com/manpages/kinetic/en/man8/x86_ene... * https://wiki.archlinux.org/title/CPU_frequency_scaling https://wiki.archlinux.org/title/CPU_frequency_scaling