hi kevin:
thanks for you help . but the following config Indicate my OS THP is Disable
[root@pg1 ~]# grep -i HugePages_Total /proc/meminfo
HugePages_Total: 0
[root@pg1 ~]# cat /proc/sys/vm/nr_hugepages
0
HugePages_Total: 0
[root@pg1 ~]# cat /proc/sys/vm/nr_hugepages
0
657985552@xxxxxx
From: Kevin GrittnerDate: 2015-11-23 23:30To: 657985552@xxxxxxSubject: Re: [GENERAL] ??: postgres cpu 100% need helpOn Mon, Nov 23, 2015 at 12:20 AM, 657985552@xxxxxx <657985552@xxxxxx> wrote:> [root@pg1 ~]# cat /sys/kernel/mm/transparent_hugepage/enabled> [always] madvise never> [root@pg1 ~]# cat /sys/kernel/mm/transparent_hugepage/defrag> [always] madvise neverThere's your problem. You need to set those to "never". You canget immediate relief by echoing 'never' to those pseudo-files, butyou need to configure your system to set them at OS boot time, too.--Kevin GrittnerEDB: http://www.enterprisedb.comThe Enterprise PostgreSQL Company