<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Swappiness on Michael’s Domain</title><link>https://jeltsch.org/en/tags/swappiness/</link><description>Recent content in Swappiness on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/swappiness/index.xml" rel="self" type="application/rss+xml"/><item><title>Changing swappiness on Linux and SDD</title><link>https://jeltsch.org/en/changing_swappiness_on_linux_and_sdd/</link><pubDate>Tue, 19 Feb 2019 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/changing_swappiness_on_linux_and_sdd/</guid><description>&lt;p&gt;The swappiness parameter is available from&lt;code&gt;/proc/sys/vm/swappiness&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;ldquo;0&amp;rdquo; means &amp;ldquo;swap only to disk when you absolutely have to&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;100&amp;rdquo; means &amp;ldquo;swap immediately to disk&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you are running you OS from an SDD, you might not want the default of 60, especially not if you have decent amounts of RAM (16 or 32 GB). In order to preserve the lifetime of your SDD drive, execute&lt;code&gt;sudo sysctl vm.swappiness=10&lt;/code&gt;.However, the setting disappears after a reboot and in order to make it permanant, you need to add the following line to /etc/sysctl.conf:&lt;code&gt;vm.swappiness=10&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>