* generic/224 triggers infinite "page discard on page xxx" on 512 block size XFS with 4.8-rc1 kernel
@ 2016-08-13 7:38 Eryu Guan
2016-08-13 23:04 ` Dave Chinner
0 siblings, 1 reply; 2+ messages in thread
From: Eryu Guan @ 2016-08-13 7:38 UTC (permalink / raw)
To: xfs
Hi all,
I've hit generic/224 flooding dmesg on 512 block size XFS, 4.8-rc1
kernel, with the following message:
...
[ 98.146091] XFS (sda6): page discard on page ffffea0002f7e780, inode 0xe3a87, offset 1085214720.
[ 98.147431] XFS (sda6): page discard on page ffffea00023c3800, inode 0xe3a87, offset 1085218816.
[ 98.148743] XFS (sda6): page discard on page ffffea0002247700, inode 0xe3a87, offset 1085222912.
[ 98.150136] XFS (sda6): page discard on page ffffea0002f8d000, inode 0xe3a87, offset 1085227008.
[ 98.151496] XFS (sda6): page discard on page ffffea0002c58840, inode 0xe3a87, offset 1085231104.
[ 98.152794] XFS (sda6): page discard on page ffffea0002e65340, inode 0xe3a87, offset 1085235200.
...
The inode number is always the same, only the page address and offset
are changing.
This is triggered by this dd command in generic/224:
dd if=/dev/zero of=$SCRATCH_MNT/testfile.$i bs=4k conv=notrunc
and it won't return until you kill it.
With 4.7 kernel I can see similar messages in dmesg, but only a few
lines are printed on different inodes, I don't see this infinite loop on
same inode.
And I bisected to this commit:
commit 68a9f5e7007c1afa2cf6830b690a90d0187c0684
Author: Christoph Hellwig <hch@lst.de>
Date: Tue Jun 21 09:53:44 2016 +1000
xfs: implement iomap based buffered write path
Convert XFS to use the new iomap based multipage write path. This involves
implementing the ->iomap_begin and ->iomap_end methods, and switching the
buffered file write, page_mkwrite and xfs_iozero paths to the new iomap
helpers.
With this change __xfs_get_blocks will never be used for buffered writes,
and the code handling them can be removed.
Based on earlier code from Dave Chinner.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
I was testing on x86_64 kvm guest with 8G memory and 4vcpus. If more
information is needed please let me know.
Thanks,
Eryu
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: generic/224 triggers infinite "page discard on page xxx" on 512 block size XFS with 4.8-rc1 kernel
2016-08-13 7:38 generic/224 triggers infinite "page discard on page xxx" on 512 block size XFS with 4.8-rc1 kernel Eryu Guan
@ 2016-08-13 23:04 ` Dave Chinner
0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2016-08-13 23:04 UTC (permalink / raw)
To: Eryu Guan; +Cc: xfs
On Sat, Aug 13, 2016 at 03:38:39PM +0800, Eryu Guan wrote:
> Hi all,
>
> I've hit generic/224 flooding dmesg on 512 block size XFS, 4.8-rc1
> kernel, with the following message:
>
> ...
> [ 98.146091] XFS (sda6): page discard on page ffffea0002f7e780, inode 0xe3a87, offset 1085214720.
> [ 98.147431] XFS (sda6): page discard on page ffffea00023c3800, inode 0xe3a87, offset 1085218816.
> [ 98.148743] XFS (sda6): page discard on page ffffea0002247700, inode 0xe3a87, offset 1085222912.
> [ 98.150136] XFS (sda6): page discard on page ffffea0002f8d000, inode 0xe3a87, offset 1085227008.
> [ 98.151496] XFS (sda6): page discard on page ffffea0002c58840, inode 0xe3a87, offset 1085231104.
> [ 98.152794] XFS (sda6): page discard on page ffffea0002e65340, inode 0xe3a87, offset 1085235200.
> ...
>
> The inode number is always the same, only the page address and offset
> are changing.
>
> This is triggered by this dd command in generic/224:
>
> dd if=/dev/zero of=$SCRATCH_MNT/testfile.$i bs=4k conv=notrunc
>
> and it won't return until you kill it.
It's not infinite. It just does it for every page and 1000 processes
all trying to write 256,000 pages is a lot.... We have a fix
pending for it and I'm aiming to get it to Linus later this week.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-13 23:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-13 7:38 generic/224 triggers infinite "page discard on page xxx" on 512 block size XFS with 4.8-rc1 kernel Eryu Guan
2016-08-13 23:04 ` Dave Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox