目前测试下来安装完Redhat6.2以后,性能还是可以接受的。修改如下:
打开/etc/cgsnapshot_blacklist.conf 文件,注释掉memory.force_empty 和cpu.shares,如下所示:
[root@host226 etc]# vicgsnapshot_blacklist.conf
#cgsnapshot tool configuration file
#memory
#memory.force_empty
memory.oom_control
#cpu
#cpu.shares
#cpuacct
#devices
#cpuset
#ns
#freezer
#net_cls
#blkio
Redhat6.2里面原始cgsnapshot_blacklist.conf是打开cpu.shares和memory.force_empty的,但是后来他们打过补丁注释掉了这两个。我们经过比较测试,发现注释掉这两项对性能还是有较大提升的。