Author Topic: LS520DE FW 4.30 backup with rsync nice -5 should be 19  (Read 2012 times)

oxygen8

  • The Oxy-genuine article
  • El Toro
  • ****
  • Posts: 417
  • Giving you some breathing space.
LS520DE FW 4.30 backup with rsync nice -5 should be 19
« on: December 31, 2017, 03:16:11 AM »
If i start a backup job, smb stops working.
The priority of rsync is to high


Code: [Select]
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
« Last Edit: December 31, 2017, 04:15:22 AM by oxygen8 »

oxygen8

  • The Oxy-genuine article
  • El Toro
  • ****
  • Posts: 417
  • Giving you some breathing space.
Re: LS520DE FW 4.30 backup with rsync nice -5 should be 19
« Reply #1 on: December 31, 2017, 04:10:24 AM »
my quick and dirty solution is

Code: [Select]
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
« Last Edit: December 31, 2017, 04:15:42 AM by oxygen8 »

MiG174

  • Tatanka
  • **
  • Posts: 93
Re: LS520DE FW 4.30 backup with rsync nice -5 should be 19
« Reply #2 on: December 31, 2017, 11:09:41 AM »
The priority of rsync is to high

use renice

example:
Code: [Select]
# renice -n 0 `pgrep "[s]mbd"`

oxygen8

  • The Oxy-genuine article
  • El Toro
  • ****
  • Posts: 417
  • Giving you some breathing space.
Re: LS520DE FW 4.30 backup with rsync nice -5 should be 19
« Reply #3 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?
« Last Edit: January 01, 2018, 05:10:43 PM by oxygen8 »