All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Decherf <kevin@kdecherf.com>
To: Gregory Farnum <greg@inktank.com>
Cc: Sam Lang <sam.lang@inktank.com>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>,
	support@clever-cloud.com
Subject: Re: Crash and strange things on MDS
Date: Tue, 26 Feb 2013 22:57:02 +0100	[thread overview]
Message-ID: <20130226215702.GI16091@kdecherf.com> (raw)
In-Reply-To: <CAPYLRziEUnD7SAipnUwF8gz=2ZvF3vKWyiv8xEcy1PP_Lhbw0w@mail.gmail.com>

On Tue, Feb 26, 2013 at 12:26:17PM -0800, Gregory Farnum wrote:
> On Tue, Feb 26, 2013 at 11:58 AM, Kevin Decherf <kevin@kdecherf.com> wrote:
> > We have one folder per application (php, java, ruby). Every application has
> > small (<1M) files. The folder is mounted by only one client by default.
> >
> > In case of overload, another clients spawn to mount the same folder and
> > access the same files.
> >
> > In the following test, only one client was used to serve the
> > application (a website using wordpress).
> >
> > I made the test with strace to see the time of each IO request (strace -T
> > -e trace=file) and I noticed the same pattern:
> >
> > ...
> > [pid  4378] stat("/data/wp-includes/user.php", {st_mode=S_IFREG|0750, st_size=28622, ...}) = 0 <0.033409>
> > [pid  4378] lstat("/data/wp-includes/user.php", {st_mode=S_IFREG|0750, st_size=28622, ...}) = 0 <0.081642>
> > [pid  4378] open("/data/wp-includes/user.php", O_RDONLY) = 5 <0.041138>
> > [pid  4378] stat("/data/wp-includes/meta.php", {st_mode=S_IFREG|0750, st_size=10896, ...}) = 0 <0.082303>
> > [pid  4378] lstat("/data/wp-includes/meta.php", {st_mode=S_IFREG|0750, st_size=10896, ...}) = 0 <0.004090>
> > [pid  4378] open("/data/wp-includes/meta.php", O_RDONLY) = 5 <0.081929>
> > ...
> >
> > ~250 files were accessed for only one request (thanks Wordpress.).
> 
> Okay, that is slower than I'd expect, even for an across-the-wire request...
> 
> > The fs is mounted with these options: rw,noatime,name=<hidden>,secret=<hidden>,nodcache.
> 
> What kernel and why are you using nodcache?

We use kernel 3.7.0. nodcache is enabled by default (we only specify user and
secretfile as mount options) and I didn't find it in the documentation of
mount.ceph.

> Did you have problems
> without that mount option? That's forcing an MDS access for most
> operations, rather than using local data.

Good question, I will try it (-o dcache?).

> > I have a debug (debug_mds=20) log of the active mds during this test if you want.
> 
> Yeah, can you post it somewhere?

Upload in progress :-)

-- 
Kevin Decherf - @Kdecherf
GPG C610 FE73 E706 F968 612B E4B2 108A BD75 A81E 6E2F
http://kdecherf.com

  reply	other threads:[~2013-02-26 21:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-04 18:01 Crash and strange things on MDS Kevin Decherf
2013-02-11 13:05 ` Kevin Decherf
2013-02-11 17:00   ` Sam Lang
2013-02-11 18:54     ` Kevin Decherf
2013-02-11 20:25       ` Gregory Farnum
2013-02-11 22:24         ` Kevin Decherf
2013-02-11 22:47           ` Gregory Farnum
2013-02-11 23:33             ` Kevin Decherf
2013-02-13 11:47         ` Kevin Decherf
2013-02-13 18:19           ` Gregory Farnum
2013-02-16  1:02             ` Kevin Decherf
2013-02-16 17:36               ` Sam Lang
2013-02-16 18:24                 ` Kevin Decherf
2013-02-19 18:15                   ` Gregory Farnum
2013-02-20  1:00                     ` Kevin Decherf
2013-02-20  1:09                       ` Gregory Farnum
2013-02-26 17:57                         ` Kevin Decherf
2013-02-26 18:10                           ` Gregory Farnum
2013-02-26 19:58                             ` Kevin Decherf
2013-02-26 20:26                               ` Gregory Farnum
2013-02-26 21:57                                 ` Kevin Decherf [this message]
2013-02-26 21:58                                   ` Gregory Farnum
2013-02-27  0:03                                     ` Yan, Zheng 
2013-02-27  0:14                                       ` Sage Weil
     [not found]                                     ` <20130227004923.GQ16091@kdecherf.com>
     [not found]                                       ` <CAPYLRzhbygkA9=DkVr474Nw8AOC2hAFG-1D6uS4WyfR=kUBXWQ@mail.gmail.com>
     [not found]                                         ` <20130308232943.GA2197@kdecherf.com>
     [not found]                                           ` <20130308232943.GA2197-fShu9kyPgSlWk0Htik3J/w@public.gmane.org>
2013-03-15 20:32                                             ` Greg Farnum
     [not found]                                               ` <ECAA10260D284057A52D78127F8634A8-4GqslpFJ+cxBDgjK7y7TUQ@public.gmane.org>
2013-03-15 22:40                                                 ` Marc-Antoine Perennou
2013-03-15 22:53                                                   ` Greg Farnum

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=20130226215702.GI16091@kdecherf.com \
    --to=kevin@kdecherf.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=greg@inktank.com \
    --cc=sam.lang@inktank.com \
    --cc=support@clever-cloud.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.