public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: Reuben Dowle <Reuben.Dowle@navico.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: UBIFS performance with no_chk_data_crc option
Date: Tue, 27 Jan 2009 14:35:12 +0200	[thread overview]
Message-ID: <1233059712.7085.7.camel@localhost.localdomain> (raw)
In-Reply-To: <70F6AAAFDC054F41B9994A9BCD3DF64E08308B18@exch01-aklnz.MARINE.NET.INT>

On Tue, 2009-01-27 at 13:09 +1300, Reuben Dowle wrote:
> It seems to me that enabling the no_chk_data_crc option actually causes
> SLOWER read performance. I get these results:

Reuben,

thanks for noticing this. We've fixed the issue. You may find the fix in
the linux-next branch of the ubifs-2.6.git tree:

commit 6f7ab6d458bbfc2f55d295fa3e6b9e69cdb1d517
Author: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Date:   Tue Jan 27 16:12:31 2009 +0200

    UBIFS: fix no_chk_data_crc

    When data CRC checking is disabled, UBIFS returns incorrect return
    code from the 'try_read_node()' function (0 instead of 1, which means
    CRC error), which make the caller re-read the data node again, but using
    a different code patch, so the second read is fine. Thus, we read the
    same node twice. And the result of this is that UBIFS is slower
    with no_chk_data_crc option than it is with chk_data_crc option.
    This patches fixes the problem.

    Reported-by: Reuben Dowle <Reuben.Dowle@navico.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

This patch has also been pushed to all UBIFS back-port git trees.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

      reply	other threads:[~2009-01-27 12:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27  0:09 UBIFS performance with no_chk_data_crc option Reuben Dowle
2009-01-27 12:35 ` Artem Bityutskiy [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=1233059712.7085.7.camel@localhost.localdomain \
    --to=dedekind@infradead.org \
    --cc=Reuben.Dowle@navico.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox