I'll explain a little bit. I have Win7 and ubuntu 8.8 loaded onto my lappy, and I have an additional ubuntu 8.8 loaded onto a usb stick, which I mostly use for a safe testing environment. I can swap back and forth between Win7 and ubuntu (loaded onto the HDD's) all day long with no problems; but not so with the usb stick.
Basically, I'll be running a persistent environment on the usb key and be doing whatever. Then I decide that everything is fine and want to take a break/play a game under windows. Rebooting initially is fine, windows loads no problem, but if I try and access my drives too quickly after landing on the windows desktop, the system will hang. It took me a while to figure out why it only happens when going from the usb > windows; right now I'm going with the theory that the live key is using the system swap, and is not releasing it quickly when I go back to windows. I can use windows like normal if I leave it sitting on the desktop and do NOTHING for about 4 minutes, during which time the HDD is spinning like crazy, I'm assuming it is rebuilding the swap/cache/whatevers.
So, how do I force the system (under either environment) to clear the cache without waiting? This might sound dumb but it's just a patience issue. I'm also aware I could just force the live key to not use the swap file AT ALL, but this can make work on the key quite a bit slower.
-
If you have no clue just post the output of the following command:Code:uname -a
If I'm right, removing the stick before booting Windows should solve your problem.
Code:sync
*) Except for 6.06 instead of 6.04, but that doesn't matter here.
Live key not releasing swap (sort of)
Discussion in 'Linux Compatibility and Software' started by hakira, Nov 1, 2010.