On Thu, Jan 28, 2021 at 01:40:08PM +0100, Miroslav Suchý wrote:
> Dne 28. 01. 21 v 11:54 Daniel P. Berrangé napsal(a):
> >Thus mock ends up using the slower storage since it isn't using /home.
> 
> A performance tips:
> http://miroslav.suchy.cz/blog/archives/2015/05/28/increase_mock_performance_-_build_packages_in_memory/index.html

For the RISC-V builders I wrote an nbdkit plugin to be mounted on
/var/lib/mock which should achieve similar performance while having
the benefit of using filesystem space instead of RAM+swap.

https://libguestfs.org/nbdkit-tmpdisk-plugin.1.html

Note the performance advantage is not immediately obvious - it's
because the plugin intentionally discards flush and FUA requests, thus
maximizing the amount that can be cached in RAM, but not requiring
RAM+swap as a tmpfs does.

(It would be nice for someone to integrate this more closely with mock
so that the individual /var/lib/mock/<builddir> directories would be
loop mounted as tmpdisk on demand and discarded when mock does a clean
operation.)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
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