From: Stan Hoeppner <stan@hardwarefreak.com>
To: Michael Monnerie <michael.monnerie@is.it-management.at>
Cc: xfs-oss <xfs@oss.sgi.com>
Subject: Re: howto keep xfs directory searches fast for a long time
Date: Sun, 12 Aug 2012 14:35:27 -0500 [thread overview]
Message-ID: <5028057F.3090007@hardwarefreak.com> (raw)
In-Reply-To: <6344220.LKveJofnHA@saturn>
On 8/12/2012 4:14 AM, Michael Monnerie wrote:
> I need a VMware VM that has 8TB storage. As I can at max create a 2TB
> disk, I need to add 4 disks, and use lvm to concat these. All is on top
> of a RAID5 or RAID6 store.
So the problem here is max vmdk size? Just use an RDM. IIRC there's no
size restriction on RDMs. And, using an RDM will avoid any alignment
issues that you may likely get when sticking XFS atop LVM atop a thin
disk file atop VMFS atop parity RAID. With RDM you get XFS directly
atop the storage LUN. This can be achieved with either an FC/iSCSI SAN
LUN or with a LUN exported/exposed from a hardware RAID controller.
> The workload will be storage of mostly large media files (5TB mkv Video
> + 1TB mp3), plus backup of normal documents (1TB .odt,.doc,.pdf etc).
> The server should be able to find files quickly, transfer speed is not
> important. There won't be many deletes to media files, mostly uploads
> and searching for files. Only when it grows full, old files will be
> removed. But normal documents will be rsynced (used as backup
> destination) regularly.
> I will set vm.vfs_cache_pressure = 10, this helps at least keeping
> inodes cached when they were read once.
>
> - What is the best setup to get high speed on directory searches? Find,
> ls, du, etc. should be quick.
How many directory entries are we talking about? Directory searching is
seek latency sensitive, so the spindle speed of the disks and read-ahead
cache of the controller may likely play as large, or larger, a role than
XFS parms.
> - Should I use inode64 or not?
Given your mixed large media and normal "office" file rsync workloads,
it's difficult to predict. I would think inode64 would slow down
searching a bit due to extra seek latency accessing directory trees.
This is a VM environment, thus this guest and its XFS filesystem will be
competing for seeks with other VMs/workloads. So anything that
decreases head seeks in XFS is a good thing.
> - If that's an 8 disk RAID-6, should I mkfs.xfs with 6*4 AGs? Or what
> would be a good start, or wouldn't it matter at all?
Thus, I'd think the fewer AGs the better, as in as few as you can get
away with, especially if most of this VM's workload is large media files.
> And as it'll be mostly big media files, should I use sunit/swidth set to
> 64KB/6*64KB, does that make sense?
If you can use an RDM on your existing storage array, match su/sw to
what's there. If you can't and must add 4 disks, simply attach them to
your RAID controller, create a new RAID5 array. Given large media
files, I'd probably use a strip of 256KB, times 3 spindles = 768KB
stripe. But this will depend on your RAID controller. Strip size may
be irrelevant to a degree with some BBWC controllers.
> I'm asking because I had such a VM setup once, and while it was fairly
> quick in the beginning, over time it felt much slower on traversing
> directories, very seek bound.
This suggests directory fragmentation.
> That xfs was only 80% filled, so shouldn't
> have had a fragmentation problem. And I know nothing to fix that apart
> from backup/restore, so maybe there's something to prevent that?
The files may not have been badly fragmented, but even at only 80% full,
if the FS got over 90% full and/or saw many deletes over its lifespan,
you could have had a decent amount of both directory and free space
fragmentation. Depends on how it aged.
--
Stan
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2012-08-12 19:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-12 9:14 howto keep xfs directory searches fast for a long time Michael Monnerie
2012-08-12 19:05 ` Peter Grandi
2012-08-12 19:35 ` Stan Hoeppner [this message]
2012-08-13 16:44 ` Michael Monnerie
2012-08-13 21:20 ` Stan Hoeppner
2012-08-13 23:56 ` Dave Chinner
2012-08-14 9:16 ` Michael Monnerie
2012-08-14 16:59 ` Stan Hoeppner
2012-08-15 8:59 ` Michael Monnerie
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=5028057F.3090007@hardwarefreak.com \
--to=stan@hardwarefreak.com \
--cc=michael.monnerie@is.it-management.at \
--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