Mailinglist Archive: opensuse (794 mails)

< Previous Next >
Re: [opensuse] Get an SSD just for swap?
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Mon, 27 Nov 2017 00:17:24 +0100 (CET)
  • Message-id: <alpine.LSU.2.21.1711270009160.23686@Telcontar.valinor>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Sunday, 2017-11-26 at 22:18 -0000, Mikhail Ramendik wrote:

Hello,

I have a 8Gb Pengium G2120 system with a normal WD Red 3 TB hard
drive. Most of the time it actually does what I want just fine.

Unfortunately, sometimes it starts to swap and then becomes very slow
immediately. I tried reducing swappiness to 10, now it starts to swap
in less cases - but when it does it basically hangs for a few minutes.

I can't afford a full upgrade (CPU. Mobo, RAM), especially with
current RAM prices. And I am not sure I should spend money on more
DDR3 RAM now, especially since I am not exactly sure if what I have is
DDR3 or DDR3L and how new additional RAM will affect the system.

So I wonder - would it help to get a small (16-32G) SATA SSD and use
it just for swapping?

As this is for swap only, I can get a cheap SSD (if it breaks I just
lose one session). I can get a 32Gb SSD for about 25 Euro, while an
extra 8GB of RAM would apparently set me back more like 50 Euro. But
will this work?


I asked this very question about a month or two ago :-))

I also have 8 GiB.

Yes, by all means, get a small SSD and use it for Swap, but not only swap, also for the main system, excluding /home.

This is my current SSD layout:

sde sde 512 0 0 250059350016 disk Samsung SSD 850 ├─sde1 sde1 512 0 0 25769803776 part swap ssd-swap ssd-swap [SWAP] 4feaa6f5-38c4-4674-ae54-8e22389731a1 aa8fe1c7-542e-4ffc-ab49-c65ada5d0ceb ├─sde2 sde2 512 0 0 15728640 part primary d96314db-df00-4e0d-9102-5f316d160094 ├─sde3 sde3 512 0 0 16105078784 part ext4 ssd-test primary 68b54333-95bc-4222-9422-271e3877eb61 5ef2f590-3dcd-4a69-8b42-f8bbb470e463 ├─sde4 sde4 512 0 0 1076887552 part ext2 ssd-boot primary /boot a977c5c3-259f-4df6-80e4-9f21a1ae96f5 c3bbe83a-5444-418e-9e80-952b9fa62c5a └─sde5 sde5 512 0 0 161059176448 part ext4 ssd-main primary / ac173013-18ad-4c4e-921e-fd2ecfb56495 ae6986d3-d9de-4d1c-9574-4b56034c0175

Notice that you also benefit from a speed gain if "/" is in SSD, because programs load faster. And because "/tmp" is SSD.

You can have a job rsync your root in SSD to the old root in rust for safety, so when the ssd finaly fails there is little lost.


Probably your machine doesn't have the last SATA spec, so it goes at 3 GB/s, like mine.


- -- Cheers,
Carlos E. R.
(from openSUSE 42.2 x86_64 "Malachite" at Telcontar)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlobS4QACgkQtTMYHG2NR9U5VQCbBdXY/DkrFNN/0Eo4VozisWyA
ZnQAnAsbe2eBs/LSREGb3lDzhtO1cx27
=lcFM
-----END PGP SIGNATURE-----
< Previous Next >
Follow Ups
References