1
vote
0answers
24 views

Should the CPU usage go up to 100% when swap happens on Linux

I had been running a demo system on Linux with the following kernel: 2.6.32-400.1.1.el5uek #1 SMP Mon Jun 25 20:25:08 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux And as soon as swap happens, the CPU ...
0
votes
0answers
18 views

What is the exact difference between the parameters (pgpgin, pswpin) and (pswpout, pgpgout) in /proc/vmstat?

Please note that this question is specific to linux only. And by swap space, I mean the dedicated swap partition. I did google a bit on this, and found these definitions: Paging refers to writing ...
0
votes
1answer
27 views

Why does my swap partition not appear in GParted (runnning Linux Mint in VMWare)?

I'm running Linux Mint 17 in VMWare. htop reports that I have a swap of size 8187MB: http://postimg.org/image/a54es37wd/ I'd like to increase this but GParted doesn't show any swap partition: ...
2
votes
1answer
27 views

Pick which swap partition to use for Suspend to Disk

Is there anyway in Linux to pick which swap partition to use for Suspend to Disk? I have a setup with 2 swap partitions, one on an SSD and one on a HDD. I want the swap partition on the HDD to be used ...
2
votes
2answers
142 views

Can I use Nand flash as a swap memory in Embedded Linux?

I have 128 MB of Ram in one of my products, which was sufficient when we released first version of the product. But now we added some extra features in it, So this much Ram may cause a problem of OOM. ...
1
vote
1answer
292 views

Swap performance testing

I understand the general concept of swap memory, but I need to somehow build a program that forces the use of swap memory for performance testing and I don't know where to even begin. Basically, I am ...
0
votes
0answers
153 views

What happens when zRam is overcommitted?

I can put whatever number I want when I set the size of a zRam block device. echo $A_BAJILLION_BYTES > /sys/block/zram0/disksize mkswap /dev/zram0 swapon -p 9001 /dev/zram0 How much is too much? ...
0
votes
1answer
140 views

Use swap only for hibernation

I have a swap partition /dev/sda1. It is 2GB in size and i only want to use it for hibernating. My system has 4GB of RAM. When I am low on RAM the kernel starts swapping and I can't even switch to a ...
1
vote
1answer
49 views

GRUB recreate a partition before booting a certain OS

