Questions tagged [swappiness]

12 questions
14
votes
7 answers

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 it for hibernation or it isn't a must?
6
votes
1 answer

Why do I get swapping even if I set vm.swappiness to 0?

I have a couple of CentOS 6.5 x64 servers with 64 GB RAM running lots of KVM VPS's. Some of these servers have no swap usage at all and some do. I've set swappiness to zero. However, some still swap even if they have lots of free GBs in RAM. The…
Horatiu
  • 124
5
votes
1 answer

Disadvantages of using a swap file/partition on an SSD, even when swappiness is set to 0

What are the disadvantages of using a swap file/partition on an SSD, even when swappiness is set to 0 I'm particularly interested in the /proc/sys/vm/swappiness=0 case. How much writes are still done, in practice, to that swap file, and does it have…
pjv
  • 205
3
votes
0 answers

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 usage on the system goes up to almost 100% busy,…
2
votes
2 answers

changing swappiness - permission denied

I use "echo 0 > /proc/sys/vm/swappiness" to set swappiness but even if I'm root i've got access denied. Do you know what should I do to unlock it ?
oneat
  • 3,401
1
vote
1 answer

minimize windows swap file usage

I know completely disabling the swapfile is not a good idea, so i'd like just to minimize its usage, so that the memory pages will be swapped only when the physical memory is completely full. I know this old registry setting to force the kernel in…
eadmaster
  • 1,356
1
vote
1 answer

How can I change the amount of data copied back into RAM when resuming in Linux?

Normally when I shut down my computer I hibernate. On the next boot I then resume. My problem is, that it seems that Linux just copies the least amount of data that is needed back into ram, because when I'm switching between applications there's a…
1
vote
0 answers

Linux Kernel configuring swapping parameters.

Linux may perform a swap out on the following occasions: By a kernel thread denoted as kswapd that is activated periodically whenever the number of free page frames falls below a predefined threshold. When a memory request to the buddy system…
1
vote
0 answers

How to control when and how much Ubuntu uses swap memory?

I am running Ubuntu 14.04 guest virtual box on Windows 7 host. Recently, following instructions here, I created a 7GB swap on my Ubuntu guest which has been running super-slow on 3.6GB RAM with no swap till then. I retained swappiness at 60. But…
GuSuku
  • 111
0
votes
1 answer

I want to increase the swappiness in my windows 7

as I have 60% RAM usage every time. I have already increased Virtual Memory (Increased Swap Size) but want to increase swappiness too. see my RAM usage:
TORRENTER
  • 61
  • 2
  • 4
0
votes
1 answer

vm.swappiness in /etc/sysctl.conf stopped working after updating to debain trixie/sid

Before the upgrade, I had Debian Bookworm with vm.swappiness=10 in my /etc/sysctl.conf, but after moving to trixie/sid cat /proc/sys/vm/swappiness started showing me 60 instead of 10. When I run sudo sysctl -p manually, /proc/sys/vm/swappiness gets…
Expie
  • 511
0
votes
1 answer

How to create and configure swap space on an SSD with a running, LUKS-encrypted Linux system?

I have a trusty old ThinkPad R60 with only 3 GB RAM (upgraded from 2 GB) with Linux Mint Debian Edition 4 running on it. I chose LMDE for stability and the desktop environment. The machine is one of my workhorses and, usually having multiple…
david
  • 347