Re: memory allocation and powers of two - Mailing list pgsql-hackers

From Tom Lane
Subject Re: memory allocation and powers of two
Date
Msg-id 25925.1062088221@sss.pgh.pa.us
Whole thread Raw
In response to memory allocation and powers of two  (David Schultz <dschultz@uclink.Berkeley.EDU>)
List pgsql-hackers
David Schultz <dschultz@uclink.Berkeley.EDU> writes:
> While looking into a block size mismatch problem between
> Postgresql and FreeBSD's FFS, I noticed that postgresql is making
> some rather odd-sized requests to malloc(3): 0x2034, 0x2020,
> 0x4018, 0x8018, etc.

AFAICT the operative word there is "some" --- the heavily used paths
should make power-of-two requests to malloc, because aset block sizes
will normally be powers of two.  Can you put your finger on paths that
generate a significant number of non-power-of-two requests?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Index creation takes for ever
Next
From: ohp@pyrenet.fr
Date:
Subject: Re: Index creation takes for ever