All of lore.kernel.org
 help / color / mirror / Atom feed
* ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
@ 2013-07-16 20:25 Dave Jones
  2013-07-17 12:53 ` Jan Kara
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Jones @ 2013-07-16 20:25 UTC (permalink / raw)
  To: Linux Kernel; +Cc: linux-ext4

I've seen this happen a few times this week..

EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs warning (device sdb1): ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
------------[ cut here ]------------
WARNING: CPU: 3 PID: 798 at fs/ext4/inode.c:1334 ext4_da_invalidatepage+0x39e/0x3c0()
Modules linked in: btrfs snd_hda_codec_realtek xor snd_hda_intel snd_hda_codec snd_pcm raid6_pq libcrc32c zlib_deflate snd_pag e_alloc snd_timer edac_core snd pcspkr serio_raw soundcore r8169 mii sr_mod cdrom pata_atiixp radeon backlight drm_kms_helper ttm
CPU: 3 PID: 798 Comm: fsx Not tainted 3.11.0-rc1+ #12
Hardware name: Gigabyte Technology Co., Ltd. GA-MA78GM-S2H/GA-MA78GM-S2H, BIOS F12a 04/23/2010
 ffffffff81a1bec7 ffff880126c81c18 ffffffff816b8a79 0000000000000000
 ffff880126c81c50 ffffffff81043efc ffff88010b753020 0000000000000002
 ffff88011bc237b0 ffff88011bc237b0 ffffea00045fbe00 ffff880126c81c60
Call Trace:
 [<ffffffff816b8a79>] dump_stack+0x4e/0x82
 [<ffffffff81043efc>] warn_slowpath_common+0x8c/0xc0
 [<ffffffff81043fea>] warn_slowpath_null+0x1a/0x20
 [<ffffffff8124f1ae>] ext4_da_invalidatepage+0x39e/0x3c0
 [<ffffffff81152b6e>] truncate_inode_page+0x8e/0x90
 [<ffffffff81152f0a>] truncate_inode_pages_range+0x35a/0x650
 [<ffffffff81153272>] truncate_pagecache+0x52/0x80
 [<ffffffff81255f1d>] ext4_setattr+0x33d/0x840
 [<ffffffff811d90a8>] notify_change+0x1d8/0x350
 [<ffffffff811b91e9>] do_truncate+0x69/0x90
 [<ffffffff811b953e>] do_sys_ftruncate.constprop.17+0x10e/0x160
 [<ffffffff811b95ce>] SyS_ftruncate+0xe/0x10
 [<ffffffff816ca8d4>] tracesys+0xdd/0xe2
---[ end trace 267735bac62efc6a ]---
EXT4-fs warning (device sdb1): ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data blocks


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

* Re: ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
  2013-07-16 20:25 ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data blocks Dave Jones
@ 2013-07-17 12:53 ` Jan Kara
  2013-07-17 14:52   ` Dave Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kara @ 2013-07-17 12:53 UTC (permalink / raw)
  To: Dave Jones; +Cc: Linux Kernel, linux-ext4

On Tue 16-07-13 16:25:33, Dave Jones wrote:
> I've seen this happen a few times this week..
  Thanks for report! Was this when fuzzing or just normal desktop load?
What is inode with inode number 12 on your filesystem sdb1? What IO happens
to it? Apparently some delalloc accounting went wrong somewhere and it's
searching for a needle in a haystack unless we have more details...

								Honza
> 
> EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
> EXT4-fs warning (device sdb1): ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
> ------------[ cut here ]------------
> WARNING: CPU: 3 PID: 798 at fs/ext4/inode.c:1334 ext4_da_invalidatepage+0x39e/0x3c0()
> Modules linked in: btrfs snd_hda_codec_realtek xor snd_hda_intel snd_hda_codec snd_pcm raid6_pq libcrc32c zlib_deflate snd_pag e_alloc snd_timer edac_core snd pcspkr serio_raw soundcore r8169 mii sr_mod cdrom pata_atiixp radeon backlight drm_kms_helper ttm
> CPU: 3 PID: 798 Comm: fsx Not tainted 3.11.0-rc1+ #12
> Hardware name: Gigabyte Technology Co., Ltd. GA-MA78GM-S2H/GA-MA78GM-S2H, BIOS F12a 04/23/2010
>  ffffffff81a1bec7 ffff880126c81c18 ffffffff816b8a79 0000000000000000
>  ffff880126c81c50 ffffffff81043efc ffff88010b753020 0000000000000002
>  ffff88011bc237b0 ffff88011bc237b0 ffffea00045fbe00 ffff880126c81c60
> Call Trace:
>  [<ffffffff816b8a79>] dump_stack+0x4e/0x82
>  [<ffffffff81043efc>] warn_slowpath_common+0x8c/0xc0
>  [<ffffffff81043fea>] warn_slowpath_null+0x1a/0x20
>  [<ffffffff8124f1ae>] ext4_da_invalidatepage+0x39e/0x3c0
>  [<ffffffff81152b6e>] truncate_inode_page+0x8e/0x90
>  [<ffffffff81152f0a>] truncate_inode_pages_range+0x35a/0x650
>  [<ffffffff81153272>] truncate_pagecache+0x52/0x80
>  [<ffffffff81255f1d>] ext4_setattr+0x33d/0x840
>  [<ffffffff811d90a8>] notify_change+0x1d8/0x350
>  [<ffffffff811b91e9>] do_truncate+0x69/0x90
>  [<ffffffff811b953e>] do_sys_ftruncate.constprop.17+0x10e/0x160
>  [<ffffffff811b95ce>] SyS_ftruncate+0xe/0x10
>  [<ffffffff816ca8d4>] tracesys+0xdd/0xe2
> ---[ end trace 267735bac62efc6a ]---
> EXT4-fs warning (device sdb1): ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data blocks
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

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

* Re: ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
  2013-07-17 12:53 ` Jan Kara
