Buffalo Forums

Products => Storage => Topic started by: oxygen8 on December 31, 2017, 03:16:11 AM

Title: LS520DE FW 4.30 backup with rsync nice -5 should be 19
Post by: oxygen8 on December 31, 2017, 03:16:11 AM
If i start a backup job, smb stops working.
The priority of rsync is to high


PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
7569 root      15  -5 17548 4740  712 R 104.1  1.9   0:37.99 /usr/bin/rsync
4044 root      35  15  8472  632  512 S   0.0  0.3   0:15.71 smbd
4919 debian-t  25   5 62956  17m 1792 S  21.3  7.2  76:24.78 transmission-da
Title: Re: LS520DE FW 4.30 backup with rsync nice -5 should be 19
Post by: oxygen8 on December 31, 2017, 04:10:24 AM
my quick and dirty solution is

crontab -l >/tmp/rsync.crontab ;
echo '*/1 * * * * /usr/bin/renice -n 19 $(/bin/pidof rsync)' >>/tmp/rsync.crontab ;
crontab < /tmp/rsync.crontab ; rm /tmp/rsync.crontab
Title: Re: LS520DE FW 4.30 backup with rsync nice -5 should be 19
Post by: MiG174 on December 31, 2017, 11:09:41 AM
Quote from: oxygen8 on December 31, 2017, 03:16:11 AM
The priority of rsync is to high

use renice

example:
# renice -n 0 `pgrep "[s]mbd"`
Title: Re: LS520DE FW 4.30 backup with rsync nice -5 should be 19
Post by: oxygen8 on January 01, 2018, 05:03:33 AM
i am using
renice -n 19 $(/bin/pidof rsync)

from
echo '*/1 * * * * /usr/bin/renice -n 19 $(/bin/pidof rsync)' >>/tmp/rsync.crontab


but i hope this bug will be fixed in the next firmware

where can i report a bug to buffalo?
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 60 (show)
Files included: 27 - 1055KB. (show)
Memory used: 737KB.
Tokens: post-login.
Queries used: 10.

[Show Queries]