From: Andrew Kerber <andrew.kerber@gmail.com>
To: piotrwlodarczyk89@gmail.com
Cc: pgsql-docs@postgresql.org
Subject: Re: 18.4.4. Linux huge pages
Date: Sat, 22 Oct 2016 11:32:18 -0500
Message-ID: <B46021E0-717C-4972-9B07-03C47BE44315@gmail.com> (raw)
In-Reply-To: <20161021164351.1411.39835@wrigleys.postgresql.org>
References: <20161021164351.1411.39835@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
In most versions of Linux, the default hugepage size is 2m. Other Unix versions may have different hugepage sizes, e.g. AIX, but Linux defaults to 2m
Sent from my iPad
> On Oct 21, 2016, at 11:43 AM, piotrwlodarczyk89@gmail.com wrote:
>
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.6/static/kernel-resources.html
> Description:
>
> Hi,
>
> it's a mistake in 18.4.4. Linux huge pages (also in 9.4 and 9.5
> documentation). Example how to count number f huge pages says:
>
> 6490428 / 2048 (PAGE_SIZE is 2MB in this case) are roughly 3169.154 huge
> pages, so you will need at least 3170 huge pages:
>
> It's very rare that PAGE_SIZE is 2MB. It's more common situation that the
> value is 4096KB. But it's not a problem.
>
> The VmPeak should by divded not by PAGE_SIZE but by Hugepagesize listed by
> cat /proc/meminfo | grep Hugepagesize.
>
>
>
> --
> Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-docs
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-docs@postgresql.org
Cc: andrew.kerber@gmail.com, piotrwlodarczyk89@gmail.com
Subject: Re: 18.4.4. Linux huge pages
In-Reply-To: <B46021E0-717C-4972-9B07-03C47BE44315@gmail.com>
References: <20161021164351.1411.39835@wrigleys.postgresql.org> <B46021E0-717C-4972-9B07-03C47BE44315@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox