"debug ms = 0/5" logging ...
While the default messenger logging setting has always been an impediment to high queue-depth, high IOPS workloads, in Luminous it appears to have slowed down librbd small block IOPS by an additional 10- 15%. When compared against cases where the messenger logs are disabled, it's more than a 40% IOPS degradation to have the messenger logs enabled.
From some quick "perf" runs, the Luminous delta seems to be from from a few places: (1) hobject_t is now used in the OSD messages, and it's more expensive to construct[2] and print; (2) log messages are longer in length; and (3) async messenger is more verbose per message at log level 1 compared to simple messenger.
I'd hate to advocate the sledge-hammer approach to say everyone should deploy librbd with "debug ms = 0" -- especially since I've relied on decoding the in-memory log messages from core dumps as a pseudo-librbd flight recorder in the past.
This seems like an area that could use some team discussion and thought. Perhaps it would be possible to re-use tracepoint hooks where we keep the last X traces in-memory so that they can be dumped and/or are available in the core file. In theory that would at least reduce the expense of converting these trace-like log messages to expensive human readable strings.
Thoughts?
[1] http://tracker.ceph.com/issues/21846
[2] http://tracker.ceph.com/issues/21845
--
Jason
Quoted 18 lines · Jason Dillaman
While the default messenger logging setting has always been an impediment to high queue-depth, high IOPS workloads, in Luminous it appears to have slowed down librbd small block IOPS by an additional 10- 15%. When compared against cases where the messenger logs are disabled, it's more than a 40% IOPS degradation to have the messenger logs enabled.
From some quick "perf" runs, the Luminous delta seems to be from from a few places: (1)
hobject_tis now used in the OSD messages, and it's more expensive to construct[2] and print; (2) log messages are longer in length; and (3) async messenger is more verbose per message at log level 1 compared to simple messenger.I'd hate to advocate the sledge-hammer approach to say everyone should deploy librbd with "debug ms = 0" -- especially since I've relied on decoding the in-memory log messages from core dumps as a pseudo-librbd flight recorder in the past.
Quoted 6 lines
This seems like an area that could use some team discussion and thought. Perhaps it would be possible to re-use tracepoint hooks where we keep the last X traces in-memory so that they can be dumped and/or are available in the core file. In theory that would at least reduce the expense of converting these trace-like log messages to expensive human readable strings.
What you suggest with tracepoints seems very sensible to me.
The extreme policy would be to say that all debug logging is really just tracepoints done inefficiently -- in the case of Ceph we probably only really care on that OSD IO path though.
John
Quoted 12 lines
Thoughts?
[1] http://tracker.ceph.com/issues/21846
[2] http://tracker.ceph.com/issues/21845--
Jason
--
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
Quoted 7 lines · John Spray
Quoted 6 lines · Jason Dillaman
While the default messenger logging setting has always been an impediment to high queue-depth, high IOPS workloads, in Luminous it appears to have slowed down librbd small block IOPS by an additional 10- 15%. When compared against cases where the messenger logs are disabled, it's more than a 40% IOPS degradation to have the messenger logs enabled.
As I remembered, luminous will add extra line for each message compared to jewel.
Quoted 6 lines
Quoted 6 lines
From some quick "perf" runs, the Luminous delta seems to be from from a few places: (1)
hobject_tis now used in the OSD messages, and it's more expensive to construct[2] and print; (2) log messages are longer in length; and (3) async messenger is more verbose per message at log level 1 compared to simple messenger.
it's new added.
Quoted 37 lines
Quoted 6 lines
I'd hate to advocate the sledge-hammer approach to say everyone should deploy librbd with "debug ms = 0" -- especially since I've relied on decoding the in-memory log messages from core dumps as a pseudo-librbd flight recorder in the past.
Quoted 6 lines
This seems like an area that could use some team discussion and thought. Perhaps it would be possible to re-use tracepoint hooks where we keep the last X traces in-memory so that they can be dumped and/or are available in the core file. In theory that would at least reduce the expense of converting these trace-like log messages to expensive human readable strings.
What you suggest with tracepoints seems very sensible to me.
The extreme policy would be to say that all debug logging is really just tracepoints done inefficiently -- in the case of Ceph we probably only really care on that OSD IO path though.
John
Quoted 6 lines
Thoughts?
[1] http://tracker.ceph.com/issues/21846
[2] http://tracker.ceph.com/issues/21845Quoted 6 lines
--
Jason
--
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--
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
Quoted 13 lines · Haomai Wang
Quoted 7 lines · John Spray
Quoted 6 lines · Jason Dillaman
While the default messenger logging setting has always been an impediment to high queue-depth, high IOPS workloads, in Luminous it appears to have slowed down librbd small block IOPS by an additional 10- 15%. When compared against cases where the messenger logs are disabled, it's more than a 40% IOPS degradation to have the messenger logs enabled.
As I remembered, luminous will add extra line for each message compared to jewel.
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
From some quick "perf" runs, the Luminous delta seems to be from from a few places: (1)
hobject_tis now used in the OSD messages, and it's more expensive to construct[2] and print; (2) log messages are longer in length; and (3) async messenger is more verbose per message at log level 1 compared to simple messenger.it's new added.
Which extra log messages are we printing out in AsyncMessenger that aren't in SimpleMessenger? Is it just the log line printing out the message on _send_message? Is there any reason we can't turn that down to a lower level like in SimpleMessenger?
-Greg