课程里有专门课程讲解 https://learn.pingcap.com/learner/course/120005
也可以参考官方文档 https://docs.pingcap.com/zh/tidb/stable/configure-memory-usage