@ 2013-07-17 14:52   ` Dave Jones
  2013-07-17 21:38     ` Jan Kara
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Jones @ 2013-07-17 14:52 UTC (permalink / raw)
  To: Jan Kara; +Cc: Linux Kernel, linux-ext4

On Wed, Jul 17, 2013 at 02:53:22PM +0200, Jan Kara wrote:
 > On Tue 16-07-13 16:25:33, Dave Jones wrote:
 > > I've seen this happen a few times this week..
 >   Thanks for report! Was this when fuzzing or just normal desktop load?
 > What is inode with inode number 12 on your filesystem sdb1? What IO happens
 > to it? Apparently some delalloc accounting went wrong somewhere and it's
 > searching for a needle in a haystack unless we have more details...

It was running this.. https://github.com/kernelslacker/io-tests/blob/master/setup.sh
in a loop. After about 6 hours, that fell out.  It made it all the way through
every test a few times, which is odd, as the test should be fairly deterministic.
Ah, I wasn't capturing the fsx seed. I'll do that on the next run.

Perhaps that will make it easier to reproduce.
 
	Dave


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

* Re: ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
  2013-07-17 14:52   ` Dave Jones
@ 2013-07-17 21:38     ` Jan Kara
  2013-07-17 21:42       ` Dave Jones
  2013-07-31 16:39       ` Dave Jones
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Kara @ 2013-07-17 21:38 UTC (permalink / raw)
  To: Dave Jones; +Cc: Jan Kara, Linux Kernel, linux-ext4

On Wed 17-07-13 10:52:18, Dave Jones wrote:
> On Wed, Jul 17, 2013 at 02:53:22PM +0200, Jan Kara wrote:
>  > On Tue 16-07-13 16:25:33, Dave Jones wrote:
>  > > I've seen this happen a few times this week..
>  >   Thanks for report! Was this when fuzzing or just normal desktop load?
>  > What is inode with inode number 12 on your filesystem sdb1? What IO happens
>  > to it? Apparently some delalloc accounting went wrong somewhere and it's
>  > searching for a needle in a haystack unless we have more details...
> 
> It was running this.. https://github.com/kernelslacker/io-tests/blob/master/setup.sh
> in a loop. After about 6 hours, that fell out.  It made it all the way through
> every test a few times, which is odd, as the test should be fairly deterministic.
> Ah, I wasn't capturing the fsx seed. I'll do that on the next run.
  So inode 12 was likely the file used by fsx. OK. Looking at the script
link, fsx is run as:
  /usr/local/bin/fsx -N 250000 -S0 foo &
so the seed is always 0. So it is a deterministic test and there must be
some race with writeback or something that is rarely triggered. Drat.

Umm, looking at the filesystems this tests, ext4 with 1 KB blocksize is
likely the config which hits this (the accounting is more complex there) so
it might be interesting to concentrace on this one.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

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

