All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Fuller <dfuller@epoch.com>
To: xfs@oss.sgi.com
Subject: Fragmentation Issue We Are Having
Date: Wed, 11 Apr 2012 18:04:25 -0700	[thread overview]
Message-ID: <CADrkzimg891ZBGK7-UzhGeey16KwH-ZXpEqFr=O3KwD3qA9LwQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1171 bytes --]

We seen to be having an issue whereby our database server
gets to 90% or higher fragmentation.  When it gets to this point
we would need to remove form production and defrag using the
xfs_fsr tool.  The server does get a lot of writes and reads.  Is
there something we can do to reduce the fragmentation or could
this be a result of hard disk tweaks we use or mount options?

here is some fo the tweaks we do:

/bin/echo "512" > /sys/block/sda/queue/read_ahead_kb
/bin/echo "10000" > /sys/block/sda/queue/nr_requests
/bin/echo "512" > /sys/block/sdb/queue/read_ahead_kb
/bin/echo "10000" > /sys/block/sdb/queue/nr_requests
/bin/echo "noop" > /sys/block/sda/queue/scheduler
/bin/echo "noop" > /sys/block/sdb/queue/scheduler


Adn here are the mount options on one of our servers:

 xfs     rw,noikeep,allocsize=256M,logbufs=8,sunit=128,swidth=2304

the sunit and swidth vary on each server based on disk drives.

We do use LVM on the volume where the mysql data is stored
as we need this for snapshotting.  Here is an example of a current state:

xfs_db -c frag -r /dev/mapper/vgmysql-lvmysql
actual 42586, ideal 3134, fragmentation factor 92.64%



Regards,
David Fuller

[-- Attachment #1.2: Type: text/html, Size: 1680 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

             reply	other threads:[~2012-04-12  1:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12  1:04 David Fuller [this message]
2012-04-12  2:16 ` Fragmentation Issue We Are Having Dave Chinner
2012-04-12  2:55   ` David Fuller
2012-04-12  4:24     ` Eric Sandeen
2012-04-12  7:57 ` Brian Candler
2012-04-13  0:09   ` David Fuller
2012-04-13  7:19     ` Brian Candler
2012-04-13  7:56       ` Dave Chinner
2012-04-13  8:17         ` Brian Candler
2012-04-17  0:26           ` Dave Chinner
2012-04-17  8:58             ` Brian Candler
2012-04-18  1:36               ` Dave Chinner
2012-04-18  9:00                 ` Brian Candler
2012-04-19 23:12                   ` Dave Chinner
2012-04-19 19:54 Richard Scobie

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='CADrkzimg891ZBGK7-UzhGeey16KwH-ZXpEqFr=O3KwD3qA9LwQ@mail.gmail.com' \
    --to=dfuller@epoch.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.