US 11,954,529 B2
Method, device and computer program product for tracking lock
Ming Zhang, Beijing (CN); Huan Chen, Beijing (CN); Chen Gong, Beijing (CN); and Shuo Lv, Beijing (CN)
Assigned to EMC IP Holding Company LLC, Hopkinton, MA (US)
Filed by EMC IP Holding Company LLC, Hopkinton, MA (US)
Filed on Jul. 24, 2020, as Appl. No. 16/937,891.
Claims priority of application No. 202010286424.4 (CN), filed on Apr. 13, 2020.
Prior Publication US 2021/0318910 A1, Oct. 14, 2021
Int. Cl. G06F 9/46 (2006.01); G06F 9/30 (2018.01); G06F 9/50 (2006.01); G06F 9/52 (2006.01)
CPC G06F 9/5027 (2013.01) [G06F 9/30047 (2013.01); G06F 9/3009 (2013.01); G06F 9/526 (2013.01); G06F 2209/5011 (2013.01); G06F 2209/508 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for tracking a lock which restricts access to a computerized resource of a computerized apparatus having limited storage resources, comprising:
placing an event into an event queue of the computerized apparatus, the event comprising object information;
extracting the object information in the event through a thread in a thread pool;
recording lock information comprising the object information according to a determination that the thread executes a lock operation which operates a lock on the computerized resource of the computerized apparatus;
monitoring a utilization rate of a storage pool of the computerized apparatus;
determining whether the utilization rate is greater than a predetermined threshold; and
switching, according to a determination that the utilization rate is greater than the predetermined threshold, a tracking system to a bypass mode in which the lock information is recorded but not analyzed;
wherein recording the lock information comprises:
distributing a standby repository from a usable pool in the storage pool to a kernel, the standby repository comprising a plurality of storage units for recording lock information;
recording the lock information in the standby repository to form a used repository; and
transferring the used repository from the kernel to a used pool in the storage pool.