Invention Grant
- Patent Title: Method and system for lock free statistics collection
- Patent Title (中): 无锁统计收集的方法和系统
-
Application No.: US13928576Application Date: 2013-06-27
-
Publication No.: US09128749B1Publication Date: 2015-09-08
- Inventor: Rock L. Wang , Shu-Shang Sam Wei
- Applicant: EMC Corporation
- Applicant Address: US MA Hopkinton
- Assignee: EMC CORPORATION
- Current Assignee: EMC CORPORATION
- Current Assignee Address: US MA Hopkinton
- Agency: Dergosits & Noah LLP
- Agent Todd A. Noah
- Main IPC: G06F9/455
- IPC: G06F9/455 ; G06F9/46 ; G06F9/54

Abstract:
Lock free collection of performance data from an application program executing in a computer system having a multi-core central processing unit is described. A data collection mechanism creates a water mark queue that includes a data structure to store an array and plurality of pointers, including head, tail, high water mark and low water mark pointers. A plurality of worker threads is spawned, each configured to collect and store data from the application program. The data collection includes incrementing the head pointer, reading an index from a head element of the array and incrementing the high water mark pointer in a single transaction. A context is retrieved corresponding to the retrieved index. An operation is performed based on information contained in the retrieved context. Subsequently, the tail pointer is incremented, the index is written to a tail element of the array and the low water mark pointer is incremented.
Information query