1

im on windows 7 64 bit, with 4gb of memory

whenever i copy or deal with a big ammount of data, windows swaps out everything from memory to the virtual memory swapfile, to make room to data cache.

the problem is: i dont really need caching of this data im copying, its being copied only once, cacheing this data won't help me. on the other hand, swapping out the programs will give me a big lag time whenever i want to use those open programs again.

what i want: restrict data cache to a certain ammount, lets say 1gb, or reserve a certain ammount of memory, lets say 2gb, exclusively for running programs memory.

my swap file is on a separate partition, but i still have problems with swapping time.

3 Answers 3

3

Setting the pagefile to 0 GB does not prevent Windows from paging. Most paging does not involve the pagefile at all and this will continue, even with no pagefile. Paging is as normal and necessary in Windows as breathing is to you and I. Almost all disk IO is done with paging. Disabling the pagefile unbalances the memory management system and generally results in more paging, not less.

Don't confuse the pagefile and cache, they are used for very different purposes.

2

I kind of worked around this problem by using an utility called TeraCopy, that replaces windows copy/move. It have an option to disable write cache, so Windows don't start swapping out running programs memory to give space to cache.

-4

I generally make my swap file equal to 0gb, this way windows is forced to use all of ram, always, and never swap

even when you have 2gb being used, with cache turned on, windows will still write to disk if data in ram is old by a certain amount, so it slows down later

see if making cache set to 0gb works for you it doesn't work for everyone

1
  • well, i usually have photoshop, lightroom, corel, and lots of browsers open.. dont think i could do that with only 4gb. maybe i'll get more memory soon
    – bortao
    Mar 9, 2010 at 1:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .