Check patentability & draft patents in minutes with Patsnap Eureka AI!

String matching method and system based on graphics processing unit (GPU) calculation

A string matching and feature string technology, applied in the field of information identification, can solve the problems of high memory access overhead, large number of startup threads, and low cache utilization, so as to improve the cache hit rate, increase the cache utilization, and facilitate the The effect of centralized fetching

Active Publication Date: 2014-02-05
NEUSOFT CORP
View PDF2 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] In view of the above problems, the object of the present invention is to provide a method and system for character string matching based on GPU calculations, to solve problems such as low cache utilization, a large number of startup threads, and large memory access overhead, thereby improving the efficiency of the feature string matching process. performance

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
  • String matching method and system based on graphics processing unit (GPU) calculation
  • String matching method and system based on graphics processing unit (GPU) calculation
  • String matching method and system based on graphics processing unit (GPU) calculation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more embodiments. It may be evident, however, that these embodiments may be practiced without these specific details.

[0044] Based on the problem that the matching efficiency is not high in the aforementioned two methods, the technical solution of the present invention uses adjacent threads to match data with similar positions, increases the hit of the Cache, and reduces the total number of threads started by dividing the windows at a certain distance; At the same time, some data overlap in the matching windows of adjacent threads does not need to consider the empty string prefix matching, which can reduce the internal branches and processes of each thread, and generally improve the matching efficiency of the GPU.

[0045] The character string matching method based on GPU calculation in the present invention is divid...

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 provides a string matching method and system based on graphics processing unit (GPU) calculation. The string matching method comprises a central processing unit (CPU) preprocessing stage and a GPU matching stage, wherein the CPU preprocessing stage comprises steps of preprocessing characteristic strings and data to be matched, allocating data cache to be matched and result cache onto a CPU main memory and a GPU global memory, and coping the preprocessed data to be matched into the result cache in the GPU global memory for storage from the data cache to be matched in the CPU main memory; the GPU matching stage comprises steps of utilizing a GPU multi-threaded task parallel execution mode to respectively match the preprocessed data to be matched in GPU threads with the preprocessed characteristic string prefixes and the preprocessed characteristic string suffixes, and determining the successfully- matched data to be matched and corresponding characteristic strings word by word. By means of the string matching method and system based on the GPU calculation, the problems of low utilization rate of cache, multiple starting threads, large visiting and memory expenditure and the like are solved, and performance of the string matching process is improved.

Description

technical field [0001] The present invention relates to the technical field of information identification, and more specifically, to a string matching method and system based on GPU calculation. Background technique [0002] With the continuous development of network technology and increasingly rich network applications, there are endless ways to attack the network, so network security products also integrate more and more security functions, such as intrusion prevention systems, virus detection, spam detection, application identification etc. The application of network security products needs to be based on deep data packet inspection of passing network traffic, but the pattern matching of deep packet inspection is the bottleneck that restricts the performance of the entire security product system. [0003] With the development of GPU (Graphic Processing Unit, Graphics Processing Unit) technology, the GPU has become an application processing core suitable for high paralleli...

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/38
Inventor 侯智瀚杨枭
Owner NEUSOFT CORP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More