Re: pkg_add and pkgin install taking extremely long
On Mon, Mar 25, 2024 at 05:40:44PM +0100, Enrico Weigelt, metux IT consult wrote: > A simple `pkg_add pkgin` runs for over a quarter hour, and pkgin install > call took another half an hour, until it recognized a wrong parameter: echo 'ip6addrctl=YES' >> /etc/rc.conf echo 'ip6addrctl_policy="ipv4_prefer"' >> /etc/rc.conf
Re: pkg_add and pkgin install taking extremely long
On 25.03.24 20:40, Justin Parrott wrote: This is not an issue with the local system. maybe a combination of both the guest and the host (maybe host offering IPv6 address but no actual routing). But fortunately fixed it with some tweaks now :) --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287
Re: pkg_add and pkgin install taking extremely long
This is not an issue with the local system. On Mon, Mar 25, 2024 at 3:34 PM Enrico Weigelt, metux IT consult < l...@metux.net> wrote: > Hi @all, > > > Your timing is similar to what I had in some early tests. That said, > > have you measured what is the slow part? I bet it's the network, not > > specifically pkgin. > > meanwhile turned out it seems to be ipv6 related (somebody in irc gave > me a hint on that). calling pkgin with -4 makes it *a lot* faster > (pkg_add doesnt seem to have that switch). > > Also explicitly dropping ipv6 default route - now the job finishes > in under 5mins. > > > --mtx > > -- > --- > Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert > werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren > GPG/PGP-Schlüssel zu. > --- > Enrico Weigelt, metux IT consult > Free software and Linux embedded engineering > i...@metux.net -- +49-151-27565287 > -- Justin Allen Parrott
Re: pkg_add and pkgin install taking extremely long
Hi @all, Your timing is similar to what I had in some early tests. That said, have you measured what is the slow part? I bet it's the network, not specifically pkgin. meanwhile turned out it seems to be ipv6 related (somebody in irc gave me a hint on that). calling pkgin with -4 makes it *a lot* faster (pkg_add doesnt seem to have that switch). Also explicitly dropping ipv6 default route - now the job finishes in under 5mins. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287
Re: pkg_add and pkgin install taking extremely long
Probably in the queue. On Mon, Mar 25, 2024 at 3:10 PM Benny Siegert wrote: > Am 25.03.24 um 17:40 schrieb Enrico Weigelt, metux IT consult: > > I'm currently in process of setting up an CI build process for Xorg > > on NetBSD (inside Qemu), but encountering really long delays in package > > installations. > > > > A simple `pkg_add pkgin` runs for over a quarter hour, and pkgin install > > call took another half an hour, until it recognized a wrong parameter: > > I have experience with a similar setup, from setting up the NetBSD CI > images for the Go project. > > Your timing is similar to what I had in some early tests. That said, > have you measured what is the slow part? I bet it's the network, not > specifically pkgin. > > I don't see timing information in the CI log -- you could wrap the pkgin > calls with "time", or print timestamps before each command. > > Maybe you need to change something in the networking setup on the qemu > side to get more throughput? There is no dmesg output in the log, so I > would check if the network uses vioif, or an emulated interface. > > -- > Benny > -- Justin Allen Parrott
Re: pkg_add and pkgin install taking extremely long
Am 25.03.24 um 17:40 schrieb Enrico Weigelt, metux IT consult: I'm currently in process of setting up an CI build process for Xorg on NetBSD (inside Qemu), but encountering really long delays in package installations. A simple `pkg_add pkgin` runs for over a quarter hour, and pkgin install call took another half an hour, until it recognized a wrong parameter: I have experience with a similar setup, from setting up the NetBSD CI images for the Go project. Your timing is similar to what I had in some early tests. That said, have you measured what is the slow part? I bet it's the network, not specifically pkgin. I don't see timing information in the CI log -- you could wrap the pkgin calls with "time", or print timestamps before each command. Maybe you need to change something in the networking setup on the qemu side to get more throughput? There is no dmesg output in the log, so I would check if the network uses vioif, or an emulated interface. -- Benny
Re: pkg_add and pkgin install taking extremely long
All of That Sounds to be Correct to Me. On Mon, Mar 25, 2024 at 12:43 PM Enrico Weigelt, metux IT consult < l...@metux.net> wrote: > Hello folks, > > I'm currently in process of setting up an CI build process for Xorg > on NetBSD (inside Qemu), but encountering really long delays in package > installations. > > A simple `pkg_add pkgin` runs for over a quarter hour, and pkgin install > call took another half an hour, until it recognized a wrong parameter: > > https://gitlab.freedesktop.org/metux/ci-templates/-/jobs/56754224 > > Am I doing anything wrong ? > > > thx > --mtx > > -- > --- > Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert > werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren > GPG/PGP-Schlüssel zu. > --- > Enrico Weigelt, metux IT consult > Free software and Linux embedded engineering > i...@metux.net -- +49-151-27565287 > -- Justin Allen Parrott