background preloader

Swappiness

Facebook Twitter

SwapFaq. Introduction This FAQ is aimed at Linux novices. People always wonder how much swap they should create at install time, or after installing they may think, "have I made a large enough swap? Should I reinstall with a larger swap? " This FAQ will tell you how much swap you need and how to add more swap after installation.

You will be given very simple answers (to prevent losing too much time reading this FAQ) and some explanations that may help you form your own opinion. What is swap? Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Why do I need swap? Memory consuming programs Sometimes, a large program (like LibreOffice, Neverwinter Nights, or a video editor) make the entire system need extra memory. Hibernation (suspend-to-disk) The hibernation feature (suspend-to-disk) writes out the contents of RAM to the swap partition before turning off the machine.

Example Scenarios. Optimise 9.10 SWAP with Swappiness [KARMIC KOALA BIBLE #13] - GUVNR. Clearly, the order of the day is to RAM your machine up to the hilt, but enhancing the use of the swap file can also be a benefit. Here’s how, using Swappiness. Why? Because .. Computing can be very RAM-intensive. Say, you are running a graphics editor, a web browser or two, office apps and, who knows, maybe even a video editor. Then there’s AC-DC playing in the background .. Check Your Swappiness Value The lower the value, the longer it takes for swap to kick in.

Cat /proc/sys/vm/swappiness By way of a contradiction, Ubuntu’s official swap guide – and if you are reading this you should also read that – recommends a way lower value, of just 10, to allow for quicker swap access. To change the default, open:- gksudo gedit /etc/sysctl.conf Search for this:- Swap the value to this:- .. and that takes effect after a reboot. vm.swappiness=60 Doesn’t Exist You opened the sysctl.conf file and vm.swappiness wasn’t there? Change Swappiness Value Without Reboot sudo sysctl vm.swappiness=10 Share. Make Linux faster and lighter. With just a few tweaks, your Linux box can be lighter, sprightlier and quicker than ever before. Read on for the best ways to speed up your boot sequence, optimise KDE and Gnome, and get better performance from your favourite apps. We've also got some top tips from our favourite free software gurus... Gone are the days when you could make a cup of tea and drink it in the time it takes your computer's operating system to boot (with one notable exception).

On that basis, you might think that your Linux machines are already performing at the fastest possible speed, right? Sadly, this is not always the case. Communities developing mainstream Linux distributions have to appeal to the widest possible audience and ensure compatibility with the widest range of hardware. This means that someone running a mainstream distro on a netbook or a low-end PC may well be using many of the same settings as someone with a high-end gaming machine. Make Linux boot faster Remove the timeout timeout=3.

Ubuntu 10.04 swap update: It's not an Xorg bug but too much 'swappiness' — and it's easily fixed - CLICK. Yeah, reviews of the live media are bullshit. And quickie reviews are useless. I get it. But if I don’t write this here and now, it won’t get written. So I downloaded all of the new Ubuntu 14.04 ISOs that interest me — regular Ubuntu, Xubuntu, Lubuntu and Ubuntu GNOME. I am going to try them live on USB flash media to see what I like. I started with Ubuntu GNOME 14.04, which I do quite like. The GNOME Shell desktop is as responsive as it is in Debian, and I mean that in a good way. I still like the “as needed” way of adding virtual desktops in GNOME Shell, as I like alt-tab switching between every open application and not just those in the current desktop. Do the GNOME 3 animations make me nauseous?

One thing I do know is that for one of my more pathetic use cases, a terrible (TERRIBLE!) So when I’m using that particular application, I can’t do it in GNOME Shell. But back to Ubuntu GNOME. I can see the polish in GNOME Shell, which is at 3.10 in this release. That’s OK. Now I remember. Blog » Speed up ubuntu – free swap – swappiness. Do you want to speed up your ubuntu??! When you need to run a program that needs more memory than your system actually has or when you have a lot of opened software that obviously uses a lot of RAM, your operating system will cache the least used memory pages to a special partition on your disk called swap.

That technique gives you several benefits but can slow down your system when you’re not entirely using your RAM, forcing your OS to read/write from your disk that is far slower than your main memory. This is called thrashing. Indeed, memory is becoming cheaper and latest pc comes or get upgraded with large ram banks, which we want fully use. To avoid this issue you can tell ubuntu to use swap as less as possible, making the most of your ram by setting the swappiness ( the higher number you use, the more the SO will swap pages to disk) in /etc/sysctl.conf. Adjust the value according to the size of your RAM ( MORE ram, LESS swap). Open a terminal ( Ctrl+Alt+T ) Note: