fix performance issue on linux, add document for performance tuning