From: Minchan Kim <minchan@kernel.org>
To: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
rajekumar@google.com, amosbianchi@google.com,
joaodias@google.com
Subject: Re: [PATCH] zram: support a page writeback
Date: Fri, 16 Oct 2020 13:29:26 -0700 [thread overview]
Message-ID: <20201016202926.GB1976566@google.com> (raw)
In-Reply-To: <20201016002547.GA2412725@google.com>
Hi Sergey,
On Fri, Oct 16, 2020 at 09:25:47AM +0900, Sergey Senozhatsky wrote:
> 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
Make sense. I will use echo "block_index" since page size could be
changed later(e.g., some pages are 4K, some are THP).
I will revise it at next spin.
Thanks, Sergey!
prev parent reply other threads:[~2020-10-16 20:29 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
2020-10-16 20:29 ` Minchan Kim [this message]
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=20201016202926.GB1976566@google.com \
--to=minchan@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=amosbianchi@google.com \
--cc=joaodias@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rajekumar@google.com \
--cc=sergey.senozhatsky.work@gmail.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