Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Can Windows and Ubuntu share a single swap partition? Ask Question. Asked 9 years, 7 months ago. Active 4 years, 3 months ago. Viewed 11k times. Improve this question. Pranit Bauva Pranit Bauva 1, 2 2 gold badges 13 13 silver badges 23 23 bronze badges. Microsoft says don't do it: blogs. Add a comment. Active Oldest Votes. It's possible, but probably only as an experiment: Note: This is a what-if answer and is not recommended , especially if you are using hibernate from Ubuntu!
Have a shutdown script to swapoff and reformat the partition as ntfs. Alternative still not recommended option: You can create a swap file by following this guide on the NTFS partition, provided the NTFS partition is large enough for both swap files.
Improve this answer. Community Bot 1. Or use a file as swap on that partition. Perhaps you could edit my answer to add that although this is another option provided the ntfs partition is large enough for both swap files its not recommended either for the reasons we discussed?
This method was used as far back as As of , Windows 7 is reported to work with the swapfs driver. Show 1 more comment.
Wizek Wizek 3 3 bronze badges. Please write a full answer, instead of just linking external websites. With just 2GB of memory, you can imagine that filling up pretty quickly with a few open browser tabs.
The swap partition allows you to keep them all open as the memory overflows. But then a bottleneck appears because of the hard drive's rpm speed. Since the hard drive is so slow and the system constantly wants to access the swap partition, the netbook becomes extremely sluggish. The machine is slow enough to be unusable unless you close everything to free up some memory. The set swappiness doesn't guarantee that everything in the swap partition will move back over once space becomes available in RAM.
Instead, much may stay in the swap partition, causing the netbook to continue to be sluggish. So you're left rebooting your computer to start from a clean slate, which takes a while because the system has to remove everything from the swap partition before shutting down. If you do decide to forego a swap partition, know the risks. When your computer needs more RAM than is available, the interface can lock up. You risk having to force quit your computer and lose all the data you were working on.
In such cases, you may wish you had a swap partition around, even if it were only used that once. This depends on whether you find yourself running out of storage space often. Would you notice if you had 4GB less storage space available because you devoted that amount to swap? Here are some recommendations for when you may want to have a swap partition and how large to make it. Like many aspects of the Linux desktop, your computer's swappiness is stored in a text file.
When you open the file, you will see a single number indicating your current swappiness. You can edit this file using any text editor of your choice, as long as you have root permissions. There is also a command line option that works regardless of which text editor you have installed. Simply enter:. You can enter any digit ranging from 0 to The value indicates when you want Linux to start actively moving processes from the memory to the swap partition.
You can check whether the change was successful by reopening that text file. This typically happens when the system is depleted of actual RAM. If this is happening to you, consider installing more RAM. On the other hand, if you have oodles of RAM but are desperate for storage space, you can choose to shrink the size of your page file. Below are instructions for changing your page file, and how big it should be.
To change the size of your page file, navigate to the 'System' section of the Windows Control Panel. Open 'Advanced System Settings' and navigate to the 'Advanced' tab. Click the 'Settings' button under the 'Performance' section to open another window.
0コメント