Mock performance and tmpFS

Hi I would like to highlight a feature I recently find, @giacomo shared it one time, but I never tried, build rpm with mock and tmpfs (all write access are done in RAM)

To be short I simply put in /etc/mock/nethserver-7-x86_64.cfg

config_opts['plugin_conf']['tmpfs_enable'] = True
config_opts['plugin_conf']['tmpfs_opts'] = {}
config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] = 1024
config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '10g'
config_opts['plugin_conf']['tmpfs_opts']['mode'] = '0755'
config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = False

I build a rpm in 10 seconds :slight_smile:

you can check by : INFO: mounting tmpfs at /var/lib/mock/nethserver-7-x86_64/root.


What processor and (probably more important) how much RAM are we talking about?
Any catches? Integrity problems to expect?

mock is SLOW…even with a SSD (I use it already)

Actually I build rpm on coreI5 and 12GB of RAM, my latop is a dell 5440

Version: Intel(R) Core(TM) i5-4310U CPU @ 2.00GHz
1 Like

yes it is…

still have to look in this this: