US 12,169,741 B2
Shared memory allocator with child process
Stuart Ritchie, Bowen Island, CA (US); Sebastian Sapa, Vancouver (CA); Christopher Neilson, Vancouver (CA); Eric Secules, Vancouver (CA); and Peter Edwards, Santa Clara, CA (US)
Assigned to ARISTA NETWORKS, INC., Santa Clara, CA (US)
Filed by Arista Networks, Inc., Santa Clara, CA (US)
Filed on Aug. 22, 2023, as Appl. No. 18/453,832.
Application 18/453,832 is a continuation of application No. 17/325,539, filed on May 20, 2021, granted, now 11,748,179.
Application 17/325,539 is a continuation of application No. 16/516,995, filed on Jul. 19, 2019, granted, now 11,023,299, issued on Jun. 1, 2021.
Claims priority of provisional application 62/739,118, filed on Sep. 28, 2018.
Prior Publication US 2023/0393914 A1, Dec. 7, 2023
Int. Cl. G06F 9/54 (2006.01); G06F 9/445 (2018.01); G06F 9/50 (2006.01); G06F 13/16 (2006.01)
CPC G06F 9/544 (2013.01) [G06F 9/44536 (2013.01); G06F 9/5016 (2013.01); G06F 13/1663 (2013.01); G06F 2209/503 (2013.01); G06F 2209/504 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method in a network device to mark a memory region in a memory of the network device, the method comprising:
receiving an indication to create a child process by a writer, wherein the writer writes data stored in a writer memory region of memory that is shared between the writer and a plurality of readers, wherein the writer, the plurality of readers, and the child process run on the network device;
creating the child process, the child process sharing the writer memory region with the writer;
incrementing a process counter in connection with creating the child process;
marking buffers in the writer memory region, previously allocated by the writer, to indicate the child process is accessing the buffers; and
deallocating marked buffers, wherein deallocation of buffers that were allocated prior to the child process creation are delayed.