linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bugs of Online Defragmentation
@ 2008-11-18  1:38 Li Zefan
  2008-11-26 11:11 ` Akira Fujita
  0 siblings, 1 reply; 3+ messages in thread
From: Li Zefan @ 2008-11-18  1:38 UTC (permalink / raw)
  To: Akira Fujita; +Cc: linux-ext4

I tested Online Defrag, and seems this feature is still
very unstable.

1)

# mkfs.ext4 -m 0 -b 1024 -O ^flex_bg /dev/sdb7
# mount -t ext4 -o nodelalloc /dev/sdb7 mnt_point
# (age /dev/sdb7 using ffsb)
...
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
...
/dev/sdb7              5159829   5118866     40963 100% ...

sdb7 has 40M free space left. And I ran e4defrag on a directory full
of small files (most < 1M), but all failed, and dmesg didn't tell
me the reasion.

# e4defrag mnt_point/data0/
...
[62/1562]/../mnt_point/data0/fillfile1420:        0%    [ NG ]
[63/1562]/../mnt_point/data0/fillfile188:         0%    [ NG ]
...
        Success:                        [ 0/1562 ]
        Failure:                        [ 1562/1562 ]

# df
Filesystem           1K-blocks      Used Available Use% Mounted on
...
/dev/sdb7              5159829   5159807        22 100% ...

Though all failed, but now the 40M free space was occupied, why?

If delalloc is turned on, things are somewhat different, most files can
be defraged, and dmesg told me not enough free blocks for the failure
cases.

2)

I sometimes got panic after defrag a directory:

Dirty block accounting went wrong -8977
Dirty block accounting went wrong -9279
Dirty block accounting went wrong -9718
Dirty block accounting went wrong -10258
...
...
Dirty block accounting went wrong -157352
Dirty block accounting went wrong -157700
EXT4-fs error(device sdb7): ext_mb_free_metadata: Double free of blocks 985 (984 2)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bugs of Online Defragmentation
  2008-11-18  1:38 bugs of Online Defragmentation Li Zefan
@ 2008-11-26 11:11 ` Akira Fujita
  2008-11-27  0:30   ` Li Zefan
  0 siblings, 1 reply; 3+ messages in thread
From: Akira Fujita @ 2008-11-26 11:11 UTC (permalink / raw)
  To: Li Zefan; +Cc: linux-ext4

Hi Li,

Thank you for testing and sorry for delay reply.
I am looking into this problem now,
It seems to take a little time to fix.

(In my look, s_dirty_blocks goes wrong so that free blocks
on memory decreases.  Maybe delalloc handling isn't good)

Thanks,
Akira Fujita

Li Zefan wrote:
> I tested Online Defrag, and seems this feature is still
> very unstable.
> 
> 1)
> 
> # mkfs.ext4 -m 0 -b 1024 -O ^flex_bg /dev/sdb7
> # mount -t ext4 -o nodelalloc /dev/sdb7 mnt_point
> # (age /dev/sdb7 using ffsb)
> ...
> # df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> ...
> /dev/sdb7              5159829   5118866     40963 100% ...
> 
> sdb7 has 40M free space left. And I ran e4defrag on a directory full
> of small files (most < 1M), but all failed, and dmesg didn't tell
> me the reasion.
> 
> # e4defrag mnt_point/data0/
> ...
> [62/1562]/../mnt_point/data0/fillfile1420:        0%    [ NG ]
> [63/1562]/../mnt_point/data0/fillfile188:         0%    [ NG ]
> ...
>         Success:                        [ 0/1562 ]
>         Failure:                        [ 1562/1562 ]
> 
> # df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> ...
> /dev/sdb7              5159829   5159807        22 100% ...
> 
> Though all failed, but now the 40M free space was occupied, why?
> 
> If delalloc is turned on, things are somewhat different, most files can
> be defraged, and dmesg told me not enough free blocks for the failure
> cases.
> 
> 2)
> 
> I sometimes got panic after defrag a directory:
> 
> Dirty block accounting went wrong -8977
> Dirty block accounting went wrong -9279
> Dirty block accounting went wrong -9718
> Dirty block accounting went wrong -10258
> ...
> ...
> Dirty block accounting went wrong -157352
> Dirty block accounting went wrong -157700
> EXT4-fs error(device sdb7): ext_mb_free_metadata: Double free of blocks 985 (984 2)
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bugs of Online Defragmentation
  2008-11-26 11:11 ` Akira Fujita
@ 2008-11-27  0:30   ` Li Zefan
  0 siblings, 0 replies; 3+ messages in thread
From: Li Zefan @ 2008-11-27  0:30 UTC (permalink / raw)
  To: Akira Fujita; +Cc: linux-ext4

Akira Fujita wrote:
> Hi Li,
> 
> Thank you for testing and sorry for delay reply.
> I am looking into this problem now,
> It seems to take a little time to fix.
> 
> (In my look, s_dirty_blocks goes wrong so that free blocks
> on memory decreases.  Maybe delalloc handling isn't good)
> 

Take your time. I'll test it once new version of online defrag
is released. :)

> Thanks,
> Akira Fujita
> 
> Li Zefan wrote:
>> I tested Online Defrag, and seems this feature is still
>> very unstable.
>>
>> 1)
>>
>> # mkfs.ext4 -m 0 -b 1024 -O ^flex_bg /dev/sdb7
>> # mount -t ext4 -o nodelalloc /dev/sdb7 mnt_point
>> # (age /dev/sdb7 using ffsb)
>> ...
>> # df
>> Filesystem           1K-blocks      Used Available Use% Mounted on
>> ...
>> /dev/sdb7              5159829   5118866     40963 100% ...
>>
>> sdb7 has 40M free space left. And I ran e4defrag on a directory full
>> of small files (most < 1M), but all failed, and dmesg didn't tell
>> me the reasion.
>>
>> # e4defrag mnt_point/data0/
>> ...
>> [62/1562]/../mnt_point/data0/fillfile1420:        0%    [ NG ]
>> [63/1562]/../mnt_point/data0/fillfile188:         0%    [ NG ]
>> ...
>>         Success:                        [ 0/1562 ]
>>         Failure:                        [ 1562/1562 ]
>>
>> # df
>> Filesystem           1K-blocks      Used Available Use% Mounted on
>> ...
>> /dev/sdb7              5159829   5159807        22 100% ...
>>
>> Though all failed, but now the 40M free space was occupied, why?
>>
>> If delalloc is turned on, things are somewhat different, most files can
>> be defraged, and dmesg told me not enough free blocks for the failure
>> cases.
>>
>> 2)
>>
>> I sometimes got panic after defrag a directory:
>>
>> Dirty block accounting went wrong -8977
>> Dirty block accounting went wrong -9279
>> Dirty block accounting went wrong -9718
>> Dirty block accounting went wrong -10258
>> ...
>> ...
>> Dirty block accounting went wrong -157352
>> Dirty block accounting went wrong -157700
>> EXT4-fs error(device sdb7): ext_mb_free_metadata: Double free of
>> blocks 985 (984 2)
>>
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-27  0:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18  1:38 bugs of Online Defragmentation Li Zefan
2008-11-26 11:11 ` Akira Fujita
2008-11-27  0:30   ` Li Zefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).