Swap space is a virtual memory of RAM. It is used when the amount of RAM is full. Swap space can be a dedicated swap partition, a swap file, or a combination of swap partitions and swap files.

learn more… | top users | synonyms

18
votes
4answers
18k views

Why OS X use swap when there is lots of “inactive memory”?

I am using OS X from few months (Lion and now Mountain Lion). I have 8 GB on my mini and almost daily now it get close to that. On Windows 7 machine with 8 GB I never had that kind of problem. Anyway, ...
2
votes
1answer
758 views

My Ubuntu laptop swap cache to disk freeze my system

My laptop is Thinkpad x220, 4G ram, harddisk is 7200rpm, installed with Ubuntu 12.04, using Unity desktop. When I open eclipse and chrome, they eat about 2G memory. Here is the free -m result: ...
2
votes
2answers
1k views

Linux zram (compcache) + SwapCached

I have a question about zram + swapcached. I know that zram is a compressed swap in memory, but linux use it's own internal SwapCached area to store recent swap pages also in memory. I have a 512MB ...
0
votes
2answers
3k views

How much swap space needed for 4GB RAM [duplicate]

Possible Duplicate: Swap partition size for 4GB RAM For 4GB RAM how much swap space needed ? If I made 8GB as swap space, weather my system become slow ? If so then what is the reason for ...
0
votes
1answer
894 views

How to see whats eating my swap space on linux

I have a unique situation here where a Java app I wrote is choking when it forks and creates some child processes. According to the error logs I'm seeing there is a java.lang.UNIXProcess method ...
1
vote
1answer
588 views

Replace 60GB solid state drive with a higher capacity one [duplicate]

Possible Duplicate: Move smaller hard drive to partition on a larger hard drive restore a smaller hard drive 320GB image to a larger harddrive 1TB I have a 60 GB solid state hard drive on ...
-1
votes
1answer
125 views

RamFS over sshFS as swapspace

Guys I have to computers at office, boxA - 256mb RD-ram with decent cpu boxB - 1.5 gigs of ram with terrible cpu Network cards are 10/100 I plan to sshfs into boxB and mount a ramfs of boxB as ...
1
vote
1answer
147 views

Mount physical disk with swap included

I'm using VirtualBox and a virtual hard disk, formatted as a swap partition, for booting a virtual machine with a USB key. The guest machine is Ubuntu 10.04. I realized that there's no swap partition ...
0
votes
1answer
3k views

Windows 7 Hard fault / Page fault and memory bottleneck

Windows 7 resmon displays 0 hard faults. But perfmon shows pagefault around 60 and perfmon /report tells me my system swaps actively. AFAIK not every page fault is hard fault: page could be stored ...
4
votes
4answers
1k views

'cache swap' filesystem for SSD/HDD combo?

As we all know, Solid State Drives (SSD) are expensive ($/Gb) but they are quick to access. I'm wondering if there exists a sort of software-kernel-level 'cache swap' filesystem technology; the idea ...
5
votes
1answer
5k views

Disable Mac's dynamic_pager?

I read this blog post about the memory management in Mac OS X: http://workstuff.tumblr.com/post/20464780085/something-is-deeply-broken-in-os-x-memory-management I would like your opinion on the ...
3
votes
2answers
2k views

How to use compcache for Linux 3.2 (Debian Wheezy)

How do I set up and configure compcache for Debian Wheezy (3.2 kernel). As far as I can understand compcache is now in the kernel and is not to be found in the debian repo either. Compcache should be ...
9
votes
2answers
355 views

How to “swap in” again memory from page file to physical memory in Windows at once (like linux swap-off)

Is there a way to swap back in (to put back all the memory data that was put into the page file (or swap, whatever you prefer)) memory on a windows PC? On linux, one can easily do this with the ...
3
votes
2answers
4k views

Using SSD as Linux RAM

I have a very very fast SSD OCZ Revo. I want to use a lot of RAM but I'm limited to 4GB RAM for the moment. If I use my SSD OCZ Revo as swap (the whole of it, 160GB), does that mean I have effectively ...
2
votes
4answers
785 views

Force swapping of certain stopped processes

When I'm playing minecraft, my computer often has to swap because Google Chrome takes much RAM, too. So, I'd like to manually swap out Google Chrome. I know that I can temporarily stop all its ...
0
votes
2answers
385 views

Swap implication in Linux and way to increase it

I used top command to print this on Linux box: [root@localhost ~]# top top - 23:38:38 up 361 days, 12:16, 2 users, load average: 0.09, 0.06, 0.01 Tasks: 129 total, 2 running, 126 sleeping, 1 ...
1
vote
1answer
2k views

