From: Edward Shishkin <edward.shishkin@gmail.com>
To: Matias Seco <matias.jose.seco@gmail.com>
Cc: reiserfs-devel@vger.kernel.org
Subject: Re: R4: setting a swap file
Date: Sat, 26 Nov 2011 20:20:39 +0100 [thread overview]
Message-ID: <4ED13C07.103@gmail.com> (raw)
In-Reply-To: <CAMjNLwobU+ENtHCn5+84+mOCrL=qcdcgBRTp8LOh41XgSNfbLQ@mail.gmail.com>
On 11/26/2011 05:31 PM, Matias Seco wrote:
> if we would like to set a swap file through:
>
> dd if=/dev/zero of=/swapfile1 bs=<int number (kb)> count=<bs*int number>
>
Why do you create a swap file via dd from /dev/zero?
Wouldn't be better to create a "hole file" via truncate(2)?
Holes don't occupy any space in a file managed by reiser4
cryptcompress plugin.
>
> we should consider bs (block size) equal to cluster size's plugin
> value? (4k, 8k, 16k, 32k or 64k)
>
Not necessarily.
Clusters are logical blocks in a file which are compressed
independently. If file size is not a multiple of cluster size,
then file's tail will be compressed unless it is not smaller
than cplug->min_size_deflate().
Edward.
>
> PS: sorry, if this thread could be off topic from mailinglist scope,
> if it is, please notify me :)
>
> Regards,
> Matias
> --
> To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-11-26 19:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-26 16:31 R4: setting a swap file Matias Seco
2011-11-26 19:20 ` Edward Shishkin [this message]
2011-11-26 20:24 ` Matias Seco
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=4ED13C07.103@gmail.com \
--to=edward.shishkin@gmail.com \
--cc=matias.jose.seco@gmail.com \
--cc=reiserfs-devel@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.