pgsql.hackers
[Top] [All Lists]

Re: Proposal: PageLayout footprint

Subject: Re: Proposal: PageLayout footprint
From: "Heikki Linnakangas"
Date: Mon, 11 Aug 2008 15:16:39 +0300
Newsgroups: pgsql.hackers


Gregory Stark wrote:
"Zdenek Kotala" <Zdenek.Kotala@xxxxxxx> writes:
By my opinion -fipa-struct-reorg GCC option could break structure. And maybe
there are more compiler magic switches and optimization on different platforms
which can modify structure alignment or member order. It probably does not
happen often but footprint should protect people to shot himself.

My version of GCC doesn't have that option, what does it do?

From gcc man page:

       -fipa-struct-reorg
           Perform structure reorganization optimization, that change C-like
           structures layout in order to better utilize spatial locality.
           This transformation is affective for programs containing arrays of
           structures.  Available in two compilation modes: profile-based
           (enabled with -fprofile-generate) or static (which uses built-in
           heuristics).  Require -fipa-type-escape to provide the safety of
           this transformation.  It works only in whole program mode, so it
           requires -fwhole-program and -combine to be enabled.  Structures
           considered cold by this transformation are not affected (see
           --param struct-reorg-cold-struct-ratio=value).

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

--
Sent via pgsql-hackers mailing list (pgsql-hackers@xxxxxxxxxxxxxx)
To make changes to your subscription:
                                www.postgresql.org/mailpref/pgsql-hackers">http://www.postgresql.org/mailpref/pgsql-hackers


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy