Using par2tbb to enable multi threaded/multi core par2 verification in SABnzbd.

Status
Not open for further replies.

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
Does anyone have a guide or tips on getting the SABnzbd 1.0.0 plugin created by @Joshua Parker Ruehlig working with par2tbb to enable multi threaded/multi core par2 verification in SABnzbd? I found this guide for Linux but that doesn't translate over to BSD. I'd really like to use this if possible to speed up par2 tasks by leveraging additional CPU cores/hyperthreading. While we're at it, it would also be great if anyone had any tips on getting IONice to work as well! Thanks for any help!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I already compile the plugin with multithreaded par2 so all you need to do is set the below parameter.
Config > Switches
  • Extra PAR2 Parameters = -t+
I don't think ionice exists on freebsd
 

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
I already compile the plugin with multithreaded par2 so all you need to do is set the below parameter.
Config > Switches
  • Extra PAR2 Parameters = -t+
I don't think ionice exists on freebsd

Thanks for the reply. Joshua,

I had it set up like that with your SABnzbd plugin 0.7.2 using the -t+ switch and it was working wonderfully, but with 1.0.0 the "Enable MultiCore Par2" option is greyed out (not sure if that really matters) and using the -t+ switch still results in par2 only using 100% WCPU time, whereas on 0.7.2 it would go up to around 1000% CPU with -t+ time so it doesn't appear it's working. Is there anything else you can think of?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I think it was greyed out even on v0.7.20. according to the wiki all you need to enable it is the flag we have been using. not sure what has changed because the par2 binary we're using is the same
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
that definitely is the correct flag to pass as verified from running 'par2' in the jail. maybe when par2 is running from sabnzbd you can run 'ps aux' to make sure it passed the parameter
 

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
that definitely is the correct flag to pass as verified from running 'par2' in the jail. maybe when par2 is running from sabnzbd you can run 'ps aux' to make sure it passed the parameter
Here's the pertinent results of ps aux. Does this look right?

Code:
/usr/local/bin/par2 r -t+ /mnt/linux.par2
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
the flags being passed so sabnzbd is doing its job, not sure why par2 would stop doing it's job multihreaded. maybe you could try manually par2 the same files to verify 100% isn't the norm for them
 

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
the flags being passed so sabnzbd is doing its job, not sure why par2 would stop doing it's job multihreaded. maybe you could try manually par2 the same files to verify 100% isn't the norm for them
Thank you for looking into the issue. I will continue to test and report back. It was just working perfectly in 0.7.2, so I'm not sure why it decided to revert to single threaded performance after the upgrade.
 

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
To report back it looks like it's working fine now after a full FreeNAS system reboot. It was behaving like "-t0", but it's now working properly with '-t+". No idea why but it's good now. Thanks again for following up.
 
Status
Not open for further replies.
Top