Re: memory leak under heavy load?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: memory leak under heavy load?
Дата
Msg-id 20051209134042.GA20352@svana.org
обсуждение исходный текст
Ответ на Re: memory leak under heavy load?  (Kathy Lo <kathy.lo.ky@gmail.com>)
Список pgsql-general
On Fri, Dec 09, 2005 at 12:15:44PM +0800, Kathy Lo wrote:
> > See the shmctl() manpage:
> >
> >        int shmctl(int shmid, int cmd, struct shmid_ds *buf);
> >
> > One of the command ids is IPC_RMID
> >
> Do I need to change the source code of postgresql if I want to set
> IPC_RMID flag to solve this problem?

No because it's completely unrelated. The amount of shared memory
doesn't vary while the system is running and it gets removed once you
restart postgres. So it can't cause you to run out of memory (unless
you allocated a truly huge amount of memory that way, but that's bad
for other reasons). At worst it's gets stuffed into swap until you next
start postgres.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: GnuPG / PGP signed MD5 and SHA1 checksums for PostgreSQL 8.1.0
Следующее
От: "durumdara@mailpont.hu"
Дата:
Сообщение: pg_dump problems