From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 6C08A2F1C9 for ; Sun, 7 Jan 2001 15:36:23 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f07KaNh03147 for axp-list@listman.redhat.com; Sun, 7 Jan 2001 15:36:23 -0500 Received: from HPTI_MAIN.hpti.com ([63.87.135.214]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f07KaMD03139 for ; Sun, 7 Jan 2001 15:36:23 -0500 Received: from hptilap (HPTI [63.87.135.195]) by HPTI_MAIN.hpti.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id ZJXNG5XG; Sun, 7 Jan 2001 15:24:00 -0500 From: "Greg Lindahl" To: Subject: RE: memory address space on alpha Linux Date: Sun, 7 Jan 2001 15:36:15 -0500 Message-ID: <000301c078e9$7b636b00$0a3afea9@hptilap.hpti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors > 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