linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* swapping file pages
@ 2017-04-21 18:26 Luigi Semenzato
  2017-04-24  6:40 ` Minchan Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Luigi Semenzato @ 2017-04-21 18:26 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Linux Memory Management List, Tim Murray, Johannes Weiner,
	vinmenon

On an SSD used by a typical chromebook (i.e. the one on my desk right
now), it takes about 300us to read a random 4k page, but it takes less
than 10us to lzo-decompress a page from the zram device.

Code compresses reasonably well (down to almost 50% for x86_64,
although only 66% for ARM32), so I may be better off swapping file
pages to zram, rather than reading them back from the SSD.  Before I
even get started trying to do this, can anybody tell me if this is a
stupid idea?  Or possibly a good idea, but totally impractical from an
implementation perspective?

Thanks!

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2017-04-24  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 18:26 swapping file pages Luigi Semenzato
2017-04-24  6:40 ` Minchan Kim

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).