Axp-List Archive
RE: memory address space on alpha Linux

Subject: RE: memory address space on alpha Linux
From: Greg Lindahl (glindahl@hpti.com)
Date: Sun Jan 7 12:36:15 2001


> 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

_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list



This archive was generated by hypermail version 2a22 on Sat Mar 3 12:54:54 2001 PST
Send any problems or questions about this archive to webmaster@alphalinux.org.