linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compress=lzo a good idea for Swapfiles on SSD?
@ 2011-03-26  3:47 John McCabe-Dansted
  2011-03-26 12:54 ` Chris Mason
  0 siblings, 1 reply; 2+ messages in thread
From: John McCabe-Dansted @ 2011-03-26  3:47 UTC (permalink / raw)
  To: linux-btrfs

I understand that modern SSDs can withstand a significant amount of
writes, and so using an SSD for swap seems like a reasonable
proposition. However minimising writes still seems like a good idea.
My experience with compcache/ramzswap suggests that swap compresses
quite well, I tend to get a 4:1 compression ratio. Furthermore, I
understand that we can work around the data corruption that usually
occurs when using a swapfile on a btrfs partion, by using a loopback
device. Given this, my question is:

Does it sound like a good idea to use compress=lzo for swapfiles to
reduce the amount of data written to the SSD, when using SSD drives
that do not use compression internally?

-- 
John C. McCabe-Dansted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-26 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26  3:47 Compress=lzo a good idea for Swapfiles on SSD? John McCabe-Dansted
2011-03-26 12:54 ` Chris Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).