From: David Casier AEVOO <david.casier@aevoo.fr>
To: ceph-devel@vger.kernel.org
Cc: Sage Weil <sage@newdream.net>
Subject: Re: [Documentation] Hardware recommandation : RAM and PGLog
Date: Tue, 21 Jul 2015 17:00:14 +0200 [thread overview]
Message-ID: <55AE5E7E.9050806@aevoo.fr> (raw)
In-Reply-To: <alpine.DEB.2.00.1507200610310.8878@cobra.newdream.net>
OK,
I just understand the need of transactions for the trim takes place
after changing settings.
What is the risk to have too low a value for the parameter
osd_min_pg_log_entries (not osd_max_pg_log_entries in degraded
environment) ?
David.
On 07/20/2015 03:13 PM, Sage Weil wrote:
> On Sun, 19 Jul 2015, David Casier AEVOO wrote:
>> Hi,
>> I have a question about PGLog and RAM consumption.
>>
>> In the documentation, we read "OSDs do not require as much RAM for regular
>> operations (e.g., 500MB of RAM per daemon instance); however, during recovery
>> they need significantly more RAM (e.g., ~1GB per 1TB of storage per daemon)"
>>
>> But in fact, all pg log are read in the start of ceph-osd daemon and put in
>> RAM ( pg->read_state(store, bl); )
>>
>> Is this normal behavior or I have a defect in my environment?
> There are two tunables that control how many pg log entries we keep
> around. When teh PG is healthy, we keep ~1000, and when the PG is
> degraded, we keep more, to expand the time window over which a recovering
> OSD will be able to do regular log-based recovery instead of a more
> expensive backfill. This is one source of additional memory.
>
> Others are the missing sets (lists of missing/degraded objects) and
> messages/data/state associated with objcts that are being
> recovered/copied.
>
> Note that the numbers in teh documentation are pretty rough rules of
> thumb. At some point it would be great to build a model for how much RAM
> the osd consumes as a function of the various configurables (pg log size,
> pg count, avg object size, etc.).
>
> sage
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2015-07-21 15:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <55ABC8E5.1030304@aevoo.fr>
2015-07-19 16:07 ` [Documentation] Hardware recommandation : RAM and PGLog David Casier AEVOO
2015-07-20 0:50 ` huang jun
2015-07-20 13:13 ` Sage Weil
2015-07-21 15:00 ` David Casier AEVOO [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=55AE5E7E.9050806@aevoo.fr \
--to=david.casier@aevoo.fr \
--cc=ceph-devel@vger.kernel.org \
--cc=sage@newdream.net \
/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.