Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am specifically concerned with converting videos with ffmpeg. My machine gets too hot and I get too worried. I don't mind if it takes longer as soon as it goes easier on my hardware. I tried nice, but it didn't seem to make any difference. Any suggestions?
On all of my machines passed 4th gen, I throttle down the CPU to encode videos with ffmpeg. I'm not about to let my processor run at 180F (82C) for 30-40 min.
I have an i7 4790 for example, it has air cooling, a normal heat sink, with a normal cooling fan on it. It will run at burst speed, which is 4GHZ while encoding video with ffmpeg. That's too fast/hot for it. I bump it down to 3.2-3.4 GHz. while encoding. Depends on the time of year, but that will keep it at or under 135F (57C).
I need my machines to last for a while. And, that will of course drop your fps output as much as 10-15 fps.
cpulimit seems to work well. The task becomes noticeably slower, but the CPU won't heat up anymore.
It's interesting to note that there is some difference in speed but very little difference in temperature between 40% and 99%. At 100% the temperature spikes a little occasionally, but still not much, so I suppose 99% is some kind of sweet spot.
I am marking this as SOLVED. My only nag is that I have to run 'ffmpeg' on a terminal and 'cpulimit -e ffmpeg -l 99' on another. Is there some clever way of doing the two things with a one simple one liner?
What CPU do you have? A desktop is easier to maintain low temps without sacrificing performance. I had a OC'd 4790K with a Noctua NH-D15. That cooler was enough to keep temps in check.
My last Intel laptop had a 4710MQ. Being an older laptop, it would thermal throttle under almost any load. After fresh thermal paste, and using a program called intel-undervolt, I was able to keep the CPU from throttling, even with consistent load like mprime (prime 95).
ffmpeg .... &
ffm_pid=$! # The $! variable is a special shell variable that stores the PID of the most recently executed background process.
cpulimit -e ffmpeg -l $ffm_pid
Strictly speaking you could insert the '$!' directly into the last cmd instead, but I really like properly named vars ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.