[opensuse-factory] YaST question
Hi, Does YaST (sw_single) always download - on every run - the information from repodata if refresh is set to On for the respository or there is a check to see if it was really changed or not (using timestamp or filesize)? I'm have a feeling that it always downloads, but I might be wrong and packman is the one changing all the time. Andras -- Quanta Plus developer - http://quanta.kdewebdev.org K Desktop Environment - http://www.kde.org
Andras Mantia schrieb:
Does YaST (sw_single) always download - on every run - the information from repodata if refresh is set to On for the respository or there is a check to see if it was really changed or not (using timestamp or filesize)? I'm have a feeling that it always downloads, but I might be wrong and packman is the one changing all the time.
YaST downloads only a very small file in order to see if the repository changed. The rest is cached and only downloaded if necessary. For YaST repos, the small indicator file is "/media.1/media". It contains a timestamp. For YUM repos, it's "/repodata/repomd.xml". If you have a feeling that Packman is processed slower, there are multiple explanations: - The Packman repo does indeed change relatively frequently, and the repodata have to be downloaded from scratch. Incremental downloads are not possible right now. - The Packman repo is a YUM source. Parsing the metadata is notably slower for YUM sources than for YaST sources and the progress bar is inexact. Since the parsing needs to be done on every startup (other than zmd, YaST does not have its own database and needs to read the information from the original metadata), maybe it just looks like it downloads everything again. Whether it really does should be visible in /var/adm/mount. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thursday 02 November 2006 11:13, Andreas Hanke wrote:
YaST downloads only a very small file in order to see if the repository changed. The rest is cached and only downloaded if necessary.
I saw that two files are downloaded: filelists.xml.gz 1.5MB primary.xml.gz 1.3MB I wouldn't call them small. My connection is through wireless phone and fluctuates between 5-30KB/s. If it goes with only 5KB/s, it can take quite some time until it downloads the two files.
If you have a feeling that Packman is processed slower, there are multiple explanations:
- The Packman repo does indeed change relatively frequently, and the repodata have to be downloaded from scratch. Incremental downloads are not possible right now.
Yes, it might be, as now I see that the above files are not downloaded anymore. So forget this reload question. Some figures though (AMD64 3200+, 1GB memory, the above net connection, I have the CD ISOs and Packman as configured repository and zmd not running): - Packman refresh on: startup of sw_single takes about 45 seconds, from this one the first 25 shows no network activity, after that the download and parsing dialogs appear - Packman refresh off: no difference. - Packman disabled: the first 25 seconds are there, but after that is is about 10 seconds faster. Not scientific meassurement, but I think this is still quite slow. Andras -- Quanta Plus developer - http://quanta.kdewebdev.org K Desktop Environment - http://www.kde.org
participants (2)
-
Andras Mantia
-
Andreas Hanke