[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Memory use pattern in svn_fs_base__retry_txn(

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Sat, 26 Nov 2011 09:20:30 -0500

On 11/24/2011 04:38 PM, Daniel Shahaf wrote:
> svn_fs_base__retry_txn() is a while(1) loop that calls
> begin_trail(pool) in every iteration. The latter function callocates
> a struct trail_t out of POOL.
>
> Is there a memory growth issue here? Will the number of iterations of
> the while(1) loop be small or bounded? If not, should we avoid repeated
> allocations out of POOL? (e.g., by re-using a single trail_t struct, or
> by letting the struct live on stack until a successful txn)

Generally speaking, there will be but one iteration. If the database gets
into a deadlocked state, further iterations can occur. But if all we're
talking about is the size of that smallish structure, I'm not terribly
worried about it.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2011-11-26 15:21:04 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.