How can I get memory allocated on PHYSICAL RAM and garanteed not on virtual ram.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: FU.U.NA (drawtree_at_hotmail.com)
Date: 03/30/04


Date: 30 Mar 2004 00:44:55 -0800

Hi.

I simply want to allocate large size of memory (about 300~400 MB) on
just physical RAM (not on disc virtual ram).
I'm finding the garanteed method of allocating memory on PHYSICAL RAM.

DECRIPTION OF MY SITUATION:

I'm testing file copying with large memory cache.
As I know, disc reading and writing shows better performance when do
that at once. (sequal reading & writing)
And I think Windows Explorer copy routine does not use all memory that
they can use.
So I want to make my own routine that copying large file with large
cache.
(I have many large files have to be copied often between drives.)

To do that, I need large and fast speed cache to copy large byte
chunks.
And the cache never be on the virtual ram.

I don't know well about low level working of .NET FW and windows API.
So I want to find garanteed method of allocating memory on PHYSICAL
RAM.

Or, if you know about better way about fast copying of large file,
that's good also.

PS:
This is just test and private work, not a business job. Please don't
discuss about efficiency.



Relevant Pages

  • Hmm... my mistake...
    ... The 'memory' I said was the 'buffer'. ... // But this always have to be placed on physical ram. ... > addition, unless you are doing pretty low level stuff, RAM management is ... >> I'm testing file copying with large memory cache. ...
    (microsoft.public.dotnet.framework)
  • RE: Follow-up on ReadFileScatter problem on Win 2k3
    ... you get this problem when ReadFileScatter a 64kb file. ... seems you are allocating a 4GB cache for your data. ... ERROR_WORKING_SET_QUOTA Is probably due to the process exceeding its memory ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [PATCH v2 2/2] SLUB: Mark merged slab caches in /proc/slabinfo
    ... had a problem where we were wasting huge amounts of memory because we ... were allocating large numbers of a the ext4_group_info structure, ... That's not cache merging and it wasn't with slub. ... and then found that the said slab allocator helpfully merged ...
    (Linux-Kernel)
  • Re: Doubts about free()
    ... allocating space physically in the RAM. ... In a virtual memory system, it may or may not actually be allocated ... it might never be allocated physical RAM. ...
    (comp.lang.c)
  • Re: Memory usage/Fragmentation
    ... > memory since it s dealing with a lot of images. ... > to load next image I remove first ones from the cache. ... Not allocating that much memory in one big chunk. ...
    (comp.lang.cpp)