Re: physical storage on disk
- From: "William" <port@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 4 Apr 2007 07:11:15 +0900
I know I can allocate physical memory(RAM) by AWE. That is VirtualAlloc(,,MEM_RESERVE | MEM_PHYSICAL, PAGE_READWRITE,). It allows my application to get RAM that is never swapped by the operating system to or from disk.
The problem is that I need huge memory and I hope my app can run on low memory configuration PC. I just tried to create 4000*30000, 256color bitmap by MSPaint.exe on a 256MB RAM Windows2000 while monitoring the system memory(physical and virtual memory) status by using GlobalMemoryStatus().
When I change the bitmap size from 4000*4000 to 4000*30000, physical memory goes down to almost zero at first, then takes a long long time(60s) to swaping it to pagefile and physical memory goes up to about 10MB.
As I can tolerate a low speed to access disk(pagefile) but can not tolerate a long waiting time, so I hope I can allocate directly virtual memory(disk) as my DIB bitmap buffer by some functions. I don't know how.
William
.
- Follow-Ups:
- Re: physical storage on disk
- From: Joseph M . Newcomer
- Re: physical storage on disk
- From: Scott McPhillips [MVP]
- Re: physical storage on disk
- References:
- physical storage on disk
- From: William
- Re: physical storage on disk
- From: Joseph M . Newcomer
- physical storage on disk
- Prev by Date: Re: Your advice about WorkerThreads vs UI Threads
- Next by Date: Re: Visual C++ Book
- Previous by thread: Re: physical storage on disk
- Next by thread: Re: physical storage on disk
- Index(es):
Relevant Pages
|