Maui
Board Index divider Search Member List Help
Hello There, Guest! Login Register
Login
Username:
Password: Lost Password?
 
Maui Forums › Community › General Talk › Its good iddea add swap in SSD?

Its good iddea add swap in SSD?
kdemeoz Offline
Island Resident
******
Joined: Sep 2016
Posts: 661
#6
10th May 2017, 3:50
(9th May 2017, 16:44)rocky7x Wrote: Just to add my 2 cents Wink Adding swap on an SSD disk is not really a good option, since SSD has a limited amount of writes possible. Therefore, if you use an SSD for a swap and the system swaps a lot, I think it will destroy the SSD in a short time.

Agree - hence i deliberately put my Swap partition on my HDD not my SSD when i setup my Tower.

However, correct me if i'm mistaken, but that [good] advice only pertains to a physical Swap partition, doesn't it? My [new] interest, having learned of it from leszek's cool info, is now zram - which i thought i understood runs in RAM somehow [?], in which case the "traditional" Swap writes-caution doesn't apply...?

Having searched online for "zram vs tmpfs", i still have no clear answer, hence i still don't really understand if they coexist correctly, or would cause me problems. Whilst the following will seem crude, here is a basic idea of why i'm confused.

1. tmpfs occupies RAM
2. zram occupies RAM [albeit compressed]
3. Swap partition exists on a physical drive, & exists for data transfer once RAM is all consumed
4. If RAM space is consumed not only by the usual instantaneous working data, but also by tmpfs, & maybe also now by zram, then arithmetically there is now less free RAM available for newer working data... which ironically then increases the chance of Swap space being needed. 
5. If that Swap is the traditional physical partition, then of course system responsivity decreases, but nothing catastrophic will occur.
6. Conversely if there is no physical Swap partition, but "only" zram, the system attempts to swap working data into this, but given this IS in RAM, & swapping is ONLY needed when RAM is low or exhausted... well, how can this work? Isn't this kinda like the old joke about trying to lift yourself off the ground by your shoelaces?
7. Additionally, how do zram & tmpfs negotiate with each other to decide "who" will get to grab the specific working data that the kernel is trying to swap out? If they "argue" instead of "cooperate", then surely "bad things" will result?

As you can see, i still don't understand.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Its good iddea add swap in SSD? - by wonder - 8th May 2017, 11:03
RE: Its good iddea add swap in SSD? - by leszek - 8th May 2017, 11:09
RE: Its good iddea add swap in SSD? - by kdemeoz - 8th May 2017, 12:54
RE: Its good iddea add swap in SSD? - by wonder - 8th May 2017, 11:29
RE: Its good iddea add swap in SSD? - by rocky7x - 9th May 2017, 16:44
RE: Its good iddea add swap in SSD? - by kdemeoz - 10th May 2017, 3:50
RE: Its good iddea add swap in SSD? - by leszek - 10th May 2017, 9:48
RE: Its good iddea add swap in SSD? - by kdemeoz - 10th May 2017, 11:16

Possibly Related Threads…
Thread Author Replies Views Last Post
  Good Distro ! fanisatt 3 14,377 23rd September 2016, 20:19
Last Post: leszek

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

  • Contact Us
  • Maui Forums
  • Return to Top
  • Lite (Archive) Mode
  • RSS Syndication
Current time: 7th June 2025, 6:54 Powered By MyBB, © 2002-2025 MyBB Group.
Linear Mode
Threaded Mode