Re: measuring shared memory usage on Windows

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: measuring shared memory usage on Windows
Дата
Msg-id 45370607.4080308@paradise.net.nz
обсуждение исходный текст
Ответ на measuring shared memory usage on Windows  ("Harald Armin Massa" <haraldarminmassa@gmail.com>)
Ответы Re: measuring shared memory usage on Windows  ("Harald Armin Massa" <haraldarminmassa@gmail.com>)
Re: measuring shared memory usage on Windows  (David Boreham <david_list@boreham.org>)
Список pgsql-performance
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


В списке pgsql-performance по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Postgresql 8.1.4 - performance issues for select on
Следующее
От: Ioana Danes
Дата:
Сообщение: Re: Postgresql 8.1.4 - performance issues for select on view using max