Would upgrading memory from 4GB to 8GB on my laptop solve swapping issues?

I have a laptop with 4GB of memory with Windows 7 on it and I often experience with Eclipse that it is swapped out to disk. On the net they usually write 4GB of RAM is more than enough for average ...
4
votes
2answers
2k views

Low RAM in Debian/Ubuntu causes complete hang with disk thrashing

I've been having this severe performance issue, both in Ubuntu 11.10, and Debian Wheezy: If one process uses up a great deal of RAM (say, 3700 MB out of 3900 MB), the system quickly becomes unusable, ...
1
vote
0answers
325 views

Can't move OS X swap file to another folder, it keeps being recreated

So I followed these instructions to the letter ---> Moving the swapfiles to a dedicated partition in Snow Leopard But for some reason, the swap files keep being regenerated in the same folder. I've ...
1
vote
1answer
184 views

What does the messsage "Adding *k swap on …' mean?

I have the following message in the syslog on some machines: Adding 8385920k swap on /dev/sda3. Priority:-112957 extents:1 across:8385920k What does it mean? Is it a problem? And why is this ...
2
votes
3answers
115 views

Need more swap space - out of disk slots

A server I am using was setup incorrectly with only 1G of swap space. There are no more hard disk physical slots. There is content on the existing disks. I would like to resize the partition, but ...
1
vote
1answer
501 views

Do Linux swap partitions need to be cloned?

I'm in the process of cloning my hard disk in order to test some unstable software. One of the partitions is Linux-swap. From my understanding, it can be used by the os as additional ram. So this ...
3
votes
1answer
484 views

OS X “Swap used”

I'm a bit confused here, I'm trying to open a tab in Chrome and sometimes it takes few seconds while freezing my computer significantly so that I can't use even to bring Dock menu... I even closed ...
4
votes
3answers
4k views

Reserve RAM for cache and buffer

I usually run many programs and virtual machines on my desktop. The CPU isn't the bottleneck but the memory. (Buying more memory isn't a solution because it's not my own computer.) I started ...
5
votes
1answer
157 views

Prevent important OS X process being swapped out, without code change?

I want hotkey-based utilities like Quicksilver or Zooom to respond immediately. But if they have been idle for a while, they (I guess) get swapped out, and respond slowly, sometimes not even ...
2
votes
2answers
417 views

How to make a good guess for the swap partition size when using tmpfs?

I have an SSD, so space is a scarce resource. I'd like to use up as little as possible for swap. In fact, I have spent the last year completely without a swap partition (the computer has 6 GB RAM). ...
1
vote
1answer
288 views

What type of data is stored in the swap partition?

When a page fault occurs, the system must fetch the page from disk. Does this mean that there is a page table stored on the hard drive for every running process (to fetch the page from)? If yes, ...
1
vote
1answer
495 views

mount point for swap not needed

Why do we say that swap partition does not need a mount point? is it because swap is basically for virtual memory access and we don't need to view or access it so there is no need to mount it? or is ...
0
votes
3answers
205 views

What is better to use for big swap as an extension of RAM: SSD or 15k HDD (Cheetah)?

I need to hugely extend RAM in the platform I can't do it. As a temporary solution I want to use swap for it. What is better to use for swap storage - an SSD or 15k HDD like Cheetah? I understand that ...
0
votes
2answers
495 views

I've two swap partitions, how can i delete one?

I've installed Ubuntu on my computer but I did a mistake during the installation and it created two swap's. In fact I had tree partitions (system, home, swap) but the installator crashed so I ...
0
votes
2answers
555 views

Debian server seems to use more and more swap

I've got a problem with my debian server. It has 4GB of ram and 1GB swap. Swap is around 95% full and ram still has 80% left. I'm running lighttpd (max 40 users at the same time) and some gameservers ...
1
vote
2answers
2k views

Moving Swapfile in Mac OS X Lion

I had previously consulted this thread when using snow leopard to move all swap to an SSD: Moving the swapfiles to a dedicated partition in Snow Leopard The information appears to be out of date at ...
2
votes
1answer
2k views

How can I get Linux to not thrash and just kill processes?

Firefox (and flash) tends to chew up memory at random times, causing my computer to thrash, and it drives me crazy waiting for the oom_killer to kick in and kill processes,[1] while I can't do ...
1
vote
1answer
62 views

Additional swap created on a new partition gets removed on reboot

