Unix Programming - Allocated memory = Multiple of page size

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > December 2004 > Allocated memory = Multiple of page size





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Allocated memory = Multiple of page size
qazmlp

2004-12-16, 7:45 pm

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

2004-12-16, 7:45 pm

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
David Schwartz

2004-12-16, 7:45 pm


"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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com