US 12,481,605 B2
Sharing state information using shared memory
Vijay Varma Galbaransingh, Vancouver (CA); Christopher Elisha Neilson, Coquitlam (CA); Sebastian Sapa, Vancouver (CA); and Duncan Stuart Ritchie, Bowen Island (CA)
Assigned to ARISTA NETWORKS, INC., Santa Clara, CA (US)
Filed by Arista Networks, Inc., Santa Clara, CA (US)
Filed on Mar. 25, 2024, as Appl. No. 18/615,659.
Prior Publication US 2025/0298757 A1, Sep. 25, 2025
Int. Cl. G06F 13/16 (2006.01)
CPC G06F 13/1663 (2013.01) [G06F 13/1621 (2013.01); G06F 13/1642 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method in a computing device to manage access to a shared memory data structure, the method comprising:
a writer process, running on the computing device, enqueueing entries comprising received data objects on the shared memory data structure;
the writer process, subsequent to enqueueing one or more entries on the shared memory data structure, notifying at least one reader process running on the computing device to inform the reader process of newly enqueued entries in the shared memory data structure;
the reader process, subsequent to being notified, dequeuing a first entry from the shared memory data structure;
the reader process, subsequent to dequeuing the first entry from the shared memory data structure, notifying the writer process that the first entry was dequeued; and
the writer process, subsequent to being notified by the reader process, ageing out one or more entries in the shared memory data structure, wherein memory allocated to aged out entries is reused.