CPC G06F 3/0604 (2013.01) [G06F 3/0656 (2013.01); G06F 3/0679 (2013.01)] | 15 Claims |
1. An event log management method comprising:
determining, by a controller, a new event associated with a storage device has occurred;
determining, by the controller, whether an event log associated with the new event can be stored in an event log chunk stored in an event log buffer, wherein the event log chunk comprises a header and a plurality of event logs, and wherein the header comprises an append offset field storing a value indicating where in the event log buffer a new event log is to be stored, and a delete offset field operable to store a value indicating where an oldest event log is stored in the event log buffer;
deleting, by the controller, a number of old event logs starting from the oldest event log among old event logs of the event log chunk stored in the event log buffer to accommodate a size of the event log associated with the new event if the event log associated with the new event can be stored in the event log chunk stored in the event log buffer; and
storing, by the controller, the event log associated with the new event starting at a start position indicated by the append offset field.
|