Need CPU limit to keep my old nas working!

Tell us your most wanted features from QNAP products.
Post Reply
User avatar
mjl
Getting the hang of things
Posts: 62
Joined: Fri Apr 24, 2009 4:49 pm

Need CPU limit to keep my old nas working!

Post by mjl »

I have an old TS-109 Pro. The problem is that with the current firmware (Version 3.3.0 build 0924T) and SABnzbd+ (0.5.0) installed then NAS is hardly uasble.

When SABnzbd is active it occupies the CPU with 92-99.9% (looking at TOP usage statistics).

In this way file sharing, etc is extermely slow!

I found that in Linux one can limit the CPU of a process using "cpulimit". This is not available in the firmware. I tried getting it through the Optware (iPKG) system but there it does not exist either.

Is there any (command line) tool to limit the CPU usage of the SABnzbd.py process? If not: definite feature request!!
Last edited by mjl on Thu Apr 12, 2012 5:42 pm, edited 2 times in total.
NAS Model: TS-873 FW: 4.4.1.x
Pool 1 (HDD): [RAID-5+SPARE] 7 x 4TB WD SE
Pool 2 (SSD): [RAID-1] 2 x 500GB WD Blue m.2's
RAM: 64GB DDR4
GPU: GTX 1050 Ti, Single Slot, 4GB
Network: 1x standard 1GB ETH + Intel 10GB ETH expansion (single port)
UPS: APC Back-UPS ES-700G

Backup 1: 2x USB 3.0 WD 4TB (alternating monthly backup of important data, most recent @2nd location)
Backup 2: NAS Model: TS-109Pro - 2 TB Backup @3rd location.
Backup 3: 2TB Stack storage for backup (4th location)

Cloud syncs: OneDrive & Dropbox
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Need CPU limit to keep my old nas working!

Post by schumaku »

I don't think forcing a CPU limit does help anything - CPU is just one of several factors, other factors are memory and I/O. Why? When other processes need CPU, they will get thier part, say about 50% when two processes are fighting for CPU.

Not a Sab'crack - but I would consider to lower whatever is possible: Number of concurrent jobs, bandwidth available, ...
User avatar
mjl
Getting the hang of things
Posts: 62
Joined: Fri Apr 24, 2009 4:49 pm

Re: Need CPU limit to keep my old nas working!

Post by mjl »

schumaku wrote:I don't think forcing a CPU limit does help anything - CPU is just one of several factors, other factors are memory and I/O. Why? When other processes need CPU, they will get thier part, say about 50% when two processes are fighting for CPU.

Not a Sab'crack - but I would consider to lower whatever is possible: Number of concurrent jobs, bandwidth available, ...
SABNZBD gets (and takes) the full 100% and thereby makes the NAS useless for other purposes. I tried to compile CPULIMIT, however GCC does not work on this nas, so that is a nogo...

If I limit the IO it still hogs the system with 100%.

Setting SABNZBD to 70% with CPU limit would be enough, file sharing only takes 30% max when active.

So if anyone out there knows how to compile (or send me the binary) of CPUlimit for a good ald 109 I'd be happy!

Going back to an older firmware is no option anymore (4k clusters...), although, i'd be happy if i could, never had these issues on the older firmware, the new firmware is just to much for this hardware.
Last edited by mjl on Thu Apr 12, 2012 5:43 pm, edited 1 time in total.
NAS Model: TS-873 FW: 4.4.1.x
Pool 1 (HDD): [RAID-5+SPARE] 7 x 4TB WD SE
Pool 2 (SSD): [RAID-1] 2 x 500GB WD Blue m.2's
RAM: 64GB DDR4
GPU: GTX 1050 Ti, Single Slot, 4GB
Network: 1x standard 1GB ETH + Intel 10GB ETH expansion (single port)
UPS: APC Back-UPS ES-700G

Backup 1: 2x USB 3.0 WD 4TB (alternating monthly backup of important data, most recent @2nd location)
Backup 2: NAS Model: TS-109Pro - 2 TB Backup @3rd location.
Backup 3: 2TB Stack storage for backup (4th location)

Cloud syncs: OneDrive & Dropbox
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Need CPU limit to keep my old nas working!

Post by schumaku »

Dount there were much changes on the Kernel side from v2/early v3 to the one supporting 4k disk blocks.

A process able to use CPU pow available does not mean the CPU is no longer available for other processing - neitther on the NAS, on Linux in geneal, nor on any other utlitasking OS in my opinion. Priority might be to high...
User avatar
mjl
Getting the hang of things
Posts: 62
Joined: Fri Apr 24, 2009 4:49 pm

Re: Need CPU limit to keep my old nas working!

Post by mjl »

schumaku wrote:Dount there were much changes on the Kernel side from v2/early v3 to the one supporting 4k disk blocks.
Indeed, I don't have data loss anymore, caching has been fixed at some point....
A process able to use CPU pow available does not mean the CPU is no longer available for other processing - neitther on the NAS, on Linux in geneal, nor on any other utlitasking OS in my opinion. Priority might be to high...
How to change the priority then, is that easy on a QNAP ?


--> found it: "renice", works in part, I can now access the drive from windows, transfer is still very slow, but that is probably due to the IO issues. Would be nice if "nice" would also be available, I could give low priority to admin related processes, giving the users a bit more room for connecting.
NAS Model: TS-873 FW: 4.4.1.x
Pool 1 (HDD): [RAID-5+SPARE] 7 x 4TB WD SE
Pool 2 (SSD): [RAID-1] 2 x 500GB WD Blue m.2's
RAM: 64GB DDR4
GPU: GTX 1050 Ti, Single Slot, 4GB
Network: 1x standard 1GB ETH + Intel 10GB ETH expansion (single port)
UPS: APC Back-UPS ES-700G

Backup 1: 2x USB 3.0 WD 4TB (alternating monthly backup of important data, most recent @2nd location)
Backup 2: NAS Model: TS-109Pro - 2 TB Backup @3rd location.
Backup 3: 2TB Stack storage for backup (4th location)

Cloud syncs: OneDrive & Dropbox
fantomas
Experience counts
Posts: 1560
Joined: Mon Feb 07, 2011 5:40 am
Location: Bratislava, Slovakia
Contact:

Re: Need CPU limit to keep my old nas working!

Post by fantomas »

Renice does exactly the same as nice does. the only difference is that nice executes a processwith different priority, while renice changes priority of already running process.

Different thing youmight want is ionice, which maintains i/o priority, while (re)nice only affect CPU priority.
I don't know if ionice is available and if QNAP uses "cfq" IO scheduler that is needed for ionice to work.
experience with administration of UN*X (mostly linux) and applications on internet servers since 1994...
Post Reply

Return to “Features Wanted”