[PATCH phosphor-event] Add support for limiting the size of the event log DB

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu Mar 17 17:20:26 AEDT 2016


embedded systems only have so much space.  This feature enables the event deamon to
limit the number of bytes used for logs via an input parameter

Limit the DB to 1k...
    /usr/sbin/phosphor-eventd -s 1000

Without the parameter the db size is unlimited.

When the db hits the limit, the event is NOT logged to the db.  It is however
added (without debug data) to the syslog still AND an error message is posted
in the syslog...

     event logger reached maximum capacity, event not logged

Interfaces exist already to clear the entire db and individual events.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/phosphor-event/15)
<!-- Reviewable:end -->


https://github.com/openbmc/phosphor-event/pull/15

Chris Austen (1):
  Add support for limiting the size of the event log DB

 event_messaged.C | 30 +++++++++++++++++--
 message.C        | 87 +++++++++++++++++++++++++++++++++++++++++++++-----------
 message.H        |  5 +++-
 test.C           | 30 +++++++++++++++----
 4 files changed, 128 insertions(+), 24 deletions(-)

-- 
2.7.1




More information about the openbmc mailing list