Performance tuning of buffer and memory