How to relieve the problem of high memory usage on a switch