From: "Greg Lindahl" <glindahl@hpti.com>
To: <axp-list@redhat.com>
Subject: RE: memory address space on alpha Linux
Date: Sun, 7 Jan 2001 15:36:15 -0500 [thread overview]
Message-ID: <000301c078e9$7b636b00$0a3afea9@hptilap.hpti.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0101062145210.16289-100000@orion.chem.vt.edu>
> My question stems from my experience on most other operating systems ---
> Intel Linux, IBM AIX, SGI, CRAY, etc. --- that the two types of addresses
> returned by malloc() lie in the same ballpark.
The malloc in glibc, like many other modern mallocs, has 2 kinds of
addresses it returns. Small items are put in pages with other items of
similar sizes, and large items are all done together. So it's completely
normal that an 8000 byte malloc is nowhere near a big one. (There also seems
to be some other tricks going on in this case, but I think this is roughly
right.)
> More to the point, though, is the fact that I have some older Fortran code
> that I'm attempting to port to alpha Linux which fails when these
> addresses
> are very, very, very far apart as they are here. If there is a way to
> cleanly force the addresses to be closer together, I need to learn about
> it.
-xtaso is your friend. I take it that your fortran code requires the
displacement between any pair of addresses to fit into 32 bits. If you don't
mind being limited to 2 GB total of memory, -xtaso will magically do this
for you.
-- g
prev parent reply other threads:[~2001-01-07 20:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-06 22:00 memory address space on alpha Linux T. Daniel Crawford
2001-01-06 22:49 ` Uncle George
2001-01-06 23:49 ` Richard Henderson
2001-01-07 2:46 ` T. Daniel Crawford
2001-01-07 20:07 ` Richard Henderson
2001-01-07 20:21 ` T. Daniel Crawford
2001-01-07 20:36 ` Greg Lindahl
2001-01-07 20:36 ` Greg Lindahl [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox