Skip to contentSkip to conversation

Hardware recommandation : RAM and PGLog

Documentation David Casier AEVOO 3 participants 4 messages Jul 19, 2015 – Jul 21, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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.

#2 lore raw

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 <[email protected]>:

Quoted 19 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
thanks
huangjun
#3 lore raw
In reply to David Casier AEVOO
Quoted 11 lines · David Casier AEVOO

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

#4 lore raw

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.

Quoted 32 lines · Sage Weil
Quoted 11 lines · David Casier AEVOO

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html