Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does Solaris 2.6 or 8 reclaim heap

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

Does Solaris 2.6 or 8 reclaim heap memory from a process without using any specific system calls?
If it does, would anyone know what the algorithm is?

 
Dear Andrew,

your question is a bit unclear.
Do you mean if malloc(3C)/free(3C) combination does the
same as mmap(2)/unmap(2) in freeing memory from the
process' address space?

Anyway plain free(3C) according to the man:
> After free() is executed, this space is made available
> for further allocation by the application, though not
> returned to the system. Memory is returned to the system
> only upon termination of the application.

Anyway if your looking in general on how Solaris deals with
memory then is good start.

mentions a couple of things about the evolution of memory
allocation (the current method of Solaris 8 is known as
"cyclical page cache" in contrast to the "least recently
used" scheme and its derivatives for earlier versions).

Anyway it would be better if you rephrased the question.

Regards.
 
Hi,

I was thinking in terms of memory release via free. Thanks, you've answered my question.

cheers,
Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top