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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual Alloc

Status
Not open for further replies.

konsri

Programmer
Feb 1, 2002
13
0
0
US
There is a function in windows called VirtualAlloc. This will alloc the memory on the swap file and automatically do the swapping when necessary. Is there any substitute in UNIX platforms.

Thanks
Srikanth
 
Look into further info on VMM and the AIX paging space tips below

VMM overview

The Virtual Memory Manager (VMM) services memory requests from the system
and its applications.Virtual-memory segments are partitioned in 4096 byte
units called pages; each page is either located in physical memory (RAM) or
stored on disk in paging space until it is needed. AIX uses virtual memory
in order to address more memory than is physically available in the system.
The management of memory pages in RAM or on disk in paging space is
handled by the VMM.



 
I think you want an early allocation model "just to be sure". That scheme is available on AIX 4.3.3. Simply do
[tt]
export PSALLOC=EARLY
/your/command/here
[/tt]

I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top