Hash table concurrent access performance optimization method under multi-core environment

A technology for access performance and optimization methods, applied in concurrent instruction execution, memory address/allocation/relocation, instruments, etc., can solve problems such as high concurrent connection processing, lock competition, cache consistency overhead and system scalability, and achieve improved Network IO efficiency, improving scalability, and avoiding the effects of consistency overhead

Active Publication Date: 2015-04-22
HUAZHONG UNIV OF SCI & TECH
View PDF2 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Its purpose is to solve the technical problems of high concurrent connection processing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hash table concurrent access performance optimization method under multi-core environment
  • Hash table concurrent access performance optimization method under multi-core environment
  • Hash table concurrent access performance optimization method under multi-core environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0026] The overall structure of the system is as figure 1 As shown, a hash table concurrent access performance optimization method under a multi-core environment of the present invention includes the following technical features:

[0027] (1) For the concurrent connection processing of high concurrent access to the hash table, a semi-synchronous and semi-asynchronous network connection proce...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a hash table concurrent access performance optimization method under a multi-core environment. The method comprises the steps that aiming at the concurrent connection treatment of high concurrent access of a hash table, a half-synchronous half-asynchronous network connection treatment mechanism is adopted; aiming at the concurrent data treatment of high concurrent access of the hash table, the hash table is divided into multiple independent sub hash tables according to the number of CPU cores, working threads correspond to the independent sub hash tables in a one-to-one mode, and each working thread is only in charge of the data of the corresponding sub hash table; a main thread selects the corresponding working threads to process by adopting a consistent hash strategy according to the Key of each datum; each sub hash table maintains one LRU queue, when a memory space is insufficient, cold data are deleted, and new elements are inserted. The method improves the concurrent connection treatment capacity and the concurrent access capacity of the hash table, and the synchronization overhead problem and the cache consistency overhead problem are solved when the shared hash table is visited by multiple threads.

Description

technical field [0001] The invention belongs to the field of performance optimization of multi-core software, and more specifically relates to a method for optimizing concurrent access performance of a hash table in a multi-core environment. Background technique [0002] A hash table is a commonly used data structure that accesses records by mapping a key value to a location in the table to speed up lookups. Due to its high search efficiency, it is widely used in practical applications such as storage systems and search engines, such as hash indexes in databases and hash table structures in cache systems. A single-core processor improves the performance of the processor by increasing the main frequency, but the resulting power consumption and heat dissipation problems have become a bottleneck for further improvement of the processor speed. Subsequently, processor manufacturers began to expand the CPU horizontally, integrating multiple computing cores on one processor, that ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/38G06F12/08G06F12/0842G06F12/0884
Inventor 郑然金海王文瑾章勤贾金莉
Owner HUAZHONG UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products