AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  dnf takes very long after cache clean

    Posted Fri June 09, 2023 05:59 AM

    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
    ------------------------------


  • 2.  RE: dnf takes very long after cache clean

    Posted Wed June 14, 2023 01:02 AM

    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
    ------------------------------



  • 3.  RE: dnf takes very long after cache clean

    Posted Tue June 20, 2023 01:31 AM

    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
    ------------------------------



  • 4.  RE: dnf takes very long after cache clean

    Posted Tue June 20, 2023 09:33 AM

    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
    ------------------------------



  • 5.  RE: dnf takes very long after cache clean

    Posted Tue July 11, 2023 04:12 AM

    Hi SANGAMESH.

    Any news?

    Regards

    Carsten



    ------------------------------
    Carsten Stephan
    ------------------------------



  • 6.  RE: dnf takes very long after cache clean

    Posted Fri July 14, 2023 11:53 AM

    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
    ------------------------------