[opensuse-project] Re: zypper slow
Well I did try with the Google DNS 8.8.8.8 and with the same result, which is what I expected. Because if it was a DNS issue for some reason, it wouldn't be limited to zypper and openSUSE. As previously mentioned both yum and apt work perfect and fast in both functioning and downloading of packages. I freshly installed openSUSE last night and updated. The actual launch and function of zypper doesn't seem to be the issue. It definitely appears to be the downloading of packages as the actual noted download speeds of each package was VERY inconsistent. I suspect it's the mirror from where my packages are sourced. As I'm a relative newcomer to openSUSE, I have no idea how to check which server it is using for the sourcing of the packages. I am located in Queensland, Australia if it helps. Cheers -- PHOTO RESOLUTIONS - Photo - Graphic - Web C and L Jones - Proprietors ABN: 98 317 740 240 WWW: http://photoresolutions.freehostia.com @: chrisjones@comcen.com.au or photoresolutions@comcen.com.au Command lines and Linux terminals are my comfort zone! OS: openSUSE 11.4 System: Linux 2.6.37.1-1.2 x86_64 Desktop: KDE 4.6.0 OS: Windows XP System: x86 Desktop: Professional SP3 OS: FreeBSD 7.3 System: i386 Server: Headless-WebUI+putty -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Friday, April 22, 2011 10:43:24 PM Chris Jones wrote:
Well I did try with the Google DNS 8.8.8.8 and with the same result, which is what I expected. Because if it was a DNS issue for some reason, it wouldn't be limited to zypper and openSUSE. As previously mentioned both yum and apt work perfect and fast in both functioning and downloading of packages.
I freshly installed openSUSE last night and updated. The actual launch and function of zypper doesn't seem to be the issue. It definitely appears to be the downloading of packages as the actual noted download speeds of each package was VERY inconsistent. I suspect it's the mirror from where my packages are sourced. As I'm a relative newcomer to openSUSE, I have no idea how to check which server it is using for the sourcing of the packages. I am located in Queensland, Australia if it helps.
The information is logged in /var/log/zypper.log and it is a lot of things that are logged, so you probably want to run something like: grep -i "mediacurl(http://" /var/log/zypper.log > zypper-http and then look into zypper-http file with your favorite text editor. Some lines will be just checking repos, others will be redirects. I recommend not to use mirrors directly, unless you are confident that selected mirror is trustworthy. Using http://download.opensuse.org ensures that meta files describing repositories and files, including check sums and signatures are correct, as they are served directly from http://download.opensuse.org .
Cheers
<snip a bit oversized signature> :) -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Saturday, April 23, 2011 11:34:17 AM Rajko M. wrote:
grep -i "mediacurl(zypper-http">http://"/var/log/zypper.log>zypper-http
Above got messes when I copied it so needs some edit: grep -i "mediacurl(http://" /var/log/zypper.log > zypper-http -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
From: Rajko M. [mailto:rmatov101@charter.net] Sent: Sunday, April 24, 2011 2:34 AM To: opensuse-project@opensuse.org Subject: Re: [opensuse-project] Re: zypper slow The information is logged in /var/log/zypper.log and it is a lot of things that are logged, so you probably want to run something like: grep -i "mediacurl(http://" /var/log/zypper.log > zypper-http and then look into zypper-http file with your favorite text editor. Some lines will be just checking repos, others will be redirects. I recommend not to use mirrors directly, unless you are confident that selected mirror is trustworthy. Using http://download.opensuse.org ensures that meta files describing repositories and files, including check sums and signatures are correct, as they are served directly from http://download.opensuse.org .
Cheers
<snip a bit oversized signature> :) -- Regards, Rajko ********************************** Ok. So unless I've changed the repository to otherwise, it should be sourcing directly from opensuse.org servers? Regards Chris Jones -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Saturday, April 23, 2011 10:44:31 PM Chris Jones wrote:
Ok. So unless I've changed the repository to otherwise, it should be sourcing directly from opensuse.org servers?
Yes, one has to change repository URL by hand in order to force zypper and YaST to use metadata from mirror instead of http://download.opensuse.org . What would happen when the same repository is added twice, once as http://download.opensuse.org and another time as mirror, I don't know. Any repository is defined by metadata, and in ideal case both, mirror and download.opensuse.org should be the same, but if mirror did not pull latest version they are not. How that reflects on what is installed I don't know. Maybe some of zypper creators can shed some light on that. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Sun, Apr 24, 2011 at 07:13:44AM -0500, Rajko M. wrote:
On Saturday, April 23, 2011 10:44:31 PM Chris Jones wrote:
Ok. So unless I've changed the repository to otherwise, it should be sourcing directly from opensuse.org servers?
Yes, one has to change repository URL by hand in order to force zypper and YaST to use metadata from mirror instead of http://download.opensuse.org .
Note that download.opensuse.org is just providing a list of mirrors through the "metalink" mechanism, the real repository data and packages are fetched from the mirrors. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Tuesday, April 26, 2011 04:52:22 AM Michael Schroeder wrote:
Note that download.opensuse.org is just providing a list of mirrors through the "metalink" mechanism, the real repository data and packages are fetched from the mirrors.
This is new to me. http://old-en.opensuse.org/Libzypp/Failover Last edit by Peter was on March 3rd, 2009. This is at the very bottom of the article: "It is noteworthy that the origin server (download.opensuse.org) does not redirect for metadata and signatures to any mirror, so the clients always get those critical files from the origin site. If clients are using mirrors directly, the tradeoff is that they are less secure." Is this changed since then? If yes, what is replacing that? Regular checks of metadata are not real replacement, as rogue mirror can answer to download.opensuse.org with correct version, and to other clients with rogue metadata. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Tue, Apr 26, 2011 at 10:26:24PM -0500, Rajko M. wrote:
This is new to me.
http://old-en.opensuse.org/Libzypp/Failover Last edit by Peter was on March 3rd, 2009.
This is at the very bottom of the article: "It is noteworthy that the origin server (download.opensuse.org) does not redirect for metadata and signatures to any mirror, so the clients always get those critical files from the origin site. If clients are using mirrors directly, the tradeoff is that they are less secure."
Is this changed since then? If yes, what is replacing that?
All files without any numbers in the file name are not rediected, but served directly. In former times with was true for the metadata, like "primary.xml.gz". Since some time we switched to the new "checksum-primary.xml.gz" format. The checksums pretty much always contain numbers, so they get redirected to the mirrors. This also has the advantage that the load on our server dropped siginficantly, as it no longer has to serve those big files. There is no security issue caused, as "repomd.xml" contains the checksum for primary.xml and is still not redirected, as it doesn't contain a number. The same is true for the signature. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Saturday, April 23, 2011 11:34:17 AM Rajko M. wrote: ... grep -i "mediacurl(http://" /var/log/zypper.log > zypper-http It seems that I found some bug in KMail. My second post looks like first, but when it is opened for edit, the line is correct. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
participants (3)
-
Chris Jones
-
Michael Schroeder
-
Rajko M.