pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html
4+ messages / 4 participants
[nested] [flat]

* Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html
@ 2021-10-05 09:42 PG Doc comments form <noreply@postgresql.org>
  2021-10-05 14:48 ` Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: PG Doc comments form @ 2021-10-05 09:42 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: sanjeev_adwal@yahoo.co.in

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/kernel-resources.html
Description:

Hi.

On https://www.postgresql.org/docs/12/kernel-resources.html, the command to
calculate memory allocated to postgres is not correct. Following is the
command as shown in 18.4.5. Linux Huge Pages.

pmap 4170 | awk '/rw-s/ && /zero/ {print $2}', this command does not return
any results with correct pid. Probably /zero/ needs to be updated with
/anon_hugepage/

Thanks,
Sanjeev Adwal


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

* Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html
  2021-10-05 09:42 Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html PG Doc comments form <noreply@postgresql.org>
@ 2021-10-05 14:48 ` Tom Lane <tgl@sss.pgh.pa.us>
  2021-10-05 23:26   ` Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html Thomas Munro <thomas.munro@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2021-10-05 14:48 UTC (permalink / raw)
  To: sanjeev_adwal@yahoo.co.in; +Cc: pgsql-docs@lists.postgresql.org

PG Doc comments form <noreply@postgresql.org> writes:
> On https://www.postgresql.org/docs/12/kernel-resources.html, the command to
> calculate memory allocated to postgres is not correct. Following is the
> command as shown in 18.4.5. Linux Huge Pages.
> pmap 4170 | awk '/rw-s/ && /zero/ {print $2}', this command does not return
> any results with correct pid. Probably /zero/ needs to be updated with
> /anon_hugepage/

The example seems to work as-given for me (testing on a RHEL8 system).
It's of course not guaranteed to work on every flavor of Linux.

			regards, tom lane





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

* Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html
  2021-10-05 09:42 Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html PG Doc comments form <noreply@postgresql.org>
  2021-10-05 14:48 ` Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-10-05 23:26   ` Thomas Munro <thomas.munro@gmail.com>
  2021-10-07 08:14     ` Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html Sanjeev Adwal <sanjeev_adwal@yahoo.co.in>
  0 siblings, 1 reply; 4+ messages in thread

From: Thomas Munro @ 2021-10-05 23:26 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: sanjeev_adwal@yahoo.co.in, Pg Docs <pgsql-docs@lists.postgresql.org>

On Wed, Oct 6, 2021 at 3:48 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> PG Doc comments form <noreply@postgresql.org> writes:
> > On https://www.postgresql.org/docs/12/kernel-resources.html, the command to
> > calculate memory allocated to postgres is not correct. Following is the
> > command as shown in 18.4.5. Linux Huge Pages.
> > pmap 4170 | awk '/rw-s/ && /zero/ {print $2}', this command does not return
> > any results with correct pid. Probably /zero/ needs to be updated with
> > /anon_hugepage/
>
> The example seems to work as-given for me (testing on a RHEL8 system).
> It's of course not guaranteed to work on every flavor of Linux.

I think the pattern as given will show you the size if you are not
already using huge pages.  For example, this line matches on my system
when I have /proc/sys/vm/nr_hugepages == 0:

00007f2932eb6000 145360K rw-s- zero (deleted)

If you are already using huge pages, it doesn't match anything,
because the relevant line looks like:

00007f6814e00000 145408K rw-s- anon_hugepage (deleted)





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

* Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html
  2021-10-05 09:42 Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html PG Doc comments form <noreply@postgresql.org>
  2021-10-05 14:48 ` Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html Tom Lane <tgl@sss.pgh.pa.us>
  2021-10-05 23:26   ` Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html Thomas Munro <thomas.munro@gmail.com>
@ 2021-10-07 08:14     ` Sanjeev Adwal <sanjeev_adwal@yahoo.co.in>
  0 siblings, 0 replies; 4+ messages in thread

From: Sanjeev Adwal @ 2021-10-07 08:14 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Thomas Munro <thomas.munro@gmail.com>; +Cc: Pg Docs <pgsql-docs@lists.postgresql.org>

 Thanks Thomas. Looks like I misread that.
    On Wednesday, 6 October, 2021, 04:56:42 am IST, Thomas Munro <thomas.munro@gmail.com> wrote:  
 
 On Wed, Oct 6, 2021 at 3:48 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> PG Doc comments form <noreply@postgresql.org> writes:
> > On https://www.postgresql.org/docs/12/kernel-resources.html, the command to
> > calculate memory allocated to postgres is not correct. Following is the
> > command as shown in 18.4.5. Linux Huge Pages.
> > pmap 4170 | awk '/rw-s/ && /zero/ {print $2}', this command does not return
> > any results with correct pid. Probably /zero/ needs to be updated with
> > /anon_hugepage/
>
> The example seems to work as-given for me (testing on a RHEL8 system).
> It's of course not guaranteed to work on every flavor of Linux.

I think the pattern as given will show you the size if you are not
already using huge pages.  For example, this line matches on my system
when I have /proc/sys/vm/nr_hugepages == 0:

00007f2932eb6000 145360K rw-s- zero (deleted)

If you are already using huge pages, it doesn't match anything,
because the relevant line looks like:

00007f6814e00000 145408K rw-s- anon_hugepage (deleted)
  

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


end of thread, other threads:[~2021-10-07 08:14 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 09:42 Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html PG Doc comments form <noreply@postgresql.org>
2021-10-05 14:48 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-10-05 23:26   ` Thomas Munro <thomas.munro@gmail.com>
2021-10-07 08:14     ` Sanjeev Adwal <sanjeev_adwal@yahoo.co.in>

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