I am having a problem of managing the swap areas on my hard drive. Side story: Due to having only a few GiBs free on my C:\ partition, Windows regularly shrinks the pagefile (even though it ...
0
votes
1answer
25 views

How to get data shown out of workspace or directly from application?

I'm a new user, because until this moment I used to handle with everything by myself. My problem is complex so I think I chose the right section. Because of some reason I had to use another web ...
0
votes
0answers
132 views

How to verify TRIM/discard on encrypted swap?

I am using an encrypted swap partition via ecryptfs-setup-swap on my Ubuntu 13.04 computer using a SSD. I have manually set up trim for my ext4 root partition (simply by adding the "discard" option ...
0
votes
1answer
241 views

I have a Linux swap partition but how do I set it up permanently?

I have a laptop with 2GB RAM and not the funds to buy more RAM. Ever since I installed 64-BIT Mint (MATE desktop), I am using more than 1GB RAM compared to between 170 - 500MB when I was in 32-BIT ...
0
votes
1answer
124 views

Grub rescue after windows install

Disaster, Please, Help ASAP. I had a dual boot on my pc with windows xp and lubuntu linux. Then recently i had some windows errors and decided to install windows 8 instead of xp. So after i ...
9
votes
1answer
343 views

increase desktop responsiveness on linux while swapping

All GNU/Linux distributions I tested so far have the problem that whenever the ram gets filled and the system begins swapping, the whole desktop and graphical user interface becomes unresponsive as ...
1
vote
5answers
4k views

Linux: don't create swap partition?

I was wondering since I heard that swap is used when you're out or RAM and and swapping too much is bad, since I have a lot of RAM ( 8GB ).... what if I dont create a swap partition? Also, do I need ...
0
votes
2answers
134 views

Swap is empty on Linux

How can I create or resize the swap memory on a linux device (Amazon Linux AMI). The problem came when I run a program and it gave me that errors: IOError: [Errno 28] No space left on device INFO ...
1
vote
5answers
1k views

Linux - Move partition from back of disk to the front for performance

Hard drives have faster performance at the beginning of the platter (see zone bit recording). According to an answer to "What is the purpose of multiple swap files?", you should put your swap ...
0
votes
1answer
96 views

Swap size LIMITED to RAM size

I've created a swap file of 4.3GB. Made it a swap file with mkswap and then mounted it at boot. Now... if I have done a free -m of my system I got: total used free ...
2
votes
1answer
516 views

Why does swapon take ages when enabeling a swap file?

I've created a swap file with dd if=/dev/zero of=swap.img bs=1024k count=4k mkswap swap.img swapon swap.img While this works, the swapon command takes ages (approx 10min) to finish. Enabling the ...
1
vote
2answers
982 views

How to activate swap on Linux? “swapon -a” doesn't seem to work?

My computer has quite some memory (6GB) which is enough for most of what I do. A while back I was messing with my swap, turning it on and off with sudo swapon -a and sudo swapoff -a. In then end I ...
1
vote
1answer
102 views

Swap and Root: same partition

I have 3 partitions, and I can't delete any of them. (Recovery, SYSTEM, C:), and I need to install GNU/Linux. How can I have swap and root on the same partition?
5
votes
2answers
2k views

Does the 4 GB RAM limit on 32-bit systems also affect the swap space?

It is well known that 32-bit systems can only handle 4 GB as maximum amount of RAM. Under Linux, does this limit also apply to swap partitions? If my RAM + swap exceeds 4 GB, will it be fully used? ...
2
votes
1answer
100 views

Linux swap robustness and/or mirroring - kernel 3.2

i have 8x 2TB disks in raid6 with mdadm and I decided to add a little "slack" partition to each drive just in case a replacement drive is not exactly the same size of the drives i now use. The purpose ...
0
votes
2answers
466 views

Is it possible to mount a swap partition into a directory?

I want to have a look inside the swap partition of an external linux drive. How can I mount it as a regular file system directory? I tried mounting it via mount -o loop,offset=35556433920 -t ...
4
votes
1answer
156 views

What happens when you try to hibernate but there is not enough swap available?

I have a Linux box with a swap partition of size RAM + x. Suppose more than x of the swap is already in use. Now I try to hibernate. Will the kernel randomly kill sleeping and/or not sleeping ...
3
votes
1answer
160 views

Where is terminal scroll back information stored (how does tmpfs work)?

While trying to test something unconnected, I launched an infinite loop on my terminator terminal emulator which printed a lot of data to STDOUT. After running it for a few minutes, I noticed that my ...
19
votes
2answers
1k views

Linux Mint doesn't boot after creating a swap partition

When I was creating my Linux hard drive, I skipped creating a swap partition, thinking that 4GB would be enough RAM. Now, I think I do need a swap partition. I asked some people on IRC how to do this, ...
2
votes
3answers
3k views

Swapon failed: Invalid argument on a Linux system with Btrfs filesystem

What's wrong with this sequence of operation, running on a Debian Squeeze system with a Btrfs filesystem? $ dd if=/dev/zero of=swapfile2 bs=1024 count=524288 $ sudo mkswap swapfile2 $ sudo chown ...
5
votes
4answers
3k views

What happens when linux OS out of RAM and no swap

What happens when linux OS is out of RAM and no swap is available?
0
votes
3answers
1k views

How can I find out the size of a swap partition?

What are the sizes of the following swap partitions? root@pc:~# swapon -s -v Filename Type Size Used Priority /dev/sda5 ...
0
votes
4answers
118 views

Partitioning a Linux based system

I am using Linux Mandriva OS. During installation my friend suggested 2GB for the swap partition and the remainder as the root partition. What is the use of providing a separate space for root? ...
3
votes
1answer
382 views

How do I prevent my computer from freezing when it starts to swap?

I work as a Java programmer, so I often have to run several programs at the same time that consume a lot of memory. When my memory is full and Linux starts swapping, my computer almost completely ...
1
vote
0answers
53 views

possibility of swap space has larger data in it than in my physical memory

Quoting the Deployment Guide from centos.org that is, Swap space in Linux is used when the amount of physical memory (RAM) is full. And that Wikipedia also said that, the term "swap" [is ...
0
votes
2answers
1k views

Why using swap file over a SMB/NFS mounted filesystem is not possible in Linux?

I'd like to use another machine's unused RAM as swapspace for my primary Linux installation. I was just curious about performance of network ramdisks compared to local (slow) mechanical hard disks. ...
4
votes
1answer
256 views

swap rule 1.5 *memory= swap still valid [duplicate]

Possible Duplicate: Why should the size of the swap partition be double of the RAM size? Does the rule of 1.5 *memory= swap still apply in these days where systems can have32 GB of memory. ...
5
votes
1answer
270 views

How can I use a remote machine for swap space?

I have two Linux boxes, one of which doesn't have much RAM or disk space. How would I go about setting up a swap file on the second machine for the first to use?
3
votes
2answers
327 views

More RAM than motherboard supports using ram disk + swap?

I want to put 6GB of RAM in a motherboard that supports 4. I heard something about using the excess RAM as a RAM disk and formatting that partition as SWAP, but that doesn't seen like it will work. I ...
1
vote
1answer
512 views

Mount /tmp on swap in Linux

I have seen this before ... the /tmp directory mounted on swap space. I am aware something similar can be done using tmpfs, but I don't think that what was being used. I too would like to mount /tmp ...
2
votes
1answer
2k views

controling tmpfs memory usage

Any way to limit the amount of RAM used by tmpfs wihtout limiting the amount of swap? Most documentations says that tmpfs' size option will limit the total size of the tmpfs partition and later on ...
2
votes
1answer
624 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
2k 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
634 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
144 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 ...
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 ...
2
votes
2answers
1k 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 ...
2
votes
2answers
3k 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
663 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
345 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 ...
3
votes
2answers
1k 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, ...