* Re: ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
  2013-07-17 21:38     ` Jan Kara
@ 2013-07-17 21:42       ` Dave Jones
  2013-07-31 16:39       ` Dave Jones
  1 sibling, 0 replies; 7+ messages in thread
From: Dave Jones @ 2013-07-17 21:42 UTC (permalink / raw)
  To: Jan Kara; +Cc: Linux Kernel, linux-ext4

On Wed, Jul 17, 2013 at 11:38:50PM +0200, Jan Kara wrote:

 > > It was running this.. https://github.com/kernelslacker/io-tests/blob/master/setup.sh
 > > in a loop. After about 6 hours, that fell out.  It made it all the way through
 > > every test a few times, which is odd, as the test should be fairly deterministic.
 > > Ah, I wasn't capturing the fsx seed. I'll do that on the next run.
 >   So inode 12 was likely the file used by fsx. OK. Looking at the script
 > link, fsx is run as:
 >   /usr/local/bin/fsx -N 250000 -S0 foo &
 > so the seed is always 0. So it is a deterministic test and there must be
 > some race with writeback or something that is rarely triggered. Drat.

S0 is special. it means 'use timeofday as seed'

	Dave


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

* Re: ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
  2013-07-17 21:38     ` Jan Kara
  2013-07-17 21:42       ` Dave Jones
@ 2013-07-31 16:39       ` Dave Jones
  2013-07-31 18:32         ` Jan Kara
  1 sibling, 1 reply; 7+ messages in thread
From: Dave Jones @ 2013-07-31 16:39 UTC (permalink / raw)
  To: Jan Kara; +Cc: Linux Kernel, linux-ext4

On Wed, Jul 17, 2013 at 11:38:50PM +0200, Jan Kara wrote:
 > On Wed 17-07-13 10:52:18, Dave Jones wrote:
 > > On Wed, Jul 17, 2013 at 02:53:22PM +0200, Jan Kara wrote:
 > >  > On Tue 16-07-13 16:25:33, Dave Jones wrote:
 > >  > > I've seen this happen a few times this week..
 > >  >   Thanks for report! Was this when fuzzing or just normal desktop load?
 > >  > What is inode with inode number 12 on your filesystem sdb1? What IO happens
 > >  > to it? Apparently some delalloc accounting went wrong somewhere and it's
 > >  > searching for a needle in a haystack unless we have more details...
 > > 
 > > It was running this.. https://github.com/kernelslacker/io-tests/blob/master/setup.sh
 > > in a loop. After about 6 hours, that fell out.  It made it all the way through
 > > every test a few times, which is odd, as the test should be fairly deterministic.
 > > Ah, I wasn't capturing the fsx seed. I'll do that on the next run.
 >   So inode 12 was likely the file used by fsx. OK. Looking at the script
 > link, fsx is run as:
 >   /usr/local/bin/fsx -N 250000 -S0 foo &
 > so the seed is always 0. So it is a deterministic test and there must be
 > some race with writeback or something that is rarely triggered. Drat.
 > 
 > Umm, looking at the filesystems this tests, ext4 with 1 KB blocksize is
 > likely the config which hits this (the accounting is more complex there) so
 > it might be interesting to concentrace on this one.

I just retried these tests, and hit this again.
I can confirm it happens on the 1k block filesystem.

	Dave



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

* Re: ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data  blocks
  2013-07-31 16:39       ` Dave Jones
@ 2013-07-31 18:32         ` Jan Kara
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Kara @ 2013-07-31 18:32 UTC (permalink / raw)
  To: Dave Jones; +Cc: Jan Kara, Linux Kernel, linux-ext4

On Wed 31-07-13 12:39:01, Dave Jones wrote:
> On Wed, Jul 17, 2013 at 11:38:50PM +0200, Jan Kara wrote:
>  > On Wed 17-07-13 10:52:18, Dave Jones wrote:
>  > > On Wed, Jul 17, 2013 at 02:53:22PM +0200, Jan Kara wrote:
>  > >  > On Tue 16-07-13 16:25:33, Dave Jones wrote:
>  > >  > > I've seen this happen a few times this week..
>  > >  >   Thanks for report! Was this when fuzzing or just normal desktop load?
>  > >  > What is inode with inode number 12 on your filesystem sdb1? What IO happens
>  > >  > to it? Apparently some delalloc accounting went wrong somewhere and it's
>  > >  > searching for a needle in a haystack unless we have more details...
>  > > 
>  > > It was running this.. https://github.com/kernelslacker/io-tests/blob/master/setup.sh
>  > > in a loop. After about 6 hours, that fell out.  It made it all the way through
>  > > every test a few times, which is odd, as the test should be fairly deterministic.
>  > > Ah, I wasn't capturing the fsx seed. I'll do that on the next run.
>  >   So inode 12 was likely the file used by fsx. OK. Looking at the script
>  > link, fsx is run as:
>  >   /usr/local/bin/fsx -N 250000 -S0 foo &
>  > so the seed is always 0. So it is a deterministic test and there must be
>  > some race with writeback or something that is rarely triggered. Drat.
>  > 
>  > Umm, looking at the filesystems this tests, ext4 with 1 KB blocksize is
>  > likely the config which hits this (the accounting is more complex there) so
>  > it might be interesting to concentrace on this one.
> 
> I just retried these tests, and hit this again.
> I can confirm it happens on the 1k block filesystem.
  Great, thanks for confirmation. I've just managed to reproduce the
problem yesterday so I'm debugging it...

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

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

end of thread, other threads:[~2013-07-31 18:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-16 20:25 ext4_da_release_space:1333: ext4_da_release_space: ino 12, to_free 1 with only 0 reserved data blocks Dave Jones
2013-07-17 12:53 ` Jan Kara
2013-07-17 14:52   ` Dave Jones
2013-07-17 21:38     ` Jan Kara
2013-07-17 21:42       ` Dave Jones
2013-07-31 16:39       ` Dave Jones
2013-07-31 18:32         ` Jan Kara

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.