Re: dynamically allocating chunks from shared memory - Mailing list pgsql-hackers

From Markus Wanner
Subject Re: dynamically allocating chunks from shared memory
Date
Msg-id 4C604531.8060102@bluegap.ch
Whole thread Raw
In response to Re: dynamically allocating chunks from shared memory  (Bruce Momjian <bruce@momjian.us>)
Responses Re: dynamically allocating chunks from shared memory
List pgsql-hackers
Hi,

On 08/09/2010 06:10 PM, Bruce Momjian wrote:
> My point is that you can treat malloc the same as "add shared memory",
> to some extent, with the same limiations.

Once one of the SLRU buffers is full, it cannot currently allocate from 
another SLRU buffer's unused memory area. That memory there is plain 
wasted at that moment. That's my point and the problem the allocator I 
posted tries to solve.

I fail to see how malloc could help here. malloc() only allocates 
process-local memory.

Regards

Markus Wanner


pgsql-hackers by date:

Previous
From: Markus Wanner
Date:
Subject: Re: dynamically allocating chunks from shared memory
Next
From: Robert Haas
Date:
Subject: Re: dynamically allocating chunks from shared memory