memory overcommit and slave readonly fixes