From: Subodh Nijsure <snijsure@grid-net.com>
To: mtd <linux-mtd@lists.infradead.org>
Subject: Suggestion needed to set proper journal size
Date: Fri, 20 Apr 2012 15:59:34 -0700 [thread overview]
Message-ID: <4F91EA56.50803@grid-net.com> (raw)
Hello,
I know general implications of changing journal size on UBIFS -- bigger
the journal,
longer it may take to replay the journal, increasing time UBIFS takes to
mount. Smaller
journal means more re-writes to flash.
We created 2 partitions 100MB and 45MB and we see that by default
mkfs.ubifs is reserving 8MB for journal.
UBIFS: file system size: 101834752 bytes (99448 KiB, 97 MiB, 802 LEBs)
UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: file system size: 47996928 bytes (46872 KiB, 45 MiB, 378 LEBs)
UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
I know I can specify size of journal with -j option.
Should the journal size be scaled in some proportion of size of UBIFS
partition?
Should the journal size depend on how often you expect file-system to be
updated?
Has anyone done experiments with setting really small (1MB/2MB) journal
size?
What side effects is one likely to encounter if the journal size is too
small.
fwiw in my use case, file-system doesn't get updated that often, perhaps
2K data in about 4 files once a week.
-Subodh
next reply other threads:[~2012-04-20 22:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-20 22:59 Subodh Nijsure [this message]
2012-04-27 14:05 ` Suggestion needed to set proper journal size Artem Bityutskiy
2012-04-27 14:36 ` Subodh Nijsure
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=4F91EA56.50803@grid-net.com \
--to=snijsure@grid-net.com \
--cc=linux-mtd@lists.infradead.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.