Mock performance and tmpFS


(Stéphane de Labrusse) #1

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)

https://wiki.nethserver.org/doku.php?id=mock_performance

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.


(Rob Bosch) #2

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


(Stéphane de Labrusse) #3

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

(Mark Verlinde) #4

yes it is…

still have to look in this this: