DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th February 2016
ctps's Avatar
ctps ctps is offline
New User
 
Join Date: Feb 2016
Posts: 5
Default pkg_add -Uu insanely slow on powerpc/macppc

hi,

does anybody know why updating packages via pkg_add -Uu on a macppc is so insanely slow? does it have difficulties with perl or what?

i use the same ftp as with my amd64/i386 installs and they take 10 minutes with updating and the macppc needs 4 hours.

just happened again after upgrade from 5.8 to current 5.9
happens to me since my first install on this old laptop, which was 5.6

internet connection/bandwidth is fine and other actions on this laptop don't take long either

any ideas?
Reply With Quote
  #2   (View Single Post)  
Old 27th February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Hello, and welcome!

I don't have a macppc machine to test with. But I'll ask a few questions, in the hopes that the answers might indicate possible areas for further research or analysis.
  1. How many network hops between the macppc platform and the package mirror? You didn't mention it, and traceroute(8) can tell you.
  2. What is the end-to-end latency for the macppc platform to the package mirror? You didn't mention it, and ping(8) can provide this.
  3. What is the NIC you are using for network connectivity? What speed is the media connecting with? The ifconfig(8) command can produce this information.
  4. What network protocol are you using? This is determined by either your installpath URL definitions in a pkg.conf(5) file, or URL definitions in a $PKG_PATH environment variable.
  5. Are you seeing any local network errors? The -i option of netstat(1) will tell you if there are errors. Non-zero values for input or output packets indicates a network problem, if you are using wired Ethernet, but are very common on WiFi.
Reply With Quote
  #3   (View Single Post)  
Old 27th February 2016
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

My hunch will be that your macppc hardware is dying. In particular HDD.
Reply With Quote
  #4   (View Single Post)  
Old 27th February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I don't have any hunches, which is why I asked so many questions -- including the question about the NIC in use, because the bm(4) NIC has known issues.
Reply With Quote
  #5   (View Single Post)  
Old 27th February 2016
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 408
Default

I may be wrong, but it looks like this : http://openbsd-archive.7691.n7.nabbl...-td276600.html
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
  #6   (View Single Post)  
Old 27th February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

That fix was committed in August of 2015, after 5.8. But ctps reported the problem happened with a recent snapshot.
Reply With Quote
  #7   (View Single Post)  
Old 28th February 2016
ctps's Avatar
ctps ctps is offline
New User
 
Join Date: Feb 2016
Posts: 5
Default

i have that machine in my office and will answer your questions tomorrow jggmi
thank you all so far!
__________________
because security matters.
Reply With Quote
  #8   (View Single Post)  
Old 29th February 2016
ctps's Avatar
ctps ctps is offline
New User
 
Join Date: Feb 2016
Posts: 5
Default

Quote:
Originally Posted by jggimi View Post
  1. How many network hops between the macppc platform and the package mirror? You didn't mention it, and traceroute(8) can tell you.
  2. What is the end-to-end latency for the macppc platform to the package mirror? You didn't mention it, and ping(8) can provide this.
  3. What is the NIC you are using for network connectivity? What speed is the media connecting with? The ifconfig(8) command can produce this information.
  4. What network protocol are you using? This is determined by either your installpath URL definitions in a pkg.conf(5) file, or URL definitions in a $PKG_PATH environment variable.
  5. Are you seeing any local network errors? The -i option of netstat(1) will tell you if there are errors. Non-zero values for input or output packets indicates a network problem, if you are using wired Ethernet, but are very common on WiFi.
  1. 17 ftp-prod-srv04.it.su.se (77.238.36.56) 29.516 ms 29.035 ms 28.398 ms
  2. 64 bytes from 77.238.36.56: icmp_seq=5 ttl=50 time=27.859 ms
  3. gem0: media: Ethernet autoselect (100baseTX full-duplex)
  4. PKG_PATH=ftp://ftp.eu.openbsd.org/pub/OpenBSD/snapshots/packages/powerpc/
  5. nope, looks good
__________________
because security matters.
Reply With Quote
  #9   (View Single Post)  
Old 29th February 2016
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

In regard to fourth: can you try http?
I have been and am using still one of these two mirrors:
Code:
cat /etc/pkg.conf                                                            
#installpath=http://ftp.fr.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/
installpath=http://ftp.hostserver.de/pub/OpenBSD/snapshots/packages/amd64/
Of course adjust for powerpc/macpc
Reply With Quote
Old 29th February 2016
ctps's Avatar
ctps ctps is offline
New User
 
Join Date: Feb 2016
Posts: 5
Default

There we go, switched to http and it checks all my packages in under 2 minutes (no updates, but still)

Is this something to worry about and should i post it somewhere?
__________________
because security matters.
Reply With Quote
Old 29th February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

FTP is an ancient protocol that predates TCP/IP and the Internet. Due to how it is structured, it presents numerous problems for modern networks. Performance is just one of of its many problems.

Its use should be avoided when other protocols are available.
Reply With Quote
Reply

Tags
macppc, openbsd, pkg_add, powerpc, slow


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a bsd.rd upgrade issue for macppc daemonfowl OpenBSD Installation and Upgrading 9 26th July 2012 03:39 AM
Java 7 SDK and JRE PowerPC binaries available Ninguem News 1 6th March 2012 09:39 AM
Lightspark open source Flash player gains PowerPC support J65nko News 10 26th December 2010 05:47 PM
macppc + radeon drm sigflup OpenBSD Installation and Upgrading 6 7th July 2010 10:12 PM
macppc firefox + gtk problems gosha OpenBSD Packages and Ports 7 29th September 2008 05:04 PM


All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick