Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: memory allo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 17 of 17 Topic 5695 of 5734
Post > Topic >>

Re: memory allocation on Macs

by pgrigis@[EMAIL PROTECTED] May 5, 2008 at 01:49 PM

Karl wrote:
> On May 2, 1:13 pm, pgri...@[EMAIL PROTECTED]
 wrote:
> > Yes, you're right that I can allocate all the 7 GB (and more ) in
> > different IDL
> > sessions. So there seems to be a limit indeed on how much memory one
> > single
> > IDL session (or in general , one process) can use up, but there isn't
> > a limit for
> > total usage (which, though I am sure there are a number of technical
> > reason
> > for it, seems a bit silly, after all if the system as a whole can
> > access more
> > than 4 GB, why shouldn't parts of the system be allowed to do the
> > same?)
>
> Because it is a 32-bit application.  One key difference between 32-bit
> and 64-bit applications is that the pointers maintained by a 32-bit
> application are 32 bits in size, and the pointers maintained by a 64-
> bit application are 64 bits in size.  This happens at compile time.
> So, your 32-bit application simply cannot address more than 4GB at a
> time due to its fundamental pointer size.  Note that a 64-bit
> application will have a larger storage requirement due to the larger
> pointers.
>
> The memory management unit on the 32-bit CPU, something that you
> cannot directly access

OK, I guess I see the logic here: since the application cannot access
this,
the 4GB stands as a hard limit, and it makes more sense for the
vendors
to just move the application to 64 bits than implement fancy
techniques.

Thanks for your explanations,
Paolo

>, can address more than 4GB worth of RAM since
> it can map more than 4GB among several processes.  Here, it is
> probably mapping larger chunks of memory, or pages, rather than
> individual bytes, so it isn't as hard as it sounds.  But it is the MMU
> that locates the memory pages assigned to a 4GB process among the 7GB
> of installed memory and translates their physical addresses to 32-bit
> virtual addresses for the 4GB process.
>
> While there are lots of ways to emulate bigger address spaces and ways
> to fit bigger problems onto small machines, it may often be much
> easier to move to a 64-bit address space.
>
> Karl
>
>
>
> >
> > FYI, this is a Xeon machine in Mac OS X 10.4, so it is a 64 bit
> > processor
> > in a 32 bit OS running a 32 bit application.
> >
> > Anyway, thanks to all. I can cope with reading a few arrays off the
> > disk
> > from time to time.
> >
> > Ciao,
> > Paolo




 17 Posts in Topic:
memory allocation on Macs
pgrigis@[EMAIL PROTECTED]  2008-05-01 09:18:31 
Re: memory allocation on Macs
Brian Larsen <balarsen  2008-05-01 10:54:10 
Re: memory allocation on Macs
Rick Towler <rick.towl  2008-05-01 11:15:49 
Re: memory allocation on Macs
pgrigis@[EMAIL PROTECTED]  2008-05-01 11:25:51 
Re: memory allocation on Macs
pgrigis@[EMAIL PROTECTED]  2008-05-01 12:06:25 
Re: memory allocation on Macs
Brian Larsen <balarsen  2008-05-01 13:08:40 
Re: memory allocation on Macs
pgrigis@[EMAIL PROTECTED]  2008-05-01 13:56:22 
Re: memory allocation on Macs
pgrigis@[EMAIL PROTECTED]  2008-05-01 14:00:26 
Re: memory allocation on Macs
Karl <Karl.W.Schultz@[  2008-05-02 09:36:06 
Re: memory allocation on Macs
Brian Larsen <balarsen  2008-05-02 10:56:07 
Re: memory allocation on Macs
"Kenneth P. Bowman&q  2008-05-02 13:39:48 
Re: memory allocation on Macs
pgrigis@[EMAIL PROTECTED]  2008-05-02 12:13:04 
Re: memory allocation on Macs
ekvys101 <fsdals@[EMAI  2008-05-02 16:57:14 
Re: memory allocation on Macs
henrygroe@[EMAIL PROTECTE  2008-05-03 07:20:48 
Re: memory allocation on Macs
"dcleon@[EMAIL PROTE  2008-05-05 06:49:28 
Re: memory allocation on Macs
Karl <Karl.W.Schultz@[  2008-05-05 13:23:57 
Re: memory allocation on Macs
pgrigis@[EMAIL PROTECTED]  2008-05-05 13:49:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 8:56:36 CDT 2008.