Allocated memory = Multiple of page size
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 > Allocated memory = Multiple of page size




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

    Allocated memory = Multiple of page size  
qazmlp


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


 
12-17-04 12:45 AM

Will the size of the memory allocated within various(code,data,stack &
heap) segments for a process, be always multiple of 'page' size?





[ Post a follow-up to this message ]



    Re: Allocated memory = Multiple of page size  
Rich Teer


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


 
12-17-04 12:45 AM

On Tue, 14 Dec 2004, qazmlp wrote:

> Will the size of the memory allocated within various(code,data,stack &
> heap) segments for a process, be always multiple of 'page' size?

Yes; a page is the smallest unit of memory managed by the kernel.  (A bit
of a simplification, I know.)

Well, let me expand on that a bit: the segment size will be a multiple
of the page size, but those segments may contain multiple lumps that
are not any integer multiple of the page size.

--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming"

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich





[ Post a follow-up to this message ]



    Re: Allocated memory = Multiple of page size  
David Schwartz


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


 
12-17-04 12:45 AM


"qazmlp" <qazmlp1209@rediffmail.com> wrote in message
news:db9bbf31.0412140912.55bf5227@posting.google.com...

> Will the size of the memory allocated within various(code,data,stack &
> heap) segments for a process, be always multiple of 'page' size?

That's a meaingless question. It all depends upon what your definition
of "allocated" is.

DS







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:05 PM.      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