pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
18.4.4. Linux huge pages
2+ messages / 2 participants
[nested] [flat]

* 18.4.4. Linux huge pages
@ 2016-10-21 16:43 piotrwlodarczyk89@gmail.com
  2016-10-22 16:32 ` Re: 18.4.4. Linux huge pages Andrew Kerber <andrew.kerber@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: piotrwlodarczyk89@gmail.com @ 2016-10-21 16:43 UTC (permalink / raw)
  To: pgsql-docs

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&#39;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&#39;s very rare that PAGE_SIZE is 2MB. It&#39;s more common situation that the
value is 4096KB. But it&#39;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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: 18.4.4. Linux huge pages
  2016-10-21 16:43 18.4.4. Linux huge pages piotrwlodarczyk89@gmail.com
@ 2016-10-22 16:32 ` Andrew Kerber <andrew.kerber@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew Kerber @ 2016-10-22 16:32 UTC (permalink / raw)
  To: piotrwlodarczyk89@gmail.com; +Cc: pgsql-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&#39;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&#39;s very rare that PAGE_SIZE is 2MB. It&#39;s more common situation that the
> value is 4096KB. But it&#39;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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-10-22 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-10-21 16:43 18.4.4. Linux huge pages piotrwlodarczyk89@gmail.com
2016-10-22 16:32 ` Andrew Kerber <andrew.kerber@gmail.com>

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