From: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
To: Minchan Kim <minchan@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] zram: idle memory tracking
Date: Tue, 27 Mar 2018 09:49:11 +0900 [thread overview]
Message-ID: <20180327004911.GA467@jagdpanzerIV> (raw)
In-Reply-To: <20180326064951.123940-2-minchan@kernel.org>
On (03/26/18 15:49), Minchan Kim wrote:
> zRam as swap is useful for small memory device. However, swap means
> those pages on zram are mostly cold pages due to VM's LRU algorithm.
> Especially, once init data for application are touched for launching,
> they tend to be not accessed any more and finally swapped out.
> zRAM can store such cold pages as compressed form but it's pointless
> to keep in memory. Better idea is app developers free them directly
> rather than remaining them on heap.
>
> This patch tell us last accesss time of each block of zram via
> "cat /sys/kernel/debug/zram/zram0/access_time".
>
> The output is as follows,
>
> 276 1250
> 277 1800
> .. ..
> .. ..
So can we just use CONFIG_IDLE_PAGE_TRACKING + CONFIG_PAGE_OWNER?
-ss
next prev parent reply other threads:[~2018-03-27 0:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-26 6:49 [PATCH 1/2] zram: correct flag name of ZRAM_ACCESS Minchan Kim
2018-03-26 6:49 ` [PATCH 2/2] zram: idle memory tracking Minchan Kim
2018-03-26 8:15 ` Greg KH
2018-03-26 9:57 ` Minchan Kim
2018-03-27 0:49 ` Sergey Senozhatsky [this message]
2018-03-27 1:03 ` Minchan Kim
2018-03-27 1:13 ` Sergey Senozhatsky
2018-03-27 1:47 ` Sergey Senozhatsky
2018-03-27 2:05 ` Minchan Kim
2018-03-27 2:21 ` Sergey Senozhatsky
2018-03-27 2:26 ` 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=20180327004911.GA467@jagdpanzerIV \
--to=sergey.senozhatsky.work@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=minchan@kernel.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