Re: ??: postgres cpu 100% need help

From: "657985552(at)qq(dot)com" <657985552(at)qq(dot)com>
To: "Kevin Grittner" <kgrittn(at)gmail(dot)com>
Cc: "Merlin Moncure" <mmoncure(at)gmail(dot)com>, "Bill Moran" <wmoran(at)potentialtech(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: ??: postgres cpu 100% need help
Date: 2015-11-25 02:15:01
Message-ID: 2015112510150117979320@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi kevin:
thanks for you help . but the following config Indicate my OS THP is Disable
[root(at)pg1 ~]# grep -i HugePages_Total /proc/meminfo
HugePages_Total: 0
[root(at)pg1 ~]# cat /proc/sys/vm/nr_hugepages
0

657985552(at)qq(dot)com

From: Kevin Grittner
Date: 2015-11-23 23:30
To: 657985552(at)qq(dot)com
CC: Merlin Moncure; Bill Moran; pgsql-general
Subject: Re: [GENERAL] ??: postgres cpu 100% need help
On Mon, Nov 23, 2015 at 12:20 AM, 657985552(at)qq(dot)com <657985552(at)qq(dot)com> wrote:

> [root(at)pg1 ~]# cat /sys/kernel/mm/transparent_hugepage/enabled
> [always] madvise never
> [root(at)pg1 ~]# cat /sys/kernel/mm/transparent_hugepage/defrag
> [always] madvise never

There's your problem. You need to set those to "never". You can
get immediate relief by echoing 'never' to those pseudo-files, but
you need to configure your system to set them at OS boot time, too.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2015-11-25 02:21:21 Re: ??: postgres cpu 100% need help
Previous Message Oleg Bartunov 2015-11-24 23:36:48 Re: JSON path wild cards?