Re: physical memory allocated to a program
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 11:09:47 +0100
mohi wrote:
hello everyone,
presently i was reading about physical memory allocators and wanted
to know ,as the size entry of the program( the size of the program in
directory entry) includes the size of the code of the program and not
that of the dynamic memory which that program may require(as i
think) ,so how does the kernel or the allocater decides what block of
memory should be actually allocated to the program(which will also
include the dynamic memory which may be required by the program beside
the memory required for its code.
mohan
You must distinguish between virtual memory allocated to a program (which, more or less, is just a map of which virtual addresses a program is alloed to access) and physical memory. The allocation of the former was described in another thread started by yourself. The latter is done demand-based: i.e. a process tries to access a virtual address it is allowed to access and the kernel then allocates and assigns a physical memory area for it.
You will be better off trying to find a book on virtual memory design.
--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
.
- References:
- physical memory allocated to a program
- From: mohi
- physical memory allocated to a program
- Prev by Date: Re: allocation of memory to a program
- Next by Date: Re: Boolean algebra error in 2.6.24?
- Previous by thread: physical memory allocated to a program
- Next by thread: Re: physical memory allocated to a program
- Index(es):
Relevant Pages
|