From: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
To: Minchan Kim <minchan@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
rajekumar@google.com, amosbianchi@google.com,
joaodias@google.com,
Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Subject: Re: [PATCH] zram: support a page writeback
Date: Fri, 16 Oct 2020 09:25:47 +0900 [thread overview]
Message-ID: <20201016002547.GA2412725@google.com> (raw)
In-Reply-To: <20201012071452.1613131-1-minchan@kernel.org>
On (20/10/12 00:14), Minchan Kim wrote:
>
> With the command, zram writeback idle pages from memory to the storage.
>
> +If admin want to write a specific page in zram device to backing device,
> +they could write the page index into the interface.
> +
> + echo 1251 > /sys/block/zramX/writeback
> +
May be we can make it more explicit?
echo "page_index=123" > /sys/block/zramX/writeback
Just in case of future extensions. E.g. someone might want to
have something like
echo "idle_nr=123" > /sys/block/zramX/writeback
which would write_back 123 idle pages max.
-ss
next prev parent reply other threads:[~2020-10-16 0:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-12 7:14 [PATCH] zram: support a page writeback Minchan Kim
2020-10-16 0:25 ` Sergey Senozhatsky [this message]
2020-10-16 20:29 ` 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=20201016002547.GA2412725@google.com \
--to=sergey.senozhatsky.work@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=amosbianchi@google.com \
--cc=joaodias@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=minchan@kernel.org \
--cc=rajekumar@google.com \
/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