small optimization
fix: numbers of devices initializing while load zram module.
cpu_counts: call one time
move ram_size variable to script from config