publish: Swap on SSD done right
This commit is contained in:
parent
61faba98a1
commit
5b551779ce
|
@ -0,0 +1,46 @@
|
|||
title: Swap on SSD done right
|
||||
date: 2020-07-26
|
||||
tags: 100DaysToOffload
|
||||
summary: SSDs are fragile and swaps can be damaging. But they can live happily together.
|
||||
status: published
|
||||
comment: https://fosstodon.org/@murtezayesil/
|
||||
hundreddaystooffload: 12
|
||||
|
||||
TL;DR : If you have SSD and need swap, you should use swapspace daemon for healthier SSD. Btw, you want SSD and you need swap.
|
||||
|
||||
Note: I expect you to be familiar with [RAM](https://en.wikipedia.org/wiki/Random-access_memory), [swap](https://en.wikipedia.org/wiki/Paging#Unix_and_Unix-like_systems) and concept of [paging](https://en.wikipedia.org/wiki/Paging).
|
||||
|
||||
Here is the short edition:
|
||||
__RAM__ is fast memory for currently running programs.
|
||||
__Swap__ is kinda like backup RAM. In case of RAM is filling up, swap will be uyilized to move less often accessed data off the RAM.
|
||||
__Paging__ is moving data between RAM and swap memory. It occurs when RAM is close to full and needs emptying into the swap or when a data in swap is needed in RAM.
|
||||
|
||||
Since swap is located on HDD or SSD, it is much slower than RAM and we want to utilize RAM as much as we can. But sometimes RAM fills up and computer runs into [__OOM__](https://en.wikipedia.org/wiki/Out_of_memory "Out Of Memory") state. Even though it is slow, swap can be a life (or work) saver in such cases.
|
||||
|
||||
### Estimated Memory Speeds
|
||||
|
||||
Device Type | Speed (MB/s)
|
||||
------------|-------------
|
||||
HDD | 100
|
||||
SSD - SATA | 560
|
||||
SSD - NVMe | 2000-3000
|
||||
RAM DDR2 | 3000-8000
|
||||
RAM DDR3 | 8000-12000
|
||||
RAM DDR4 | 19000-35000
|
||||
|
||||
Data of RAM speeds is from [this article of Crucial](https://www.crucial.com/support/memory-speeds-compatability). HDD and SSD speeds are commonly observed speeds. Not from the Crucial's testing.
|
||||
|
||||
You definitely want swap memory to avoid possible OOM issue. You also may want to use SSD for swap memory since it is much faster than HDD or your computer only has SSD. But SSDs have one weak spot. Storage blocks of the SSD that is being read and wrote 100s of times will fail. Thankfully SSDs got smarter. Instead of using a single block too often and causing it to die early, SSDs tend to utilize every block equally. This is called Garbage Collection. And together with [overprovisioning](https://www.invidio.us/watch?v=Q15wN8JC2L4 "Techquickie video on overprovisioning"), they increase longevity of the SSD.
|
||||
|
||||
I don't think fixed swap partitions and files are good for SSD's health. We need a system to dynamically allocate swap. So that swap file will be erased when notneeded and created in lesser degraded blocks when needed.
|
||||
|
||||
# Meet Swapspace
|
||||
|
||||
[Swapspace](http://manpages.org/swapspace/8 "read manpage") is a background service that understands swap needs and either creates or removes swap files on the fly.
|
||||
|
||||
Swapspace is available on many _local repos_, _AUR_ and on [_GitHub_](https://github.com/Tookmund/Swapspace).
|
||||
|
||||
---
|
||||
|
||||
__Note__: How aggressively the Kernel should use swap memory can be controlled via a value called swappiness. Read about [changing swappiness](https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/) for better RAM utilization.
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
title: Swap on SSD done right
|
||||
date: 2020-07-26
|
||||
status: draft
|
|
@ -2,20 +2,18 @@ title: About
|
|||
|
||||
## Ali Murteza Yesil
|
||||
|
||||
Mastering life through art of making mistakes.
|
||||
Smart people learn from their experiences, geniuses learn from others' experiences too. This is why I appreciate constructive criticism 😃️
|
||||
Mastering life through art of making mistakes.
|
||||
I make mistakes and love to learn from them. I would appreciate your constructive criticism 😅️
|
||||
|
||||
> Smart people learn from their experiences, geniuses however learn also from others' experiences
|
||||
|
||||
A computer science student who wants to live in a World where everybody respects everybody else's every rights. Everybody deserves to live in such a World. So, why not make it.
|
||||
This kid is looking for his calling. He may have find it in advocating for privacy. This is not to say that he is perfect at defending it, he still makes rookie mistakes.
|
||||
|
||||
Nationality: Turkish
|
||||
Grew up in: Kenya
|
||||
|
||||
Confession: I didn't know English Language when my family and I moved to Kenya. I only learned English Language in Kenya since it was my priority, not Swahili 😐️ I still would like to call myself grew up in Kenya since this is where my personality was shaped.
|
||||
Confession: I also would like to use word "nigga" in friendly way Kenyans use, not in racist way American tend to use.
|
||||
|
||||
Favourite foods: Sarma (stuffed grape leaves/cabbage), matoke chips
|
||||
Favourite drinks: Water, ayran
|
||||
Favourite drinks: Water, Ayran (it is NOT salty milk)
|
||||
|
||||
## Blog
|
||||
|
||||
|
|
|
@ -57,6 +57,8 @@
|
|||
<dd><a href="https://murtezayesil.me/decentralized-internet-is-more-reliable.html">Decentralized Internet is More Reliable</a></dd>
|
||||
<dt>Sun 26 July 2020</dt>
|
||||
<dd><a href="https://murtezayesil.me/deleting-amazon-account.html">Deleting Amazon account</a></dd>
|
||||
<dt>Sun 26 July 2020</dt>
|
||||
<dd><a href="https://murtezayesil.me/swap-on-ssd-done-right.html">Swap on SSD done right</a></dd>
|
||||
<dt>Fri 24 July 2020</dt>
|
||||
<dd><a href="https://murtezayesil.me/digital-cleansing-mastodon.html">Digital Cleansing - Mastodon</a></dd>
|
||||
<dt>Wed 22 July 2020</dt>
|
||||
|
|
|
@ -72,7 +72,7 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<p>If you find accountability very motivational and working for you then I am glad for you. Let the world know and help you to reach your goals.</p><!-- Comments -->
|
||||
<hr>
|
||||
<h2>Comments</h2>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/104603241371480068">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
</article>
|
||||
</aside><!-- /#featured -->
|
||||
<section id="content" class="body">
|
||||
|
@ -108,6 +108,22 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<span>| tags: <a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>9</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/swap-on-ssd-done-right.html" rel="bookmark"
|
||||
title="Permalink to Swap on SSD done right">Swap on SSD done right</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 26 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>12</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
@ -204,22 +220,6 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100daystooffload</a></span> <span>| Day <strong>3</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/digital-cleansing-for-better-privacy.html" rel="bookmark"
|
||||
title="Permalink to Digital Cleansing For Better Privacy">Digital Cleansing For Better Privacy</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 12 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>2</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
|
|
|
@ -50,6 +50,22 @@
|
|||
|
||||
<section id="content" class="body">
|
||||
<ol id="posts-list" class="hfeed" start="9">
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/digital-cleansing-for-better-privacy.html" rel="bookmark"
|
||||
title="Permalink to Digital Cleansing For Better Privacy">Digital Cleansing For Better Privacy</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 12 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>2</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/privacy-for-the-whole-family.html" rel="bookmark"
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Authors on Ali Murteza Yesil</h1> <li><a href="https://murtezayesil.me/author/ali-murteza-yesil.html">Ali Murteza Yesil</a> (11)</li>
|
||||
<h1>Authors on Ali Murteza Yesil</h1> <li><a href="https://murtezayesil.me/author/ali-murteza-yesil.html">Ali Murteza Yesil</a> (12)</li>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<ul>
|
||||
<li><a href="https://murtezayesil.me/category/notes.html">Notes</a> (3)</li>
|
||||
<li><a href="https://murtezayesil.me/category/personal.html">Personal</a> (1)</li>
|
||||
<li><a href="https://murtezayesil.me/category/tech.html">Tech</a> (7)</li>
|
||||
<li><a href="https://murtezayesil.me/category/tech.html">Tech</a> (8)</li>
|
||||
</ul>
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
@ -72,7 +72,7 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<p>If you find accountability very motivational and working for you then I am glad for you. Let the world know and help you to reach your goals.</p><!-- Comments -->
|
||||
<hr>
|
||||
<h2>Comments</h2>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/104603241371480068">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
</article>
|
||||
<p class="paginator">
|
||||
Page 1 / 1
|
||||
|
|
|
@ -95,6 +95,22 @@ Redundancy is a good way to ensure reliable network but also costly one.</p>
|
|||
<h1>Other articles</h1>
|
||||
<ol id="posts-list" class="hfeed">
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/swap-on-ssd-done-right.html" rel="bookmark"
|
||||
title="Permalink to Swap on SSD done right">Swap on SSD done right</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 26 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>12</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/digital-cleansing-mastodon.html" rel="bookmark"
|
||||
|
|
|
@ -51,7 +51,56 @@ Redundancy is a good way to ensure reliable network but also costly one.</p&g
|
|||
<li>It will open a page with a text box. Write why you want to close your account and submit. If you are not sure what to write and also feeling adventurous, you can copy paste this link : https://www.youtube.com/watch?v=dQw4w9WgXcQ</li>
|
||||
<li>They will email you within 24 hours either for more instructions or to tell you that your account is closed.</li>
|
||||
</ol>
|
||||
<p><strong>Note</strong>: Depending on where you live or how many Amazon services you used, you may need to go through more steps.</p></content><category term="Notes"></category><category term="100DaysToOffload"></category></entry><entry><title>Digital Cleansing - Mastodon</title><link href="https://murtezayesil.me/digital-cleansing-mastodon.html" rel="alternate"></link><published>2020-07-24T15:23:00+06:00</published><updated>2020-07-24T15:23:00+06:00</updated><author><name>Ali Murteza Yesil</name></author><id>tag:murtezayesil.me,2020-07-24:/digital-cleansing-mastodon.html</id><summary type="html"><p>Centralized microblogging platforms are rich in user data and attractive to cyber criminals. I recommend decentralized alternatives.</p></summary><content type="html"><h2>Microblogging</h2>
|
||||
<p><strong>Note</strong>: Depending on where you live or how many Amazon services you used, you may need to go through more steps.</p></content><category term="Notes"></category><category term="100DaysToOffload"></category></entry><entry><title>Swap on SSD done right</title><link href="https://murtezayesil.me/swap-on-ssd-done-right.html" rel="alternate"></link><published>2020-07-26T00:00:00+06:00</published><updated>2020-07-26T00:00:00+06:00</updated><author><name>Ali Murteza Yesil</name></author><id>tag:murtezayesil.me,2020-07-26:/swap-on-ssd-done-right.html</id><summary type="html"><p>SSDs are fragile and swaps can be damaging. But they can live happily together.</p></summary><content type="html"><p>TL;DR : If you have SSD and need swap, you should use swapspace daemon for healthier SSD. Btw, you want SSD and you need swap.</p>
|
||||
<p>Note: I expect you to be familiar with <a href="https://en.wikipedia.org/wiki/Random-access_memory">RAM</a>, <a href="https://en.wikipedia.org/wiki/Paging#Unix_and_Unix-like_systems">swap</a> and concept of <a href="https://en.wikipedia.org/wiki/Paging">paging</a>.</p>
|
||||
<p>Here is the short edition:<br>
|
||||
<strong>RAM</strong> is fast memory for currently running programs.<br>
|
||||
<strong>Swap</strong> is kinda like backup RAM. In case of RAM is filling up, swap will be uyilized to move less often accessed data off the RAM.<br>
|
||||
<strong>Paging</strong> is moving data between RAM and swap memory. It occurs when RAM is close to full and needs emptying into the swap or when a data in swap is needed in RAM.</p>
|
||||
<p>Since swap is located on HDD or SSD, it is much slower than RAM and we want to utilize RAM as much as we can. But sometimes RAM fills up and computer runs into <a href="https://en.wikipedia.org/wiki/Out_of_memory" title="Out Of Memory"><strong>OOM</strong></a> state. Even though it is slow, swap can be a life (or work) saver in such cases. </p>
|
||||
<h3>Estimated Memory Speeds</h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Device Type</th>
|
||||
<th>Speed (MB/s)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>HDD</td>
|
||||
<td>100</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SSD - SATA</td>
|
||||
<td>560</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SSD - NVMe</td>
|
||||
<td>2000-3000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR2</td>
|
||||
<td>3000-8000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR3</td>
|
||||
<td>8000-12000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR4</td>
|
||||
<td>19000-35000</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Data of RAM speeds is from <a href="https://www.crucial.com/support/memory-speeds-compatability">this article of Crucial</a>. HDD and SSD speeds are commonly observed speeds. Not from the Crucial's testing.</p>
|
||||
<p>You definitely want swap memory to avoid possible OOM issue. You also may want to use SSD for swap memory since it is much faster than HDD or your computer only has SSD. But SSDs have one weak spot. Storage blocks of the SSD that is being read and wrote 100s of times will fail. Thankfully SSDs got smarter. Instead of using a single block too often and causing it to die early, SSDs tend to utilize every block equally. This is called Garbage Collection. And together with <a href="https://www.invidio.us/watch?v=Q15wN8JC2L4" title="Techquickie video on overprovisioning">overprovisioning</a>, they increase longevity of the SSD.</p>
|
||||
<p>I don't think fixed swap partitions and files are good for SSD's health. We need a system to dynamically allocate swap. So that swap file will be erased when notneeded and created in lesser degraded blocks when needed.</p>
|
||||
<h1>Meet Swapspace</h1>
|
||||
<p><a href="http://manpages.org/swapspace/8" title="read manpage">Swapspace</a> is a background service that understands swap needs and either creates or removes swap files on the fly.</p>
|
||||
<p>Swapspace is available on many <em>local repos</em>, <em>AUR</em> and on <a href="https://github.com/Tookmund/Swapspace"><em>GitHub</em></a>. </p>
|
||||
<hr>
|
||||
<p><strong>Note</strong>: How aggressively the Kernel should use swap memory can be controlled via a value called swappiness. Read about <a href="https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/">changing swappiness</a> for better RAM utilization.</p></content><category term="Tech"></category><category term="100DaysToOffload"></category></entry><entry><title>Digital Cleansing - Mastodon</title><link href="https://murtezayesil.me/digital-cleansing-mastodon.html" rel="alternate"></link><published>2020-07-24T15:23:00+06:00</published><updated>2020-07-24T15:23:00+06:00</updated><author><name>Ali Murteza Yesil</name></author><id>tag:murtezayesil.me,2020-07-24:/digital-cleansing-mastodon.html</id><summary type="html"><p>Centralized microblogging platforms are rich in user data and attractive to cyber criminals. I recommend decentralized alternatives.</p></summary><content type="html"><h2>Microblogging</h2>
|
||||
<p><a href="https://en.wikipedia.org/wiki/Microblogging" title="Read in more details on Wikipedia">Microblogging</a> is blogging smaller but usually more frequent updates. Microblogging platforms put some limitaions like the number of characters, photo size and video length in their platforms. Constraints make people to get creative to craft short and brief posts.<br>
|
||||
These platforms take away the hustle of maintaining your blog and reduce the friction to start writing/sharing.</p>
|
||||
<p>Do you know someone who uses a microblogging platform?<br>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,56 @@ Redundancy is a good way to ensure reliable network but also costly one.</p&g
|
|||
<ul>
|
||||
<li><a href="https://yarmo.eu/post/eliuf">ELIUF: Explain Like I Use Facebook</a> by <a href="https://yarmo.eu/">Yarmo Mackenbach</a></li>
|
||||
<li><a href="https://www.garron.blog/posts/eliuf.html">How to decentralize the Internet</a> by <a href="https://www.garron.blog/about.html">Guillermo Garron</a></li>
|
||||
</ul></content><category term="Tech"></category><category term="100DaysToOffload"></category></entry><entry><title>Digital Cleansing - Mastodon</title><link href="https://murtezayesil.me/digital-cleansing-mastodon.html" rel="alternate"></link><published>2020-07-24T15:23:00+06:00</published><updated>2020-07-24T15:23:00+06:00</updated><author><name>Ali Murteza Yesil</name></author><id>tag:murtezayesil.me,2020-07-24:/digital-cleansing-mastodon.html</id><summary type="html"><p>Centralized microblogging platforms are rich in user data and attractive to cyber criminals. I recommend decentralized alternatives.</p></summary><content type="html"><h2>Microblogging</h2>
|
||||
</ul></content><category term="Tech"></category><category term="100DaysToOffload"></category></entry><entry><title>Swap on SSD done right</title><link href="https://murtezayesil.me/swap-on-ssd-done-right.html" rel="alternate"></link><published>2020-07-26T00:00:00+06:00</published><updated>2020-07-26T00:00:00+06:00</updated><author><name>Ali Murteza Yesil</name></author><id>tag:murtezayesil.me,2020-07-26:/swap-on-ssd-done-right.html</id><summary type="html"><p>SSDs are fragile and swaps can be damaging. But they can live happily together.</p></summary><content type="html"><p>TL;DR : If you have SSD and need swap, you should use swapspace daemon for healthier SSD. Btw, you want SSD and you need swap.</p>
|
||||
<p>Note: I expect you to be familiar with <a href="https://en.wikipedia.org/wiki/Random-access_memory">RAM</a>, <a href="https://en.wikipedia.org/wiki/Paging#Unix_and_Unix-like_systems">swap</a> and concept of <a href="https://en.wikipedia.org/wiki/Paging">paging</a>.</p>
|
||||
<p>Here is the short edition:<br>
|
||||
<strong>RAM</strong> is fast memory for currently running programs.<br>
|
||||
<strong>Swap</strong> is kinda like backup RAM. In case of RAM is filling up, swap will be uyilized to move less often accessed data off the RAM.<br>
|
||||
<strong>Paging</strong> is moving data between RAM and swap memory. It occurs when RAM is close to full and needs emptying into the swap or when a data in swap is needed in RAM.</p>
|
||||
<p>Since swap is located on HDD or SSD, it is much slower than RAM and we want to utilize RAM as much as we can. But sometimes RAM fills up and computer runs into <a href="https://en.wikipedia.org/wiki/Out_of_memory" title="Out Of Memory"><strong>OOM</strong></a> state. Even though it is slow, swap can be a life (or work) saver in such cases. </p>
|
||||
<h3>Estimated Memory Speeds</h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Device Type</th>
|
||||
<th>Speed (MB/s)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>HDD</td>
|
||||
<td>100</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SSD - SATA</td>
|
||||
<td>560</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SSD - NVMe</td>
|
||||
<td>2000-3000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR2</td>
|
||||
<td>3000-8000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR3</td>
|
||||
<td>8000-12000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR4</td>
|
||||
<td>19000-35000</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Data of RAM speeds is from <a href="https://www.crucial.com/support/memory-speeds-compatability">this article of Crucial</a>. HDD and SSD speeds are commonly observed speeds. Not from the Crucial's testing.</p>
|
||||
<p>You definitely want swap memory to avoid possible OOM issue. You also may want to use SSD for swap memory since it is much faster than HDD or your computer only has SSD. But SSDs have one weak spot. Storage blocks of the SSD that is being read and wrote 100s of times will fail. Thankfully SSDs got smarter. Instead of using a single block too often and causing it to die early, SSDs tend to utilize every block equally. This is called Garbage Collection. And together with <a href="https://www.invidio.us/watch?v=Q15wN8JC2L4" title="Techquickie video on overprovisioning">overprovisioning</a>, they increase longevity of the SSD.</p>
|
||||
<p>I don't think fixed swap partitions and files are good for SSD's health. We need a system to dynamically allocate swap. So that swap file will be erased when notneeded and created in lesser degraded blocks when needed.</p>
|
||||
<h1>Meet Swapspace</h1>
|
||||
<p><a href="http://manpages.org/swapspace/8" title="read manpage">Swapspace</a> is a background service that understands swap needs and either creates or removes swap files on the fly.</p>
|
||||
<p>Swapspace is available on many <em>local repos</em>, <em>AUR</em> and on <a href="https://github.com/Tookmund/Swapspace"><em>GitHub</em></a>. </p>
|
||||
<hr>
|
||||
<p><strong>Note</strong>: How aggressively the Kernel should use swap memory can be controlled via a value called swappiness. Read about <a href="https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/">changing swappiness</a> for better RAM utilization.</p></content><category term="Tech"></category><category term="100DaysToOffload"></category></entry><entry><title>Digital Cleansing - Mastodon</title><link href="https://murtezayesil.me/digital-cleansing-mastodon.html" rel="alternate"></link><published>2020-07-24T15:23:00+06:00</published><updated>2020-07-24T15:23:00+06:00</updated><author><name>Ali Murteza Yesil</name></author><id>tag:murtezayesil.me,2020-07-24:/digital-cleansing-mastodon.html</id><summary type="html"><p>Centralized microblogging platforms are rich in user data and attractive to cyber criminals. I recommend decentralized alternatives.</p></summary><content type="html"><h2>Microblogging</h2>
|
||||
<p><a href="https://en.wikipedia.org/wiki/Microblogging" title="Read in more details on Wikipedia">Microblogging</a> is blogging smaller but usually more frequent updates. Microblogging platforms put some limitaions like the number of characters, photo size and video length in their platforms. Constraints make people to get creative to craft short and brief posts.<br>
|
||||
These platforms take away the hustle of maintaining your blog and reduce the friction to start writing/sharing.</p>
|
||||
<p>Do you know someone who uses a microblogging platform?<br>
|
||||
|
|
|
@ -72,7 +72,7 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<p>If you find accountability very motivational and working for you then I am glad for you. Let the world know and help you to reach your goals.</p><!-- Comments -->
|
||||
<hr>
|
||||
<h2>Comments</h2>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/104603241371480068">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
</article>
|
||||
</aside><!-- /#featured -->
|
||||
<section id="content" class="body">
|
||||
|
@ -108,6 +108,22 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<span>| tags: <a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>9</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/swap-on-ssd-done-right.html" rel="bookmark"
|
||||
title="Permalink to Swap on SSD done right">Swap on SSD done right</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 26 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>12</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
@ -204,22 +220,6 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100daystooffload</a></span> <span>| Day <strong>3</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/digital-cleansing-for-better-privacy.html" rel="bookmark"
|
||||
title="Permalink to Digital Cleansing For Better Privacy">Digital Cleansing For Better Privacy</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 12 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>2</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
|
|
|
@ -50,6 +50,22 @@
|
|||
|
||||
<section id="content" class="body">
|
||||
<ol id="posts-list" class="hfeed" start="9">
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/digital-cleansing-for-better-privacy.html" rel="bookmark"
|
||||
title="Permalink to Digital Cleansing For Better Privacy">Digital Cleansing For Better Privacy</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 12 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>2</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/privacy-for-the-whole-family.html" rel="bookmark"
|
||||
|
|
|
@ -51,16 +51,16 @@
|
|||
<h1 class="entry-title">About</h1>
|
||||
|
||||
<h2>Ali Murteza Yesil</h2>
|
||||
<p>Mastering life through art of making mistakes.
|
||||
Smart people learn from their experiences, geniuses learn from others' experiences too. This is why I appreciate constructive criticism 😃️</p>
|
||||
<p>A computer science student who wants to live in a World where everybody respects everybody else's every rights. Everybody deserves to live in such a World. So, why not make it.
|
||||
This kid is looking for his calling. He may have find it in advocating for privacy. This is not to say that he is perfect at defending it, he still makes rookie mistakes.</p>
|
||||
<p>Nationality: Turkish<br>
|
||||
Grew up in: Kenya</p>
|
||||
<p>Mastering life through art of making mistakes.<br>
|
||||
I make mistakes and love to learn from them. I would appreciate your constructive criticism 😅️</p>
|
||||
<blockquote>
|
||||
<p>Smart people learn from their experiences, geniuses however learn also from others' experiences</p>
|
||||
</blockquote>
|
||||
<p>This kid is looking for his calling. He may have find it in advocating for privacy. This is not to say that he is perfect at defending it, he still makes rookie mistakes.</p>
|
||||
<p>Confession: I didn't know English Language when my family and I moved to Kenya. I only learned English Language in Kenya since it was my priority, not Swahili 😐️ I still would like to call myself grew up in Kenya since this is where my personality was shaped.<br>
|
||||
Confession: I also would like to use word "nigga" in friendly way Kenyans use, not in racist way American tend to use.</p>
|
||||
<p>Favourite foods: Sarma (stuffed grape leaves/cabbage), matoke chips
|
||||
Favourite drinks: Water, ayran</p>
|
||||
Favourite drinks: Water, Ayran (it is NOT salty milk)</p>
|
||||
<h2>Blog</h2>
|
||||
<p>This blog is where Ali Murteza Yesil's opinions embody into words. This blog is compiled into static pages to reduce its carbon footprint. Instead of running webmention or disqus based comment system, I decided to share my blog posts on Mastodon and treat messages to those toots as comments. If you want to comment to my posts, we welcome you to <a href="https://en.wikipedia.org/wiki/Fediverse" title="Learn about Fediverse on Wikipedia">Fediverse</a>.</p>
|
||||
<p>Static pages generated from markdown using <a href="https://blog.getpelican.com/" title="Static Site Generator">Pelican</a>.</p>
|
||||
|
|
|
@ -83,7 +83,7 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<!-- Comments -->
|
||||
<hr>
|
||||
<h2>Comments</h2>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/104603241371480068">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<ul>
|
||||
<li><a href="https://murtezayesil.me/category/notes.html">Notes</a></li>
|
||||
<li><a href="https://murtezayesil.me/category/personal.html">Personal</a></li>
|
||||
<li><a href="https://murtezayesil.me/category/tech.html">Tech</a></li>
|
||||
<li class="active"><a href="https://murtezayesil.me/category/tech.html">Tech</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
</header><!-- /#banner -->
|
||||
|
@ -51,20 +51,76 @@
|
|||
<article>
|
||||
<header>
|
||||
<h1 class="entry-title">
|
||||
<a href="https://murtezayesil.me/drafts/swap-on-ssd-done-right.html" rel="bookmark"
|
||||
<a href="https://murtezayesil.me/swap-on-ssd-done-right.html" rel="bookmark"
|
||||
title="Permalink to Swap on SSD done right">Swap on SSD done right</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 26 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/draft.html">draft</a></span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>12</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
</footer><!-- /.post-info --> <p>TL;DR : If you have SSD and need swap, you should use swapspace daemon for healthier SSD. Btw, you want SSD and you need swap.</p>
|
||||
<p>Note: I expect you to be familiar with <a href="https://en.wikipedia.org/wiki/Random-access_memory">RAM</a>, <a href="https://en.wikipedia.org/wiki/Paging#Unix_and_Unix-like_systems">swap</a> and concept of <a href="https://en.wikipedia.org/wiki/Paging">paging</a>.</p>
|
||||
<p>Here is the short edition:<br>
|
||||
<strong>RAM</strong> is fast memory for currently running programs.<br>
|
||||
<strong>Swap</strong> is kinda like backup RAM. In case of RAM is filling up, swap will be uyilized to move less often accessed data off the RAM.<br>
|
||||
<strong>Paging</strong> is moving data between RAM and swap memory. It occurs when RAM is close to full and needs emptying into the swap or when a data in swap is needed in RAM.</p>
|
||||
<p>Since swap is located on HDD or SSD, it is much slower than RAM and we want to utilize RAM as much as we can. But sometimes RAM fills up and computer runs into <a href="https://en.wikipedia.org/wiki/Out_of_memory" title="Out Of Memory"><strong>OOM</strong></a> state. Even though it is slow, swap can be a life (or work) saver in such cases. </p>
|
||||
<h3>Estimated Memory Speeds</h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Device Type</th>
|
||||
<th>Speed (MB/s)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>HDD</td>
|
||||
<td>100</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SSD - SATA</td>
|
||||
<td>560</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SSD - NVMe</td>
|
||||
<td>2000-3000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR2</td>
|
||||
<td>3000-8000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR3</td>
|
||||
<td>8000-12000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RAM DDR4</td>
|
||||
<td>19000-35000</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Data of RAM speeds is from <a href="https://www.crucial.com/support/memory-speeds-compatability">this article of Crucial</a>. HDD and SSD speeds are commonly observed speeds. Not from the Crucial's testing.</p>
|
||||
<p>You definitely want swap memory to avoid possible OOM issue. You also may want to use SSD for swap memory since it is much faster than HDD or your computer only has SSD. But SSDs have one weak spot. Storage blocks of the SSD that is being read and wrote 100s of times will fail. Thankfully SSDs got smarter. Instead of using a single block too often and causing it to die early, SSDs tend to utilize every block equally. This is called Garbage Collection. And together with <a href="https://www.invidio.us/watch?v=Q15wN8JC2L4" title="Techquickie video on overprovisioning">overprovisioning</a>, they increase longevity of the SSD.</p>
|
||||
<p>I don't think fixed swap partitions and files are good for SSD's health. We need a system to dynamically allocate swap. So that swap file will be erased when notneeded and created in lesser degraded blocks when needed.</p>
|
||||
<h1>Meet Swapspace</h1>
|
||||
<p><a href="http://manpages.org/swapspace/8" title="read manpage">Swapspace</a> is a background service that understands swap needs and either creates or removes swap files on the fly.</p>
|
||||
<p>Swapspace is available on many <em>local repos</em>, <em>AUR</em> and on <a href="https://github.com/Tookmund/Swapspace"><em>GitHub</em></a>. </p>
|
||||
<hr>
|
||||
<p><strong>Note</strong>: How aggressively the Kernel should use swap memory can be controlled via a value called swappiness. Read about <a href="https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/">changing swappiness</a> for better RAM utilization.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<!-- #100DaysToOffload message -->
|
||||
<p>Day <strong>12</strong> of <a href="https://100daystooffload.com/" title="click to read about the challenge">#100DaysToOffload</a></p>
|
||||
|
||||
<!-- Comments -->
|
||||
<hr>
|
||||
<h2>Comments</h2>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
|
||||
|
||||
</article>
|
|
@ -72,7 +72,7 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<p>If you find accountability very motivational and working for you then I am glad for you. Let the world know and help you to reach your goals.</p><!-- Comments -->
|
||||
<hr>
|
||||
<h2>Comments</h2>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
<p>Toot on <a href="https://fosstodon.org/@murtezayesil/104603241371480068">this thread</a> to comment. This blog is a static site. Comments won't appear here.</p>
|
||||
</article>
|
||||
</aside><!-- /#featured -->
|
||||
<section id="content" class="body">
|
||||
|
@ -108,6 +108,22 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<span>| tags: <a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>9</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/swap-on-ssd-done-right.html" rel="bookmark"
|
||||
title="Permalink to Swap on SSD done right">Swap on SSD done right</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 26 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>12</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
@ -204,22 +220,6 @@ Asking for help, opinions and experiences of others is important for making educ
|
|||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100daystooffload</a></span> <span>| Day <strong>3</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/digital-cleansing-for-better-privacy.html" rel="bookmark"
|
||||
title="Permalink to Digital Cleansing For Better Privacy">Digital Cleansing For Better Privacy</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 12 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>2</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
|
|
|
@ -50,6 +50,22 @@
|
|||
|
||||
<section id="content" class="body">
|
||||
<ol id="posts-list" class="hfeed" start="9">
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/digital-cleansing-for-better-privacy.html" rel="bookmark"
|
||||
title="Permalink to Digital Cleansing For Better Privacy">Digital Cleansing For Better Privacy</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<span>Sun 12 July 2020</span>
|
||||
<span>| in <a href="https://murtezayesil.me/category/tech.html">Tech</a></span>
|
||||
<span>| tags: <a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a><a href="https://murtezayesil.me/tag/privacy.html">privacy</a><a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a></span> <span>| Day <strong>2</strong> of #100DaysToOffload</span>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="https://murtezayesil.me/privacy-for-the-whole-family.html" rel="bookmark"
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Tags for Ali Murteza Yesil</h1> <li><a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a> (11)</li>
|
||||
<h1>Tags for Ali Murteza Yesil</h1> <li><a href="https://murtezayesil.me/tag/100daystooffload.html">100DaysToOffload</a> (12)</li>
|
||||
<li><a href="https://murtezayesil.me/tag/android.html">android</a> (1)</li>
|
||||
<li><a href="https://murtezayesil.me/tag/code.html">code</a> (1)</li>
|
||||
<li><a href="https://murtezayesil.me/tag/digitalcleansing.html">digitalcleansing</a> (5)</li>
|
||||
|
|
Reference in New Issue