From: "Jim Schutt" <jaschut@sandia.gov>
To: bkw1a@ayesha.phys.virginia.edu
Cc: Sage Weil <sage@inktank.com>, ceph-devel@vger.kernel.org
Subject: Re: Estimating OSD memory requirements (was Re: stuff for v0.56.4)
Date: Mon, 11 Mar 2013 12:01:55 -0600 [thread overview]
Message-ID: <513E1C13.50104@sandia.gov> (raw)
In-Reply-To: <201303111510.r2BFAUcx011721@ayesha.phys.virginia.edu>
Hi Bryan,
On 03/11/2013 09:10 AM, Bryan K. Wright wrote:
> sage@inktank.com said:
>> On Thu, 7 Mar 2013, Bryan K. Wright wrote:
>>
>> sage@inktank.com said:
>>> - pg log trimming (probably a conservative subset) to avoid memory bloat
>>
>> Anything that reduces the size of OSD processes would be appreciated.
>> You can probably do this with just
>> log max recent = 1000
>> By default it's keeping 100k lines of logs in memory, which can eat a lot of
>> ram (but is great when debugging issues).
>
> Thanks for the tip about "log max recent". I've made this
> change, but it doesn't seem to significantly reduce the size of the
> OSD processes.
>
> In general, are there some rules of thumb for estimated the
> memory requirements for OSDs? I see processes blow up to 8gb of
> resident memory sometimes. If I need to allow for that much memory
> per OSD process, I may have to just walk away from ceph.
>
> Does the memory usage scale with the size of the disks?
> I've been trying to run 12 OSDs with 12 2TB disks on a single box.
> Would I be better off (memory-usage-wise) if I RAIDed the disks
> together and used a single OSD process?
>
> Thanks for any advice.
You might also try tuning "osd client message size cap"; its
current default is 500 MiB.
During the periods your aggregate applied write load is higher
than your OSD aggregate write bandwidth (taking into account
replicas), you'll be buffering up this amount of client data.
Since it only applies to incoming client messages, to figure
total memory use I believe you need to multiply that by the
number of replicas you're using.
FWIW, for sequential writes from lots of clients, I can
maintain full write bandwidth with "osd client message size
cap" tuned to 60 MiB.
-- Jim
>
> Bryan
>
>
prev parent reply other threads:[~2013-03-11 18:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-05 23:10 stuff for v0.56.4 Sage Weil
2013-03-06 8:37 ` Wido den Hollander
2013-03-07 15:08 ` Travis Rhoden
2013-03-07 18:24 ` Yehuda Sadeh
2013-03-07 21:05 ` Bryan K. Wright
2013-03-07 21:27 ` Sage Weil
2013-03-11 15:10 ` Estimating OSD memory requirements (was Re: stuff for v0.56.4) Bryan K. Wright
2013-03-11 15:51 ` Greg Farnum
2013-03-11 18:01 ` Jim Schutt [this message]
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=513E1C13.50104@sandia.gov \
--to=jaschut@sandia.gov \
--cc=bkw1a@ayesha.phys.virginia.edu \
--cc=ceph-devel@vger.kernel.org \
--cc=sage@inktank.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.