How to I limit CPU usage
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
How to I limit CPU usage
As my other thread was locked without anybody giving me an answer I have to start a new thread
I'm trying to understand how to limit CPU usage in Handbrake.
How do I limit the CPU usage? I dont want to run at 700% - 800% (8 core CPU).
I have a slow network and need to slow down the encoding. PLus I have other things running on my computer that needs the CPU
I'm trying to understand how to limit CPU usage in Handbrake.
How do I limit the CPU usage? I dont want to run at 700% - 800% (8 core CPU).
I have a slow network and need to slow down the encoding. PLus I have other things running on my computer that needs the CPU
Re: How to I limit CPU usage
You may not be able to depending on your choice in settings.
And you need to post the encoding log for the encode where you claim you had it down to a single CPU, as we've stated repeatedly.
HB can't go faster than your network does, so if it's limited on reading/writing it will only encode as fast as it can get and send data. For giving CPU time to other applications you should use the priority/nice options in the scheduler on your platform.
How are you measuring CPU usage in Linux? In some places in linux "100%" means the same thing as "800%" in some places in OS X.
And you need to post the encoding log for the encode where you claim you had it down to a single CPU, as we've stated repeatedly.
HB can't go faster than your network does, so if it's limited on reading/writing it will only encode as fast as it can get and send data. For giving CPU time to other applications you should use the priority/nice options in the scheduler on your platform.
How are you measuring CPU usage in Linux? In some places in linux "100%" means the same thing as "800%" in some places in OS X.
Re: How to I limit CPU usage
There's always renice, but even that only alters the priority.
-
- Veteran User
- Posts: 440
- Joined: Fri Mar 09, 2012 5:26 am
Re: How to I limit CPU usage
have you tried without the colon? i know :threads=1 works fine for the wincli, but i'm just curious... as it isn't needed if you're specifying only one option... although, i'd find it funny if that was the problem so it most likely won't
also, you shouldn't be using bob if you're not wanting to double the framerate, your preference though
also, you shouldn't be using bob if you're not wanting to double the framerate, your preference though
Re: How to I limit CPU usage
Looks like its working fine?
Note, threads=1 only limits the x264 encoder. It doesn't limit HandBrake (decode, filters etc). That means, if the encoder isn't a bottleneck, then you'll still potentially see full CPU usage. There is nothing you can do to change this.
If your case, it seems like you've successfully caused x264 to slow down quite a bit, so your seeing reduced CPU usage.
HandBrake running the CPU at 100% doesn't mean you can't run other applications. Other applications will run fine. Just renice the HandBrake process so it's running at a lower priority and you'll notice next to no slow down in other applications with higher prio.
Note, threads=1 only limits the x264 encoder. It doesn't limit HandBrake (decode, filters etc). That means, if the encoder isn't a bottleneck, then you'll still potentially see full CPU usage. There is nothing you can do to change this.
If your case, it seems like you've successfully caused x264 to slow down quite a bit, so your seeing reduced CPU usage.
HandBrake running the CPU at 100% doesn't mean you can't run other applications. Other applications will run fine. Just renice the HandBrake process so it's running at a lower priority and you'll notice next to no slow down in other applications with higher prio.
Re: How to I limit CPU usage
Yes threads=1 works fine in Linux as I said in my other thread that was locked for some reason
The thing is that it does NOT work in OSX. If I do the same thing there then the CPU usage is between 700% and 800%
The thing is that it does NOT work in OSX. If I do the same thing there then the CPU usage is between 700% and 800%
Re: How to I limit CPU usage
Then why are you posting a log for linux where it works? That's not helpful.
Why not post a Mac Log so we can see what's actually going on.
Why not post a Mac Log so we can see what's actually going on.
Re: How to I limit CPU usage
mduell asked my to. He said "And you need to post the encoding log for the encode where you claim you had it down to a single CPU, as we've stated repeatedly."s55 wrote:Then why are you posting a log for linux where it works? That's not helpful.
Why not post a Mac Log so we can see what's actually going on.
Re: How to I limit CPU usage
Nevermind, found it on the other thread.
Given you are using filters. What I said above applies.
So, everything is working as-expected.
Given you are using filters. What I said above applies.
(And no, your not using the same settings between the two. The mac is running intensive multi-threaded filters that your linux encode is not)Note, threads=1 only limits the x264 encoder. It doesn't limit HandBrake (decode, filters etc). That means, if the encoder isn't a bottleneck, then you'll still potentially see full CPU usage. There is nothing you can do to change this.
If your case, it seems like you've successfully caused x264 to slow down quite a bit, so your seeing reduced CPU usage.
So, everything is working as-expected.
Re: How to I limit CPU usage
Lo and behold, you're using different settings here than in the Mac log you provided in the other thread, despite you insisting you were using the exact same settings.
- different frame rate mode
- different audio encoder
- different deinterlace filter (off here, on under OSX) (mostly likely what's using a lot of CPU on the Mac side)
Re: How to I limit CPU usage
This is hopeless. Are you not reading? If I do an encoding with normal preset on both Linux and OSX then everything is working fine on Linux but not on OSX. The log from OSX that I provided was with some changes to the normal preset. But I get the same high CPU usage on OSX with the normal presets55 wrote:Nevermind, found it on the other thread.
Given you are using filters. What I said above applies.
(And no, your not using the same settings between the two. The mac is running filters that your linux encode is not)Note, threads=1 only limits the x264 encoder. It doesn't limit HandBrake (decode, filters etc). That means, if the encoder isn't a bottleneck, then you'll still potentially see full CPU usage. There is nothing you can do to change this.
If your case, it seems like you've successfully caused x264 to slow down quite a bit, so your seeing reduced CPU usage.
So, everything is working as-expected.
Re: How to I limit CPU usage
I will repeat my original question.
I'm trying to understand how to limit CPU usage in Handbrake.
How do I limit the CPU usage? I dont want to run at 700% - 800% (8 core CPU).
I'm trying to understand how to limit CPU usage in Handbrake.
How do I limit the CPU usage? I dont want to run at 700% - 800% (8 core CPU).
Re: How to I limit CPU usage
Provide a log with an unaltered Normal preset and threads=1
Your either doing something wrong or something is still different and it's impossible to say what.
and my original comment still stands. You can't stop HandBrake using the CPU. Threads=1 *may* bottleneck the encode, it may also not and if it doesn't, your flat out of luck.
Your either doing something wrong or something is still different and it's impossible to say what.
and my original comment still stands. You can't stop HandBrake using the CPU. Threads=1 *may* bottleneck the encode, it may also not and if it doesn't, your flat out of luck.
Re: How to I limit CPU usage
Thanks for finally posting this and confirming you're using completely different settings than you chose on OS X as Rodeo noted above.
You cannot limit the CPU usage in HB when you choose to use the deinterlace filter.niclasc wrote:I'm trying to understand how to limit CPU usage in Handbrake.
How do I limit the CPU usage? I dont want to run at 700% - 800% (8 core CPU).
You could use a third party program like cpulimit to do it, but that's well beyond the scope of this forum.
Re: How to I limit CPU usage
Yes, it is. You're incapable of providing logs for two encodes (one Mac, one Linux) with the same settings. Bye.niclasc wrote:This is hopeless. Are you not reading?s55 wrote:Nevermind, found it on the other thread.
Given you are using filters. What I said above applies.
(And no, your not using the same settings between the two. The mac is running filters that your linux encode is not)Note, threads=1 only limits the x264 encoder. It doesn't limit HandBrake (decode, filters etc). That means, if the encoder isn't a bottleneck, then you'll still potentially see full CPU usage. There is nothing you can do to change this.
If your case, it seems like you've successfully caused x264 to slow down quite a bit, so your seeing reduced CPU usage.
So, everything is working as-expected.