All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Zarochentsev <zam@namesys.com>
To: Nikita Danilov <Nikita@Namesys.COM>
Cc: Paul Wagland <paul@wagland.net>, reiserfs-list@Namesys.COM
Subject: Re: reiser4 and bonnie problems
Date: Tue, 20 Apr 2004 18:51:58 +0400	[thread overview]
Message-ID: <20040420145158.GC1579@backtop.namesys.com> (raw)
In-Reply-To: <16517.10147.704572.959551@laputa.namesys.com>

On Tue, Apr 20, 2004 at 05:37:39PM +0400, Nikita Danilov wrote:
> Paul Wagland writes:
>  > 
>  > On Apr 20, 2004, at 9:51, Nikita Danilov wrote:
>  > 
>  > > Paul Wagland writes:
>  > >> Bonnie: drastic I/O error (write(2)): No space left on device
>  > >
>  > > Err.. this is completely different from what we had previously: "No
>  > > space left on device" is understandable where not reasonable. What is
>  > > completely mysterious is "No such file or directory" error that you
>  > > reported before.
>  > 
>  > Yes, last night I could not get that "No such file or directory" error 
>  > to appear. I will try to reproduce that particular error again later 
>  > tonight. However, this other problem happens at exactly the same time, 
>  > and is an error in the reiser4.
>  > 
>  > Just to summarise everything that is written below, this is what bonnie 
>  > is doing:
>  > 1. write 3.5 GB onto a 4GB partition. This works
>  > 2. delete 3.5 GB from a 4GB partition. This works.
> 
> Disk blocks freed during transaction are not actually freed until
> transaction commits.
> 
>  > 3. I check using df that the disk space is free. That works.
> 
> But that "delayed freeing" confused users (they did cp, rm, but df has
> still showed that space is used), so that statfs(2) (system call used by
> df) was modified to take these delayed blocks into account and pretend
> that they are free.
> 
>  > 4. write 3.5GB onto a 4GB partition. This fails.
> 
> Try to repeat this with sync before step 4.
> 
>  > 
>  > At the time of failure, according to df there is stiff 3.5 GB
>  > free. So, I say that reiser4 has a problem.
> 
> df lies.

reiser4_statfs() was changed to report deleted blocks as free space immediately
after rm(1).  

It was done because reiser4_write() should trigger fs commit and recover free
space.   If commit does not happen, it is a reiser4 bug.

>  > Paul
> 
> Nikita.

-- 
Alex.

  reply	other threads:[~2004-04-20 14:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14  6:51 reiser4 and megaraid problems with debian 2.6.5 Paul Wagland
2004-04-14  9:05 ` Domenico Andreoli
2004-04-14 12:36   ` Paul Wagland
2004-04-14 13:09     ` Nikita Danilov
2004-04-14 13:25       ` Paul Wagland
2004-04-14 13:45         ` Vladimir Saveliev
2004-04-14 14:03           ` Paul Wagland
2004-04-14 23:59         ` Paul Wagland
2004-04-16 20:39           ` mjt
2004-04-17  7:38             ` Paul Wagland
2004-04-19 21:40               ` reiser4 and bonnie problems Paul Wagland
2004-04-20  7:51                 ` Nikita Danilov
2004-04-20  8:54                   ` Paul Wagland
2004-04-20 13:37                     ` Nikita Danilov
2004-04-20 14:51                       ` Alex Zarochentsev [this message]
2004-04-20 18:18                         ` Paul Wagland
2004-04-21  7:03                           ` Alex Zarochentsev
2004-04-18 22:36           ` reiser4 and megaraid problems with debian 2.6.5 (*solved*) Paul Wagland
2004-04-14 15:13 ` reiser4 and megaraid problems with debian 2.6.5 Hans Reiser
2004-04-14 15:37   ` Paul Wagland

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=20040420145158.GC1579@backtop.namesys.com \
    --to=zam@namesys.com \
    --cc=Nikita@Namesys.COM \
    --cc=paul@wagland.net \
    --cc=reiserfs-list@Namesys.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 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.