[PATCH] peer: Add memory allocation controls