On Sun, Nov 25, 2018 at 05:53:21PM +0100, Benjamin Kircher wrote:
> What are dnf’s minimum memory requirements?

I think "creeping upwards" is a fair description.  We have
occasionally seen trouble with virt-builder and virt-customize which
are using a smallish virtual machine.  In Fedora 28+ I have had to
increase the memory available to 1G (from 500M previously, note there
is no swap) to get package installation to work reliably.  I also
filed:

  https://bugzilla.redhat.com/show_bug.cgi?id=1432219

which is closed now, but I think the issue has returned since I closed
it.

> Anyway, is memory consumption a thing with the new libdnf-in-C++
> efforts?

No idea whether rewriting dnf has helped.  I'm not clear which version
of dnf is the rewritten one.

> Could a look into microdnf be a thing for me?

For Fedora/RISC-V, in the early days while we were getting all the
dependencies for full dnf ready, we used ‘tdnf’ which is another of
these cut down solvers (written in C IIRC).  I wouldn't recommend that
particular program as it has many shortcomings compared to regular
dnf.  I don't think we tried microdnf however.

I think a more productive way to resolve this will be to try to
diagnose what's consuming memory.  You can probably do this by getting
dnf (or python?) to core dump when it runs out of memory, then
examining the core dump file for strings to see if you can identify
what data is consuming the memory.

Another way would be to use an instrumented malloc implementation
such as https://github.com/memtt/malt

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to