All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Maksim Melnikau <maxposedon@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: fstab zram swap integration idea
Date: Mon, 7 Jan 2013 13:42:06 +0100	[thread overview]
Message-ID: <20130107124206.GF28963@x2.redhat.com> (raw)
In-Reply-To: <CAGbmdnVWDifpsPvKUkdP+qX0m4GL7VYky5NyB-XYNGS19aXsvA@mail.gmail.com>

On Sun, Jan 06, 2013 at 03:17:52AM +0300, Maksim Melnikau wrote:
> Linux kernel now have interesting zram feature, which I would like to

 hmm... why this all is not completely hidden in kernel memory
 management? Why we need re-route by special device?

 Is it designed for anything other than swaparea?

> initialize via fstab. May be you find it interesting, and this feature
> will be implemented:
> 
> It will be nice, add to fstab option "mkswap before swapon", which
> could be used for auto-initialization swap in zram.

 swapon(8) already contains swap area reinitialization code (exec
 mkswap), it's used for --fixpgsz.

 Maybe we can add "mkswap" fstab and command line option for swapon.
 Anyway, mkswap is a nice and quick way how to lost data if you make a
 typo in your configuration.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2013-01-07 12:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-06  0:17 fstab zram swap integration idea Maksim Melnikau
2013-01-07 12:42 ` Karel Zak [this message]
2013-01-07 14:52   ` Maksim Melnikau
2013-01-10  9:47     ` Karel Zak

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=20130107124206.GF28963@x2.redhat.com \
    --to=kzak@redhat.com \
    --cc=maxposedon@gmail.com \
    --cc=util-linux@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.