linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Luigi Semenzato <semenzato@google.com>
To: Minchan Kim <minchan@kernel.org>
Cc: Linux Memory Management List <linux-mm@kvack.org>,
	Tim Murray <timmurray@google.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	vinmenon@codeaurora.org
Subject: swapping file pages
Date: Fri, 21 Apr 2017 11:26:45 -0700	[thread overview]
Message-ID: <CAA25o9SP_Axuhvrr-YNYdfj=NHjX1KaDrE-EOmw1gHYS2PpZCw@mail.gmail.com> (raw)

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>

             reply	other threads:[~2017-04-21 18:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-21 18:26 Luigi Semenzato [this message]
2017-04-24  6:40 ` Minchan Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA25o9SP_Axuhvrr-YNYdfj=NHjX1KaDrE-EOmw1gHYS2PpZCw@mail.gmail.com' \
    --to=semenzato@google.com \
    --cc=hannes@cmpxchg.org \
    --cc=linux-mm@kvack.org \
    --cc=minchan@kernel.org \
    --cc=timmurray@google.com \
    --cc=vinmenon@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox