tom300z / backblaze-personal-wine

45 stars 12 forks source link

Issue while running multiple thread #1

Open Tenebras50 opened 3 years ago

Tenebras50 commented 3 years ago

having issue when running multiple thread like 30 BB get stuck looping on the same 100-150 file like 4000 to 3900 then goes back to ''producing file list'' and the counter goes back to 4000 setting the thread to 1-2 seems to not cause the issue but the upload speed is abysmal any advice would be welcome,

Can tip on PP if can help me get it to work properly

thanks

simoncaron commented 3 years ago

Hey @Tenebras50!

Looks like the start.sh script is preventing tini (the --init part) to reap zombie threads created by the backblaze client. If you want to get rid of those, you just need to overwrite the start.sh file (one wine and the client is properly installed on your volumes) with a one-liner like this:

rm -f /tmp/.X0-lock & \
Xvfb :0 -screen 0 1024x768x24 & \
openbox & \
x11vnc -nopw -q -forever -loop -shared & \
wine $WINEPREFIX/drive_c/Program\ Files/Backblaze/bzbui.exe -noquiet

With a more simple entrypoint script, tini is able to clean zombie threads properly. I've been running like this for a few weeks without any trouble. Zombie threads were probably also the reason why upload speed was subpar.

Kudos to Atemu which mentions this in his/her Dockerfile README.