From: Stewart Smith <stewart@mysql.com>
To: Sam Vaughan <sjv@sgi.com>
Cc: xfs@oss.sgi.com
Subject: Re: XFS_IOC_RESVSP64 versus XFS_IOC_ALLOCSP64 with multiple threads
Date: Mon, 13 Nov 2006 15:09:02 +1100 [thread overview]
Message-ID: <1163390942.14517.12.camel@localhost.localdomain> (raw)
In-Reply-To: <965ECEF2-971D-46A1-B3F2-C6C1860C9ED8@sgi.com>
[-- Attachment #1: Type: text/plain, Size: 2417 bytes --]
On Mon, 2006-11-13 at 13:58 +1100, Sam Vaughan wrote:
> Are the two processes in your test writing files to the same
> directory as each other? If so then their allocations will go into
> the same AG as the directory by default, hence the fragmentation. If
> you can limit yourself to an AG's worth of data per directory then
> you should be able to avoid fragmentation using the default
> allocator. If you need to reserve more than that per AG, then the
> files will most likely start interleaving again once they spill out
> of their original AGs. If that's the case then the upcoming
> filestreams allocator may be your best bet.
I do predict that the filestreams allocator will be useful for us (and
also on my MythTV box...).
The two processes write to their own directories.
The structure of the "filesystem" for the process (ndbd) is:
ndb_1_fs/ (the 1 refers to node id, so there is a ndb_2_fs for a 2 node
setup)
D8/, D9/, D10/, D11/
all have a DBLQH subdirectory. In here there are several
S0.FragLog files (the number changes). These are 16MB
files used for logging.
We (currently) don't do any xfsctl allocation on these.
We should though. In fact, we're writing them in a way
to get holes (which probably affects performance).
These files are write only (except during a full cluster
restart - a very rare event).
LCP/0/T0F0.Data
(there is at least 0,1,2 for that first number,
T0 is table 0 - can be thousands of tables.
f0 is fragment 0, can be a few of them too, typically
2-4 though)
These are an on-disk copy of in-memory tables, variably
sized files (as big or as small as tables in a DB)
The above log files are for changes occuring during the
writing of these files.
datafile01.dat, undofile01.dat etc
whatever files the user creates for disk based tables
the datafiles and undofiles that i've done the special
allocation for.
Typical deployments will have anything from a few
hundred MB per file to few GB to many many GB.
"typical" installations are probably now evenly split between 1 process
per physical machine and several (usually 2).
--
Stewart Smith, Software Engineer
MySQL AB, www.mysql.com
Office: +14082136540 Ext: 6616
VoIP: 6616@sip.us.mysql.com
Mobile: +61 4 3 8844 332
Jumpstart your cluster:
http://www.mysql.com/consulting/packaged/cluster.html
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-11-13 4:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-13 1:33 XFS_IOC_RESVSP64 versus XFS_IOC_ALLOCSP64 with multiple threads Stewart Smith
[not found] ` <965ECEF2-971D-46A1-B3F2-C6C1860C9ED8@sgi.com>
2006-11-13 4:09 ` Stewart Smith [this message]
2006-11-13 4:53 ` Sam Vaughan
2006-11-13 5:20 ` Stewart Smith
2006-11-14 0:04 ` Sam Vaughan
2006-11-14 0:25 ` Chris Wedgwood
2006-11-14 0:31 ` Sam Vaughan
2006-11-14 0:37 ` Sam Vaughan
2006-11-27 5:55 ` Stewart Smith
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=1163390942.14517.12.camel@localhost.localdomain \
--to=stewart@mysql.com \
--cc=sjv@sgi.com \
--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