Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My motherboard (HP Pavilion s3000y) only supports 2GB of RAM max. Which means that I can only allocate 1GB for running VMs, and applications that use a lot of RAM are slow (such as games and Visual Studio).

Is it possible to use a storage disk such as a USB drive as RAM?

Or if not, can VirtualBox use a drive as RAM for VMs?

share|improve this question
5  
No and no. You need to disable everything you can (services, prefetch, indexing, etc.) to free up RAM. Using XP could make your life easier. –  mtone Jan 1 '12 at 6:23
3  
@kobaltz RAM disks take free memory to use as a drive, which is the opposite of what OP is asking. I don't think a "disk RAM" (as opposed to a "RAM disk") utility is possible. And to add about why virtualbox doesn't do it: virtualization is a sort of gateway to your system, not a emulator. –  mtone Jan 1 '12 at 6:40
3  
Should probably think about getting another motherboard. . . –  surfasb Jan 1 '12 at 11:02
    
Honestly Nate, this system is NOT made for virtualization, more as a kitchen computer, if you need this for work or study you're better of building or buying a 400$ 'normal' pc. Otherwise, I'd recommend dualbooting instead of virtualization! and @surfasb: Getting a different motherboard is not really the option on a hp slimline –  HTDutchy Jan 1 '12 at 11:32
    
@s4uadmin: That brings up a good point. That powersupply would not hold up even if you did plug in a more powerful motherboard. –  surfasb Jan 1 '12 at 11:40

7 Answers 7

up vote 20 down vote accepted

Windows Vista and 7 support ReadyBoost which will use a fast USB drive as a cache before hitting the page file. This can help increase responsiveness of paging operations because the flash drive is much faster at 4K random read/writes than the page file on the HDD is.

Better yet, get a SSD drive. A pagefile on an SSD is really fast and will improving paging operation speeds fairly significantly, but is in no way a replacement for more RAM.

BTW, have you attempted to install larger RAM than it the motherboard suggests that it can use? It's possible that if you upgrade to the latest BIOS revision that you might be able to use larger chips, such as 2x2GB or 4x1GB (not sure how many RAM slots you have). It shouldn't hurt to at least try a larger chip if you have one available.

Also, you should reduce the RAM allocation to your virtual machine to as little as is needed to run the VM. An XP guest can run in as little as 256MB or 384MB of RAM depending on what you're using it for.

share|improve this answer
2  
Isn't it well known that ReadyBoost is not at all helpful on a computer with 2GB or more of RAM? And, aren't SSDs expensive enough that he could just about buy a new computer with 4GB of RAM for not much more, which would be much better overall? –  Graphth Jan 2 '12 at 3:02
1  
Apparently, no - somebody didn't know and tried. Guess what, it did help. –  MSalters Jan 2 '12 at 8:09

The reason that applications that use a lot of memory make the system slow is because that forces the system to use storage devices. What you are asking to do is what the system is already doing and the reason you are not happy. Unfortunately, the only solutions are to change your workload so it requires less memory or to add more memory.

share|improve this answer

Even if you were to do this, it would not be recommended. USB drives/Hard Drives are extremely slow. Think about your USB Drive. It will transfer at a MAX of 60MBps. The ram in your computer based on your other question will run anywhere from 4200MBps to 5333MBps!

That is why when your computer is low on memory that it will use your Pagefile to allocate memory as Virtual Memory. Your hard drive light will go crazy and your computer will slow down greatly. It ran out of physical memory and in efforts to not crash, it will use your hard drive as virtual memory. Just think of how slow the computer is at that point and just think how horrible your VM will run if it is always using this RamDisk (see below) or virtual memory.

enter image description here

share|improve this answer

Yes, the name is "virtual memory" or "swapping"; it has been in regular use on personal computers for a very long time (first found in the 1960s, and ever since 1990s all mainstream OSes have them and turned them on by default). You might be able to improve performance marginally by tweaking the size of virtual memory (how to for vista), although it probablyy wouldn't improve performance by much.

In general a virtual memory only improve performance in situations where your computer will not be able to handle the memory load otherwise, e.g. in situation where your system starts to go awry because they get OOM-killed by the OS.

share|improve this answer

no. Storage devices like USB drives can help OS to store / fetch data from it to RAM. it just helps to do these type of paging / swapping operations.

share|improve this answer

You can use an alternate memory manager: http://www.techsupportalert.com/best-free-memory-optimizer.htm. A memory manager can compress the used ram and free up a bit of ram. In Linux there is compcache and/or zram. However I don't know how that works on Windows. It could be that the alternate memory manager doesn't use this technology of compression. This program here uses compression: http://www.wincarepro.com/index.htm. You can use compcache to create a ram disk for Windows (http://www.vflare.org/2009/03/ram-is-not-enough-memory-compression.html).

Edit: Here is another program: http://www.windows7download.com/win7-memory-improve-master/smdggjpk.html but it looks exactly the same like this one http://www.wincarepro.com? I don't know if this is serious?

share|improve this answer

First, are you SURE you're mobo is limited to 2GB?! I thought I saw a Pavilion the other day that used DDR2 or even DDR3 style RAM. If your system can use DDR2 or better then that means it's probably a good possibility that you can populate the only 2 RAM slots with larger RAM sticks. You may be able to use two 2GB sticks thus allowing you to upgrade to 4GB.

But then there's the BIOS. And I just can't believe HP doesn't have a BIOS update you can flash. (And it would be a huge clue if you look on HP's web site for your specific model.) But even without a BIOS update, you should at least be able to see a little more than 3Gig of RAM. You'll just need to flash your BIOS in order to access the entire 4Gig. And again, assuming you can even install DDR2 or better.

But if you're stuck with DDR1 then forget it. I too would probably elect to dual-boot instead of using a VM. I know it sucks when trying to share data between OS's and especially when trying out new distros. But then again, almost any Linux distro can natively deal with NTFS partitions too (hint, hint).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.