I have created a new swap volume using logical volume management tool on RHEL. Suppose the volume is /dev/rootvg/swap2 I did mkswamp /dev/rootvg/swap2 and then swapon /dev/rootvg/swap2 when listing ...
0
votes
1answer
901 views

How to remove swap partitions from RAID 1 Array on Ubuntu?

Can anyone point in the right direction on how to remove SWAP out of a RAID1 configuration on Ubuntu 10.04 server? According to the Ubuntu Advanced installation guide, here, it said to add swap to the ...
8
votes
1answer
483 views

Can two Linux partitions use the same swap space?

I have Ubuntu 10.04 and Windows 7 installed on my machine, due to some reasons I need to install one more copy of Ubuntu.. Is it possible that the new Ubuntu uses the same swap space used by previous ...
0
votes
1answer
397 views

How can I restore a partition to its former NTFS file system?

While installing Ubuntu 11.04 I was asked to choose a swap area for better performances, so I chose my 1T hard drive(which had only one partition). The problem is that I did not know it will use the ...
1
vote
1answer
883 views

Linux Virtual Memory/Swap isn't being used

I think my virtual memory is not configured correctly on my MintLinux machine. I opened up a new IDE, IntelliJ IDEA, and my whole system appeared to freeze. I tried to TTL to the console but that did ...
3
votes
2answers
826 views

Should I symlink my /private/var/vm dir to another volume in OS X Lion?

So I just installed an SSD in my MBP and have been a bit concerned about running out of disk space. I noticed that /private/var/vm holds an 8.6 gb sleepimage file as well as swap files. I'd be much ...
1
vote
1answer
1k views

What is the difference between swap entries in fstab?

I've been looking around and seen two different things ways to declare swap in fstab. I've seen something like the line below: UUID=UUID-HERE none swap sw 0 0 and UUID=UUID-HERE none swap swap 0 ...
1
vote
1answer
241 views

Linux swap position on hdd

As far as I know hard drives are faster at the beginning of the disk. If this is true, why does Ubuntu put the swap partition to the back of the disk by default?
1
vote
3answers
679 views

Will increasing swap partition size increase the memory that can be used by a program?

I have a program that requires a lot of memory. So much that the malloc fails as the system goes out of memory. I don't care if the overhead for swapping pages in and out of the disk is too high - I ...
0
votes
1answer
457 views

Installing Windows 7 onto a Raid 5 setup without an install disk. Can it be done?

I am upgrading my motherboard from a crappy dell prefab to a Foxconn Inferno Katana. I am also upgrading my ram from crappy stock dell ram to G.Skill. I have decided to set up a raid system, now ...
5
votes
1answer
89 views

Do locked pages get shredded from disk after resuming from suspend-to-disk?

Locked pages are sometimes used to store crypto keys like for Luks or for encfs and other sensitive things. But when doing hibernate (without swap drive encryption) they get stored to disk ...
0
votes
2answers
4k views

Windows 7 Virtual Memory Optimization - ReadyBoost vs. Flash Swap vs. RAM Disk?

At first i thought ReadyBoost means having swap file allocated to flash drive which is wrong because ReadyBoost serves as additional storage for swap file or should i say it mirrors swap file on hard ...
1
vote
4answers
278 views

SSDNow100VS2 Page File (Windows 7) [duplicate]

Possible Duplicates: How to control RAM / swap usage Should I keep my swap file on an SSD drive? I just put an SSDNow100VS2 into my laptop, with Windows 7 Ultimate 64, and 4GB of ram. I'm ...
1
vote
3answers
729 views

Memory and SWAP in Ubuntu

When I go to the system monitor in Ubuntu, about 75% of the Memory is used and 45% of Swap is used. Why is the Swap used even when Memory is available? Doesn't Linux move data from Swap to Memory?
45
votes
5answers
29k views

How to disable Mac OS X from using swap when there still is “Inactive” memory?

A common phenomena in my day to day usage (and several other's according to various posts throughout the internet) of OS X, the system seems to become slow whenever there is no more "Free" memory ...
-3
votes
3answers
4k views

Windows 7 - swap file on a USB disk? [duplicate]

Possible Duplicate: How to move the page file to another physical disk location Windows 7 I was given temporarily a PC, running Windows 7 Ultimate. The problem is it's hard drive is full, ...
7
votes
3answers
10k views

How can I find out processes are using swap space?

I have a linux server top reports about 9GB of swap used: But I cannot figure where's it use swap, some google results said that top - O commad follow by p will show swap usage by process. But as ...