From: Carsten Oberscheid <oberscheid@doctronic.de>
To: xfs@oss.sgi.com
Subject: Re: Strange fragmentation in nearly empty filesystem
Date: Tue, 27 Jan 2009 09:40:34 +0100 [thread overview]
Message-ID: <20090127084034.GA16931@doctronic.de> (raw)
In-Reply-To: <20090127071023.GA16511@doctronic.de>
On Tue, Jan 27, 2009 at 08:10:23AM +0100, Carsten Oberscheid wrote:
>
> I'll see what tests I can do and report back about the findings.
Just booted an Ubuntu live CD from October 2007 and mounted the
filesystem in question. Could not run vmware from there easily, so I
tried just a copy of the vmem file:
root@ubuntu# uname -a
Linux tangchai 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux
root@ubuntu# xfs_bmap -vvp foo.vmem | grep hole | wc -l
34
root@ubuntu# xfs_bmap -vvp foo.vmem | grep -v hole | wc -l
38
root@ubuntu# cp foo.vmem test
root@ubuntu# xfs_bmap -vvp test | grep hole | wc -l
27078
root@ubuntu# xfs_bmap -vvp test | grep -v hole | wc -l
27081
So a simple copy of a hardly fragmented vmem file gets very badly
fragmented. If we assume the vmem file fragmentation to be caused by
vmware writing this file inefficiently, does this mean that cp is even
worse?
For comparison, I created a new clean dummy file:
root@ubuntu# dd if=/dev/zero of=ztest bs=1000 count=500000
500000+0 records in
500000+0 records out
500000000 bytes (500 MB) copied, 6.52903 seconds, 76.6 MB/s
root@ubuntu# xfs_bmap -vvp ztest | grep hole | wc -l
0
root@ubuntu# xfs_bmap -vvp ztest | grep -v hole | wc -l
14
root@ubuntu# cp ztest ztest2
root@ubuntu# xfs_bmap -vvp ztest2 | grep hole | wc -l
0
root@ubuntu# xfs_bmap -vvp ztest2 | grep -v hole | wc -l
3
No problem here. I repeated all this after rebooting my current
kernel, with the same results. Copying the vmem file to an etx3
filesystem gives about 1,700 extents, which is also bad, but not as
bad as on the XFS disk.
While this test says nothing about the interaction of old/new kernel
and old/new VMware, for me it raises some questions about
file-specific properties affecting fragmentation which appear to be
independent of recent kernel changes. Please bear with me if I miss
something obvious, I'm just a user.
Regards
Carsten Oberscheid
--
carsten oberscheid d o c t r o n i c
email oberscheid@doctronic.de information publishing + retrieval
phone +49 228 92 682 00 http://www.doctronic.de
doctronic GmbH & Co. KG, Bonn
Handelsregister: HRA 4685 (AG Bonn); USt-ID: DE 210 898 186
Komplementärin: doctronic Verwaltungsges. mbH, Bonn, HRB 8926 (AG Bonn)
Geschäftsführer: Holger Flörke, Ingo Küper, Carsten Oberscheid
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2009-01-27 8:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 10:21 Strange fragmentation in nearly empty filesystem Carsten Oberscheid
2009-01-23 15:25 ` Eric Sandeen
2009-01-24 0:33 ` Dave Chinner
2009-01-26 7:57 ` Carsten Oberscheid
2009-01-26 18:37 ` Eric Sandeen
2009-01-27 7:10 ` Carsten Oberscheid
2009-01-27 8:40 ` Carsten Oberscheid [this message]
2009-01-27 9:30 ` Michael Monnerie
2009-01-27 14:39 ` Carsten Oberscheid
2009-01-27 13:30 ` Eric Sandeen
2009-01-27 14:37 ` Carsten Oberscheid
2009-01-27 15:41 ` Felix Blyakher
2009-01-27 17:26 ` Eric Sandeen
2009-01-27 17:42 ` Felix Blyakher
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=20090127084034.GA16931@doctronic.de \
--to=oberscheid@doctronic.de \
--cc=xfs@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox