Re: [PATCH] Parallelize sysupgrade downloads

2019-05-08 Thread Christian Weisgerber
On 2019-05-09, Christian Weisgerber wrote: >> Does unpriv do anything if you don't give it a command to run? > > It should return an error code and abort the script. And actually that's what it does. (Sorry, I confused myself there for a moment.) -- Christian "naddy" Weisgerber

Re: [PATCH] Parallelize sysupgrade downloads

2019-05-08 Thread Christian Weisgerber
On 2019-05-08, Jarkko Oranen wrote: >> -unpriv -f $f ftp -Vmo ${f} ${URL}${f} >> +unpriv -f $f > > Does unpriv do anything if you don't give it a command to run? It should return an error code and abort the script. I need to investigate why that doesn't happen. -- Christian "naddy"

Re: [PATCH] Parallelize sysupgrade downloads

2019-05-08 Thread Jarkko Oranen
On 5/7/19 10:39 PM, Ville Valkonen wrote: Hello, thanks for the great new tool, sysupgrade. Works like a charm. While on it, I came with this patch to speed up the downloading. It uses xargs -P to parallelize downloads (max 6, chosen from top of my head). Also, removed trailing spaces in two

[PATCH] Parallelize sysupgrade downloads

2019-05-07 Thread Ville Valkonen
Hello, thanks for the great new tool, sysupgrade. Works like a charm. While on it, I came with this patch to speed up the downloading. It uses xargs -P to parallelize downloads (max 6, chosen from top of my head). Also, removed trailing spaces in two lines. Without parallel patch: 4m20.91s