[rbp] Make cachemembuffersize default depend on memory size