From: Mark Kirkwood <markir@paradise.net.nz>
To: Harald Armin Massa <haraldarminmassa@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: measuring shared memory usage on Windows
Date: Thu, 19 Oct 2006 17:58:47 +1300
Message-ID: <45370607.4080308@paradise.net.nz> (raw)
In-Reply-To: <7be3f35d0610161313y7d9b5a6ewff090db6fb25585@mail.gmail.com>
References: <7be3f35d0610160215v21edbe48vc144200a83f41dd0@mail.gmail.com>
<4533815E.3050301@boreham.org>
<7be3f35d0610161312r3ff84fcy4dcb85e9c71fa1e2@mail.gmail.com>
<7be3f35d0610161313y7d9b5a6ewff090db6fb25585@mail.gmail.com>
Harald Armin Massa wrote:
>
> Yeah, I know the trial and error method. But I also learned that
> reading the manuals and documentation often helps.
>
> So after fastreading the various PostgreSQL tuning materials, I came
> accross formulas to calculate a fine starting point for shared memory
> size; and the recommendation to check with shared_memory information
> tools if that size is okay.
>
> And THAT is exactly the challenge of this thread: I am searching for
> tools to check shared memory usage on Windows. ipcs is not available.
> And neither Magnus nor Dave, both main contributors of the win32 port
> of PostgreSQL, and both way wiser concerning Windows internas then me,
> know of some :(
>
>
Would it help to have the postmaster report what the shared memory
allocation is when it starts up? (this won't help with the activity
stuff, but at least you would know for sure how *much* you have to use).
If I understand this correctly,
ShmemSegHdr->totalsize
is what we have allocated, so making the startup section of bootstrap.c
elog(LOG) could work.
Cheers
Mark
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: markir@paradise.net.nz, haraldarminmassa@gmail.com
Subject: Re: measuring shared memory usage on Windows
In-Reply-To: <45370607.4080308@paradise.net.nz>
* 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