What to do with a ton of extra memory?

20

2

I have 8gigs of RAM in this machine. I never really use more than say 4gigs (includes my virtual machines I use for dev testing).

What can I do with this extra space to best improve system performance?

Some guesses:

  • Improve my disk performance by turning off the pagefile?
  • Improve my disk performance by increasing the disk cache amount?
  • Move temporary folders to a ramdisk?
  • Somehow configure SuperFetch to cache more? (currently 1.5gigs)
  • Any other suggestions??

This is on 64-bit Windows 7.

Nick Whaley

Posted 2009-08-25T21:46:53.520

Reputation: 622

Remember you could run another vm or give your current vm more memory. – Troggy – 2009-08-25T22:21:21.970

Answers

3

Let Windows manage the memory. It does a much better job than you can, even if you understand how it works, which you probably don't. A RAMDISK is almost always a poor use of memory. Disabling the pagefile will more often than not impair performance.

user43161

Posted 2009-08-25T21:46:53.520

Reputation: 250

1I used to disagree with this advice, until I took a class on operating systems and computer architecture. Virtual memory (i.e. paging, which happens to include the hard drive) is something essential to the proper running of nearly every modern consumer operating system. Even though the hard drive is slower than main memory, it still forms an essential portion of the virtual memory subsystem. – Mike Bailey – 2012-06-11T23:47:51.257

After all these years, this has turned out to be the most correct answer. – Nick Whaley – 2012-12-05T16:33:46.363

23

Don't disable your page file. See here.

John Fouhy

Posted 2009-08-25T21:46:53.520

Reputation: 2 995

@Evgeny: The performance gain of disabling the pagefile is minimal at best, and in most cases completely unnoticeable, unless you're doing some really extreme I/O-bound work. There is simply no reason to disable it. Sure, there is less disk activity, but have you actually noticed a performance gain? I didn't when I tried it. – Sasha Chedygov – 2010-07-03T06:49:31.760

This is the kind of gold I post here for. – Nick Whaley – 2009-08-25T22:34:26.747

2I disagree. If you're sure that you always have more than enough RAM for everything you run (including program code, data and disk cache) then having a pagefile cannot possibly increase performance. It can only reduce performance, because Windows will preemptively write to the pagefile even though it won't be needed.

I have 8GB RAM myself and like the OP, I rarely use more than 3-4GB of it. I see less disk activity with the pagefile disabled. – EMP – 2009-08-26T05:29:25.130

Interesting article, but the reason it gives is rather vague - "Windows tends not to function as reliably". I'd be interested in a bit more detail than that, so I've actually opened a separate question for it: http://superuser.com/questions/30345/any-reason-not-to-disable-the-windows-pagefile-given-enough-physical-ram

– EMP – 2009-08-26T23:35:53.787

@EMP: There is only a limited amount given to drivers, called the non-paged and paged pool memory sections. A page file is necessary for when the paged section gets full, as a gamer I have seen a game complain about paged pool memory just because I had my page file disabled on a 8 GB system. So... They are necessary, they prevent paged pool depletion and actually do speed up your system.

– Tamara Wijsman – 2011-10-24T16:30:55.813

@EMP What? Because empirically for you it seemed to be okay? There's a reason for page files, and it's so whole programs don't NEED to be stored in direct RAM, there may be some speed up if all programs never use swap space but even in most cases the system is optimized to use said swap space. By your logic, we could effectively run Win95 on nothing but L2 and L3 Cache.... – Jeff Langemeier – 2012-06-11T23:05:18.633

For everyone wondering about why you shouldn't disable the page file, learn about virtual memory. That's how your OS manages "memory". And by memory I don't mean just what fits in your RAM. – Mike Bailey – 2012-06-11T23:49:05.400

6

Try putting portable Firefox on a ramdisk and enjoy a dramatic speed increase. Dataram is free and saves its contents to hard disk when you shut down the computer (and optionally at regular intervals).

CGA

Posted 2009-08-25T21:46:53.520

Reputation: 3 767

I tried that and unfortunately I didn't notice much of a speed increase. It started up a bit faster, but that's about it. :( – Sasha Chedygov – 2010-07-03T05:46:39.570

firefox already keeps a cache on the RAM – Uğur Gümüşhan – 2012-06-11T22:50:36.267

5

If you want, you can try loading some of your most-used programs in a RAM Disk to make them load faster. I tend to just leave it alone and let Superfetch do it's job. When I leave my computer on for a couple days it's not unusual to see it cache 6GB of programs and files.

Dan Walker

Posted 2009-08-25T21:46:53.520

Reputation: 8 869

Oh, my :) ! 6 GB of programs? – alex – 2009-08-26T08:32:29.923

4

move the browser cache to RAM disk.

disabling virtual memory is certainly an option, but may have a negative impact on certain programs that explicitly require paging, but then, it's only a few mouse clicks away to turn back on :)

Molly7244

Posted 2009-08-25T21:46:53.520

Reputation:

2

These days the "slowness" of a PC are most likely caused by your harddisk. You should try to use your ram to tackle this weakness.

Create a big ram disk partition (~3GB), set your frequently used programs to use that partition as temporary drive. You'll be amazed by how fast your programs will become.

deddebme

Posted 2009-08-25T21:46:53.520

Reputation: 3 434

0

Open all your favorite application on window startup. then you can reach them from taskbar. Play many games at cone. Never close them. Just use ALT+TAB when you get bored.

Don't disable windows page file because when you are saving from disk, you are adding more traffic to the ram bandwidth. That would create a bottleneck on the bandwidth when you are using the programs which matter more.

Uğur Gümüşhan

Posted 2009-08-25T21:46:53.520

Reputation: 1 216