I'm running SABnzbd on an old iMac. I'm looking for a way to limit the cpu usage of sabnzbd subprocesses when it starts to post process and unrar the downloaded files. Whenever I'm watching a movie and it starts stuttering, I know it's because SABnzbds is processing a file.
I found this terminal tool called cputhrottle that can do exactly what I want except that it uses the PID of the process to limit its usage. The problem is that the PID of the unrar process changes for each new download. it's simply not worse the hassle to look up the PID and run the command every time a new file finishes downloading.
Does anybody know of a simpler method to do this?
Limit post processing stage's cpu usage
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: Limit post processing stage's cpu usage
The problem is not in the CPU probably.
SABnzbd already uses "nice" to tame the CPU.
It's much more likely that the disk is the bottleneck.
Unfortunatey OSX has no tools to lower disk-priority.
SABnzbd already uses "nice" to tame the CPU.
It's much more likely that the disk is the bottleneck.
Unfortunatey OSX has no tools to lower disk-priority.
Re: Limit post processing stage's cpu usage
I don't think that's the case here because all my movies are on a NAS drive connected directly to the iMac while SABnzbd's download location is on the main internal hard drive.shypike wrote:The problem is not in the CPU probably.
SABnzbd already uses "nice" to tame the CPU.
It's much more likely that the disk is the bottleneck.
Unfortunatey OSX has no tools to lower disk-priority.
Re: Limit post processing stage's cpu usage
Unrar unpacks from your internal disk to your external NAS.
Of course this affects disk access.
You can add a pause-postprocess and resume-postprocess event in the scheduler.
That will prevent any post-processing during the paused hours.
Of course this affects disk access.
You can add a pause-postprocess and resume-postprocess event in the scheduler.
That will prevent any post-processing during the paused hours.
Re: Limit post processing stage's cpu usage
I believe you misunderstood me. Both SABnzbd's incomplete and complete download folders are on the internal disk. I copy the movies to the NAS manually.shypike wrote:Unrar unpacks from your internal disk to your external NAS.
Of course this affects disk access.
You can add a pause-postprocess and resume-postprocess event in the scheduler.
That will prevent any post-processing during the paused hours.
Re: Limit post processing stage's cpu usage
Still post-processing is quite system load,
So you'd best not do that while watching movies.
SABnzbd already lowers it's own prio as much as it can,
But par2 and unrar are hard to tame.
So you'd best not do that while watching movies.
SABnzbd already lowers it's own prio as much as it can,
But par2 and unrar are hard to tame.
Re: Limit post processing stage's cpu usage
that's what i was afraid of...
Thanks for your help!
Thanks for your help!