US 12,032,824 B2
Event log management method, controller and storage device
Do Geon Park, Icheon-si (KR); and Soong Sun Shin, Icheon-si (KR)
Assigned to SK hynix Inc., Icheon-si (KR)
Filed by SK hynix Inc., Icheon-si (KR)
Filed on Jun. 9, 2022, as Appl. No. 17/806,237.
Claims priority of application No. 10-2021-0120354 (KR), filed on Sep. 9, 2021.
Prior Publication US 2023/0075820 A1, Mar. 9, 2023
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0604 (2013.01) [G06F 3/0656 (2013.01); G06F 3/0679 (2013.01)] 15 Claims
OG exemplary drawing
 
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.