Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I/O intensive walk by createrepo_mod #23

Open
praiskup opened this issue Nov 24, 2020 · 1 comment
Open

I/O intensive walk by createrepo_mod #23

praiskup opened this issue Nov 24, 2020 · 1 comment

Comments

@praiskup
Copy link
Member

The code eats in order of magnitude more IO than the optimized createrepo_c run on large repositories.

In copr, we run:
/usr/bin/createrepo_mod /var/lib/copr/public_html/results/iucar/cran/fedora-31-x86_64 --database --ignore-lock --local-sqlite --cachedir /tmp/ --workers 8 --recycle-pkglist --update --skip-stat --pkglist /var/lib/copr/public_html/results/iucar/cran/fedora-31-x86_64/.copr-createrepo-pkglist

@praiskup
Copy link
Member Author

Previous Copr code (before calling createrepo_mod) was just expecting the modulemd file in the root repo directory:

-def add_modular_metadata(opts):
-    if not os.path.exists(os.path.join(opts.directory, "modules.yaml")):
-        return
-    run_cmd(
-        ["/usr/bin/modifyrepo_c",
-         "--mdtype", "modules",
-         "--compress-type", "gz",
-         os.path.join(opts.directory, 'modules.yaml'),
-         os.path.join(opts.directory, 'repodata')], opts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants