Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Memory use ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 15964 of 16301
Post > Topic >>

Re: Memory use in 8.3 plpgsql with heavy use of xpath()

by stark@[EMAIL PROTECTED] (Gregory Stark) Jul 3, 2008 at 10:42 AM

"Tom Lane" <tgl@[EMAIL PROTECTED]
> writes:

> Well, you tell me --- *you* re****ted a behavior that isn't obviously
> explained by the bug we found.

In case it wasn't clear, the bug found was a intra-transaction memory
leak.
When the transaction ended the memory would be reclaimed. That doesn't
seem to
match the description of long term memory growth.

> It's possible that what you were seeing was an indirect effect of the
> now-known bug: if the xpath leak were to occur repeatedly on a large
> scale in a long-lived session, I think it's possible that memory
> allocation behavior might suffer due to fragmentation effects.
> I feel that that's a pretty hand-wavy explanation though.

Another explanation is that there wasn't a inter-transaction memory leak,
it
was just that the high water mark would grow whenever a transaction
processed
more data than previous transactions. If the data set size varies a lot
most
common distributions would have the majority of data sets be about the
same
size with a long tail of larger sets. That might like a slow creep as the
increases get rarer and rarer but do continue to happen.

That's just a special case of what would be expected to happen with memory
allocation anyways though. Few allocators return memory to the OS anyways.
It
might just be exaggerated in this case since probably a significant part
of
Postgres's footprint here was the per-transaction memory being used by
this
leak.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL
training!

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 2 Posts in Topic:
Re: Memory use in 8.3 plpgsql with heavy use of xpath()
stark@[EMAIL PROTECTED]   2008-07-03 10:42:36 
Re: Memory use in 8.3 plpgsql with heavy use of xpath()
tgl@[EMAIL PROTECTED] (T  2008-07-03 12:33:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 18:32:42 CDT 2008.