* [Documentation] Hardware recommandation : RAM and PGLog
[not found] <55ABC8E5.1030304@aevoo.fr>
@ 2015-07-19 16:07 ` David Casier AEVOO
2015-07-20 0:50 ` huang jun
2015-07-20 13:13 ` Sage Weil
0 siblings, 2 replies; 4+ messages in thread
From: David Casier AEVOO @ 2015-07-19 16:07 UTC (permalink / raw)
To: ceph-devel
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?
Cordialement,
David Casier.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Documentation] Hardware recommandation : RAM and PGLog
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
1 sibling, 0 replies; 4+ messages in thread
From: huang jun @ 2015-07-20 0:50 UTC (permalink / raw)
To: David Casier AEVOO; +Cc: ceph-devel
hi, i don't think the pg log can be 500MB in size, may be the osd
daemon hold the data of PULL messages in memory during recovery,
there are some options to configure it, like
"osd_client_message_size_cap" and "osd_client_message_cap".
In our test environment, the OSD daemon can consume as mush as 8GB
memory when we add new osd to the cluster.
2015-07-20 0:07 GMT+08:00 David Casier AEVOO <david.casier@aevoo.fr>:
> 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?
>
> Cordialement,
> David Casier.
> --
> 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
--
thanks
huangjun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Documentation] Hardware recommandation : RAM and PGLog
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
1 sibling, 1 reply; 4+ messages in thread
From: Sage Weil @ 2015-07-20 13:13 UTC (permalink / raw)
To: David Casier AEVOO; +Cc: ceph-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Documentation] Hardware recommandation : RAM and PGLog
2015-07-20 13:13 ` Sage Weil
@ 2015-07-21 15:00 ` David Casier AEVOO
0 siblings, 0 replies; 4+ messages in thread
From: David Casier AEVOO @ 2015-07-21 15:00 UTC (permalink / raw)
To: ceph-devel; +Cc: Sage Weil
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-21 15:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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 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.