* Re: your mail
[not found] <D3E576A1A7C7134694A0DDA7C2CA4B884C3985@hyd-mail2.bbnet.ad>
@ 2006-10-23 9:02 ` Chris Wedgwood
0 siblings, 0 replies; 6+ messages in thread
From: Chris Wedgwood @ 2006-10-23 9:02 UTC (permalink / raw)
To: Chakka Satish Kumar; +Cc: linux-xfs
On Mon, Oct 23, 2006 at 12:47:20PM +0530, Chakka Satish Kumar wrote:
> I formatted a partition of size 5GB with xfs block size=16K
you can't use a block size large than your machines page size, so you
probably want to leave it at 4K (the default in most cases)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: your mail
2015-06-13 1:02 Tom Christensen
@ 2015-06-13 22:39 ` Dave Chinner
2015-06-14 23:27 ` Dave Chinner
0 siblings, 1 reply; 6+ messages in thread
From: Dave Chinner @ 2015-06-13 22:39 UTC (permalink / raw)
To: Tom Christensen; +Cc: swakefie@redhat.com, xfs@oss.sgi.com
On Sat, Jun 13, 2015 at 01:02:51AM +0000, Tom Christensen wrote:
> We've run into a bit of an issue with xfs running Ceph. The following bug details what we are seeing:
> https://bugs.launchpad.net/ubuntu/+source/xfs/+bug/1464308
>
> Basically the Ceph OSD process gets hung in dstate due to the traceback in the bug.
>
> Here is additional info gathered:
>
> xfs bmap output for a random directory
> https://gist.github.com/dmmatson/e864252c7ff346df954a
>
> attr -l of the file dchinner indicated from the xfs bmap output
> (attr -l)
> (6:11:41 PM) dmatson: Attribute "cephos.spill_out" has a 2 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> (6:11:45 PM) dmatson: Attribute "ceph.snapset@3" has a 263 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> (6:11:49 PM) dmatson: Attribute "ceph.snapset@2" has a 1131 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> (6:11:53 PM) dmatson: Attribute "ceph.snapset@1" has a 2048 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> (6:11:56 PM) dmatson: Attribute "ceph._" has a 259 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> (6:12:00 PM) dmatson: Attribute "ceph.snapset" has a 2048 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
>
> xfs_bmap -vp of same file
>
> rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5:
> (6:13:21 PM) dmatson: EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
> (6:13:25 PM) dmatson: 0: [0..8191]: 2944471376..2944479567 16 (24445776..24453967) 8192 00000
And the attribute fork was:
rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5:
EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
0: [0..7]: 1461176488..1461176495 8 (1163688..1163695) 8 00000
1: [8..31]: 1461176504..1461176527 8 (1163704..1163727) 24 00000
I just created a filesystem and attribute list identical to the
above, and came up with a attribute fork that looks like:
/mnt/scratch/udata.66039648e29a80.0000000000000d35__head_23EA10B8__5:
EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
0: [0..7]: 120..127 0 (120..127) 8 00000
1: [8..15]: 112..119 0 (112..119) 8 00000
2: [16..23]: 104..111 0 (104..111) 8 00000
IOWs, there's an extra block in the attribute fork that is causing
problems than there needs to be. That tends to imply attribute
overwrites might be contributing here (the 3-phase overwrite
algorithm increases the space usage) so I'm going to need to try a
few different things to see if I can get an attribute fork into the
same shape....
> LVM configuration: None
>
> HGST 3TB
>
> meta-data=/dev/mapper/63e3300b-6b7b-41a0-bdf2-b64ec3c20c51 isize=2048 agcount=32, agsize=22812700 blks
agcount=32 will actually be slowing your disks down. The default of
4AGs is usually best for a single spindle as it has sufficient
allocation cncurrency but results in much fewer seeks than a higher
AG count....
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] 6+ messages in thread
* Re: your mail
2015-06-13 22:39 ` your mail Dave Chinner
@ 2015-06-14 23:27 ` Dave Chinner
0 siblings, 0 replies; 6+ messages in thread
From: Dave Chinner @ 2015-06-14 23:27 UTC (permalink / raw)
To: Tom Christensen; +Cc: swakefie@redhat.com, xfs@oss.sgi.com
On Sun, Jun 14, 2015 at 08:39:21AM +1000, Dave Chinner wrote:
> On Sat, Jun 13, 2015 at 01:02:51AM +0000, Tom Christensen wrote:
> > We've run into a bit of an issue with xfs running Ceph. The following bug details what we are seeing:
> > https://bugs.launchpad.net/ubuntu/+source/xfs/+bug/1464308
> >
> > Basically the Ceph OSD process gets hung in dstate due to the traceback in the bug.
> >
> > Here is additional info gathered:
> >
> > xfs bmap output for a random directory
> > https://gist.github.com/dmmatson/e864252c7ff346df954a
> >
> > attr -l of the file dchinner indicated from the xfs bmap output
> > (attr -l)
> > (6:11:41 PM) dmatson: Attribute "cephos.spill_out" has a 2 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> > (6:11:45 PM) dmatson: Attribute "ceph.snapset@3" has a 263 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> > (6:11:49 PM) dmatson: Attribute "ceph.snapset@2" has a 1131 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> > (6:11:53 PM) dmatson: Attribute "ceph.snapset@1" has a 2048 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> > (6:11:56 PM) dmatson: Attribute "ceph._" has a 259 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> > (6:12:00 PM) dmatson: Attribute "ceph.snapset" has a 2048 byte value for rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5
> >
> > xfs_bmap -vp of same file
> >
> > rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5:
> > (6:13:21 PM) dmatson: EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
> > (6:13:25 PM) dmatson: 0: [0..8191]: 2944471376..2944479567 16 (24445776..24453967) 8192 00000
>
> And the attribute fork was:
>
> rbd\udata.66039648e29a80.0000000000000d35__head_23EA10B8__5:
> EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
> 0: [0..7]: 1461176488..1461176495 8 (1163688..1163695) 8 00000
> 1: [8..31]: 1461176504..1461176527 8 (1163704..1163727) 24 00000
>
> I just created a filesystem and attribute list identical to the
> above, and came up with a attribute fork that looks like:
>
> /mnt/scratch/udata.66039648e29a80.0000000000000d35__head_23EA10B8__5:
> EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
> 0: [0..7]: 120..127 0 (120..127) 8 00000
> 1: [8..15]: 112..119 0 (112..119) 8 00000
> 2: [16..23]: 104..111 0 (104..111) 8 00000
>
> IOWs, there's an extra block in the attribute fork that is causing
> problems than there needs to be. That tends to imply attribute
> overwrites might be contributing here (the 3-phase overwrite
> algorithm increases the space usage) so I'm going to need to try a
> few different things to see if I can get an attribute fork into the
> same shape....
I've had a test running overnight that generates attribute forks of
this shape, but I haven't seen any problems. sequential grow of
attributes, semi random growth, semi random truncation, etc don't
seem to trip over this problem on a 4.1-rc6 kernel. Hence I'm going
to need a metadump image of a filesystem with a broken file in it.
An obfuscated dump is fine; I only need to look at the structure of
the bad attribute fork. If you want to send the link privately to me
that is fine, too.
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] 6+ messages in thread
* (no subject)
@ 2023-05-25 12:01 Murphy Zhou
2023-05-25 12:04 ` your mail Christoph Hellwig
0 siblings, 1 reply; 6+ messages in thread
From: Murphy Zhou @ 2023-05-25 12:01 UTC (permalink / raw)
To: Linux-Next, linux-xfs, Christoph Hellwig
Hi Christoph,
The linux-next tree, since the next-20230522 tag, LTP/writev07[1]
starts to fail on xfs, not on other fs. It was pass on the previous
tag next-20230519.
After those 2 commits reverted on the top of 0522 tree, it passed.
iomap: update ki_pos in iomap_file_buffered_write
iomap: assign current->backing_dev_info in iomap_file_buffered_write
(the second one was reverted because the first one depends on it)
The test case writev07 forms an iovec with a bad address in the middle,
then writes to the file, expecting a fault return and file not being written.
Now it fails with a fault return but the file has been written.
Looks like it is related to the pos update, could you help to take a look ?
Thanks,
Murphy
[1] https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/writev/writev07.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: your mail
2023-05-25 12:01 Murphy Zhou
@ 2023-05-25 12:04 ` Christoph Hellwig
2023-05-25 12:45 ` Murphy Zhou
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2023-05-25 12:04 UTC (permalink / raw)
To: Murphy Zhou; +Cc: Linux-Next, linux-xfs, Christoph Hellwig, akpm
On Thu, May 25, 2023 at 08:01:22PM +0800, Murphy Zhou wrote:
> Hi Christoph,
>
> The linux-next tree, since the next-20230522 tag, LTP/writev07[1]
> starts to fail on xfs, not on other fs. It was pass on the previous
> tag next-20230519.
>
> After those 2 commits reverted on the top of 0522 tree, it passed.
>
> iomap: update ki_pos in iomap_file_buffered_write
> iomap: assign current->backing_dev_info in iomap_file_buffered_write
>
> (the second one was reverted because the first one depends on it)
Yes, they are known broken. There has been a v2 on the list already,
which still has issues for fuse, so there will be a v3.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: your mail
2023-05-25 12:04 ` your mail Christoph Hellwig
@ 2023-05-25 12:45 ` Murphy Zhou
0 siblings, 0 replies; 6+ messages in thread
From: Murphy Zhou @ 2023-05-25 12:45 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Linux-Next, linux-xfs, akpm
On Thu, May 25, 2023 at 8:04 PM Christoph Hellwig <hch@lst.de> wrote:
>
> On Thu, May 25, 2023 at 08:01:22PM +0800, Murphy Zhou wrote:
> > Hi Christoph,
> >
> > The linux-next tree, since the next-20230522 tag, LTP/writev07[1]
> > starts to fail on xfs, not on other fs. It was pass on the previous
> > tag next-20230519.
> >
> > After those 2 commits reverted on the top of 0522 tree, it passed.
> >
> > iomap: update ki_pos in iomap_file_buffered_write
> > iomap: assign current->backing_dev_info in iomap_file_buffered_write
> >
> > (the second one was reverted because the first one depends on it)
>
> Yes, they are known broken. There has been a v2 on the list already,
> which still has issues for fuse, so there will be a v3.
Great! Thank you.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-05-25 12:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-25 12:01 Murphy Zhou
2023-05-25 12:04 ` your mail Christoph Hellwig
2023-05-25 12:45 ` Murphy Zhou
-- strict thread matches above, loose matches on Subject: below --
2015-06-13 1:02 Tom Christensen
2015-06-13 22:39 ` your mail Dave Chinner
2015-06-14 23:27 ` Dave Chinner
[not found] <D3E576A1A7C7134694A0DDA7C2CA4B884C3985@hyd-mail2.bbnet.ad>
2006-10-23 9:02 ` Chris Wedgwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox