Limit post processing stage's cpu usage

Get help with all aspects of SABnzbd
Forum rules
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.
Post Reply
Arman_UV
Newbie
Newbie
Posts: 11
Joined: August 20th, 2010, 8:34 pm

Limit post processing stage's cpu usage

Post by Arman_UV »

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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Limit post processing stage's cpu usage

Post by shypike »

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.
Arman_UV
Newbie
Newbie
Posts: 11
Joined: August 20th, 2010, 8:34 pm

Re: Limit post processing stage's cpu usage

Post by Arman_UV »

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.
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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Limit post processing stage's cpu usage

Post by shypike »

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.
Arman_UV
Newbie
Newbie
Posts: 11
Joined: August 20th, 2010, 8:34 pm

Re: Limit post processing stage's cpu usage

Post by Arman_UV »

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.
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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Limit post processing stage's cpu usage

Post by shypike »

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.
Arman_UV
Newbie
Newbie
Posts: 11
Joined: August 20th, 2010, 8:34 pm

Re: Limit post processing stage's cpu usage

Post by Arman_UV »

that's what i was afraid of... :(
Thanks for your help!
Post Reply