Hi Carsten
YUM uses sqlite metadata files and downloads if cache is cleared.
However, DNF uses xml metadata and DNF takes sometime to download, read, and convert to solv format.
filelists metadata file which is the larger among other metadata files (primary, other).
filelists.sqlite metadat file is smaller than filelist.xml file in our case, hence in case of yum you are not seeing much delay.
Usually even for DNF to read Toolbox metadata files we haven't seen it's taking more than minute.
You can try running some profiling to see where the delay is happening.
------------------------------
SANGAMESH
------------------------------
Original Message:
Sent: Tue July 11, 2023 04:11 AM
From: Carsten Stephan
Subject: dnf takes very long after cache clean
Hi SANGAMESH.
Any news?
Regards
Carsten
------------------------------
Carsten Stephan
Original Message:
Sent: Tue June 20, 2023 09:32 AM
From: SANGAMESH MALLAYYA
Subject: dnf takes very long after cache clean
Hi Carsten,
I have not seen DNF taking this much long time to update the repo data.
We will check from our side if there any issues.
------------------------------
SANGAMESH
Original Message:
Sent: Tue June 20, 2023 01:31 AM
From: Carsten Stephan
Subject: dnf takes very long after cache clean
Hi Sangamesh.
The first dnf-run after clean all takes 5 minutes as you see in the output.
With yum it takes only seconds, Both is on 2-Core LPARs on the same Power10-HEX machine.
Regards
Carsten
------------------------------
Carsten Stephan
Original Message:
Sent: Wed June 14, 2023 01:01 AM
From: SANGAMESH MALLAYYA
Subject: dnf takes very long after cache clean
Hi Carsten,
When we clear the cache, dnf has to read the repo data again and lot of paging activity happens.
More the size of repodata more paging activity.
We are also in process of reducing repo data size by removing many older rpms but to keep only latest two versions.
Ideally, it shouldn't take more than minute to complete reading the repodata. I guess it may also depend on the system configuration.
------------------------------
SANGAMESH
Original Message:
Sent: Fri June 09, 2023 05:59 AM
From: Carsten Stephan
Subject: dnf takes very long after cache clean
After cleaning the cache with dnf clean all dnf runs 5 minutes the first time while yum takes a few seconds for the same repo.
Any hints?
root@DDD /opt/freeware/etc/dnf# dnf clean all
5 files removed
root@DDD /opt/freeware/etc/dnf# timex dnf -v list
Loaded plugins: changelog, config-manager, debug, generate_completion_cache, migrate, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.2.17
cachedir: /var/cache/dnf
os-release file not found
os-release: falling back to basic User-Agent: missing NAME or VERSION_ID
repo: downloading from remote: FI_AIX_YUM_HTTP_ppc
FI AIX YUM Repository ppc (http) 41 MB/s | 18 MB 00:00
FI_AIX_YUM_HTTP_ppc: using metadata from Mon May 22 13:01:36 MESZ 2023.
Last metadata expiration check: 0:04:54 ago on Fri Jun 9 11:47:10 MESZ 2023.
No module defaults found
Completion plugin: Generating completion cache...
Installed Packages
AIX-rpm.ppc 7.2.5.101-34 @System
apr.ppc 1.7.0-1
.
.
.
real 296.62
user 8.75
sys 0.10
------------------------------
Carsten Stephan
------------------------------