Re: memory issues when running with mod_perl

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Rieke <andreas(dot)rieke(at)isl(dot)de>
Cc: pgsql-general(at)postgresql(dot)org, kleptog(at)svana(dot)org, postgres(at)2xlp(dot)com
Subject: Re: memory issues when running with mod_perl
Date: 2006-10-01 15:56:47
Message-ID: 25710.1159718207@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andreas Rieke <andreas(dot)rieke(at)isl(dot)de> writes:
> R1: First of all, I tried the loop from your older OS X problem:
> while true
> do
> psql -c "select count(*) from tenk1" regression
> done
> Even after running the psql command for more than a million times over
> quite a small table with about 10 000 entries, I can NOT see any lost
> memory. Thus, we have another problem as the OS X people.

OK, that kills the theory that the leak is triggered by subprocess exit.
Another thing that would be worth trying is to just stop and start the
postmaster a large number of times, to see if the leak occurs at
postmaster exit.

Also, do you have any problems with backends crashing (ie, forced
database restarts)? That scenario should be equivalent to a postmaster
restart, but it might be worth trying a few cycles of kill -9'ing a
backend (not the postmaster) to check for a leak in that path.

> R2: After having a look at the linux kernel mailing list, it seems that
> this problem is not yet known there.

It's premature to complain to them until we have a clearly reproducible
way of causing the leak.

> Q1: The first question is quite easy: Is there any way to tell pg NOT to
> use shmem?

No.

> Does pg allocate other shmem blocks?

No.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Fred Tyler 2006-10-01 16:06:06 Re: memory issues when running with mod_perl
Previous Message Andreas Rieke 2006-10-01 15:00:34 Re: memory issues when running with mod_perl