shared memory & heap/free store
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > shared memory & heap/free store




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    shared memory & heap/free store  
kasthurirangan.balaji@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-14-07 06:30 PM

Hi,

I understand that most unix systems provide both shared memory & heap/
free store. I think both of these are limited by the physical ram in
the box. If i do not use shared memory at all, as my application grows
using heap/free store, will the shared memory also be converted to
heap/free store. Is there a way to suppress shared memory and use the
entire available ram to heap/free store.

Thanks,
Balaji.





[ Post a follow-up to this message ]



    Re: shared memory & heap/free store  
Rainer Weikusat


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-14-07 06:30 PM

kasthurirangan.balaji@gmail.com writes:
> I understand that most unix systems provide both shared memory & heap/
> free store. I think both of these are limited by the physical ram in
> the box.

This depends on the kernel actually being used and the way the system
using this kernel is installed, but generally, it is wrong.

> Is there a way to suppress shared memory and use the
> entire available ram to heap/free store.

On UNIX(*) (and presuambly every other remotely modern general purpose
OS) physical memory is managed by the kernel (or some other piece of
system software) and this implies that applications have no way of
doing it themselves. And this is supposed to mean NO WAY.





[ Post a follow-up to this message ]



    Re: shared memory & heap/free store  
Barry Margolin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-15-07 06:41 AM

In article
<cd2988e0-9f86-4fca-9fce-75b384d9aaa9@e6g2000prf.googlegroups.com>,
kasthurirangan.balaji@gmail.com wrote:

> Hi,
>
> I understand that most unix systems provide both shared memory & heap/
> free store. I think both of these are limited by the physical ram in
> the box. If i do not use shared memory at all, as my application grows
> using heap/free store, will the shared memory also be converted to
> heap/free store. Is there a way to suppress shared memory and use the
> entire available ram to heap/free store.

I suggest you consult a good book on operating systems and learn how
virtual memory works.  Your question doesn't really make sense at all
because of this.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:34 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register