CN108920092A - Data manipulation method, device and the electronic equipment of internal storage data - Google Patents
Data manipulation method, device and the electronic equipment of internal storage data Download PDFInfo
- Publication number
- CN108920092A CN108920092A CN201810426874.1A CN201810426874A CN108920092A CN 108920092 A CN108920092 A CN 108920092A CN 201810426874 A CN201810426874 A CN 201810426874A CN 108920092 A CN108920092 A CN 108920092A
- Authority
- CN
- China
- Prior art keywords
- cache table
- mark
- data
- master
- write
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
Abstract
The embodiment of the invention provides the data manipulation method of internal storage data, device and electronic equipments.Wherein, the method includes:When receiving write operation instruction, to the master cache table in preset internal storage data cache table group, the indicated data write operation of the write operation instruction is executed;After having executed data write operation to the master cache table, the data content full dose in the master cache table is synchronized to in the slave cache table for writing mark;After synchronously completing, it is interchangeable described two from the mark of cache table;When receiving read operation instruction, indicated data query operation is instructed to having the slave cache table for reading mark to execute the read operation.This programme can reduce memory usage under the premise of guaranteeing that network has high-performance high concurrent processing capacity.
Description
Technical field
The present invention relates to computer application technology, more particularly to the data manipulation method of internal storage data, device and
Electronic equipment.
Background technique
The Hash table for belonging to internal storage data cache table is a kind of form of expression of internal storage data.Hash table is according to key code
Value (Key value) and the data structure directly to access, specifically, key value by being mapped in table one by it
Position records to access, to accelerate the speed searched.
Data manipulation for internal storage data includes the write-in and inquiry of internal storage data.In multicore/multithreading system ring
Under border, because multicore/multithreading needs to consider during using Hash table therefore relationship that is synchronous and competing generallys use
The mode for adding Read-Write Locks or spin lock to Hash table realizes that read-write synchronizes.The Hash table for adding Read-Write Locks or spin lock, in number
When according to write-in, being in the lock state can not be inquired;In data query, being similarly in lock state can not be counted
According to write-in.
In practical application, when network needs high-performance high concurrent processing capacity, the Hash table of locking usually can be at
For the bottleneck of performance.In order to which network can have high performance processing capacity, existing processing method is come by without lockization means
The synchronization for realizing Hash table data, so that the read-write of data is highly efficient in Hash table.With storage address parsing association in Hash table
For discussing (Address Resolution Protocol, abbreviation ARP) relevant information, in order to which network can have high performance place
The table for storing ARP relevant information is designed to that each core/per thread is tieed up under multicore/multithreading system environments by reason ability
A Hash table is protected, then needs the synchronization of data content (write-in) updated arriving it after the Hash table of a cores threads updates
In the Hash table of his cores threads, so that other cores threads are more efficient to the inquiry of Hash table, wherein the synchronous side of specific data
Method can use without lockization circle queue and realize.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
In order to which network can have high performance processing capacity, under multicore/multithreading system environments, each cores threads
Safeguard a Hash table, the Hash table quantity for needing to safeguard is more, and the memory of occupancy is larger.
Summary of the invention
The data manipulation method, device and electronic equipment for being designed to provide internal storage data of the embodiment of the present invention, with
Under the premise of guaranteeing that network has high-performance high concurrent processing capacity, memory usage is reduced.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of data manipulation method of internal storage data, the method includes:
When receiving write operation instruction, to the master cache table in preset internal storage data cache table group, write described in execution
Data write operation indicated by operational order;It wherein, include a master cache table and two in the internal storage data cache table group
A from cache table, described two one being identified as table from cache table write mark, another table is identified as reading mark;
It is after having executed data write operation to the master cache table, the data content full dose in the master cache table is same
Step, which extremely has, to be write in the slave cache table of mark;
After synchronously completing, it is interchangeable described two from the mark of cache table;
It is indicated to having the slave cache table for reading mark to execute read operation instruction when receiving read operation instruction
Data query operation.
Optionally, the method for determination of each table in the internal storage data cache table group, including:
By internal storage data cache table generated in initialization procedure, it is determined as master cache table;
The master cache table is copied twice, obtains two from cache table, and by two from one in cache table
The mark of table is set as reading mark, and the mark of another table is set as writing mark.
Optionally, described to be copied the master cache table twice, two are obtained from cache table, and by two from caching
The mark of a table in table is set as reading mark, and the mark of another table is set as the step of writing mark, including:
The master cache table is copied twice, two is obtained from cache table, initializes two references from cache table
It is counted as 0;
Two are set as to read mark from the mark of a table in cache table, the mark of another table is set as writing mark
Know;
It is described by described two the step of being interchangeable from the mark of cache table, including:
Described two marks from cache table and reference count are interchangeable;
The method also includes:
To the process that there is the slave cache table for reading mark to execute the indicated data query operation of the read operation instruction
In, the reference count with the slave cache table for reading mark is added 1, and when terminating inquiry, which is added to 1 slave caching
The reference count of table reverts to 0.
Optionally, described after having executed data write operation to the master cache table, by the number in the master cache table
It is synchronized to according to content full dose with the step in the slave cache table for writing mark, including:
After having executed data write operation to the master cache table, the reference meter with the slave cache table for writing mark is judged
Whether number is 0;
If having the reference count for the slave cache table for writing mark is 0, by the data content full dose in the master cache table
It is synchronized to have and write in the slave cache table of mark;
If not being 0 with the reference count of the slave cache table of mark is write, in the reference with the slave cache table for writing mark
After being counted as 0, the data content full dose in the master cache table is synchronized to in the slave cache table for writing mark.
Optionally, the master cache table in preset internal storage data cache table group executes write operation instruction institute
The step of data write operation of instruction, including:
Detect whether the master cache table is in write-in or inquiry state, when the master cache table is not at write-in or inquiry
When state, the indicated data write operation of the write operation instruction is executed.
Optionally, the method also includes:
If when the data searched needed for not inquired in there is the slave cache table for reading mark, to the master cache table
Execute the indicated data query operation of the read operation instruction.
Optionally, the step that the indicated data query operation of the read operation instruction is executed to the master cache table
Suddenly, including:
Detect whether the master cache table is in write state, when the master cache table is not at write state, to institute
It states master cache table and executes the indicated data query operation of the read operation instruction.
Second aspect, the embodiment of the invention also provides a kind of data operation device of internal storage data, described device includes:
Data write. module, for when receive write operation instruction when, to the master in preset internal storage data cache table group
Cache table executes the indicated data write operation of the write operation instruction;Wherein, include in the internal storage data cache table group
One master cache table and two are from cache table, and described two one being identified as table from cache table write mark, another table
It is identified as reading mark;
Data simultaneous module is used for after having executed data write operation to the master cache table, by the master cache table
In data content full dose be synchronized to have write in the slave cache table of mark;
Mark exchanges module, for being interchangeable described two from the mark of cache table after synchronously completing;
First enquiry module, for when receive read operation instruction when, to have read mark slave cache table execute described in
The indicated data query operation of read operation instruction.
Optionally, described device further includes:Determining module;
The determining module, is specifically used for:
By internal storage data cache table generated in initialization procedure, it is determined as master cache table;
The master cache table is copied twice, obtains two from cache table, and by two from one in cache table
The mark of table is set as reading mark, and the mark of another table is set as writing mark.
Optionally, described device further includes:Initialization module;
The initialization module, is specifically used for:
The master cache table is copied twice, two is obtained from cache table, initializes two references from cache table
It is counted as 0;
Two are set as to read mark from the mark of a table in cache table, the mark of another table is set as writing mark
Know;
The mark exchanges module, is specifically used for:Described two marks from cache table and reference count are interchangeable;
Described device further includes:Counting module;
The counting module, is specifically used for:Signified to having the slave cache table for reading mark to execute the read operation instruction
During the data query operation shown, the reference count with the slave cache table for reading mark is added 1, and when terminating inquiry,
The reference count of 1 slave cache table is added to revert to 0 the reference count.
Optionally, the data simultaneous module, is specifically used for:
After having executed data write operation to the master cache table, the reference meter with the slave cache table for writing mark is judged
Whether number is 0;
If having the reference count for the slave cache table for writing mark is 0, by the data content full dose in the master cache table
It is synchronized to have and write in the slave cache table of mark;
If not being 0 with the reference count of the slave cache table of mark is write, in the reference with the slave cache table for writing mark
After being counted as 0, the data content full dose in the master cache table is synchronized to in the slave cache table for writing mark.
Optionally, the Data write. module, is specifically used for:
Detect whether the master cache table is in write-in or inquiry state, when the master cache table is not at write-in or inquiry
When state, the indicated data write operation of the write operation instruction is executed.
Optionally, described device further includes:Second enquiry module;
Second enquiry module, if the number for being searched needed for not inquired in there is the slave cache table for reading mark
According to when, then the indicated data query operation of read operation instruction is executed to the master cache table.
Optionally, second enquiry module, is specifically used for:
Detect whether the master cache table is in write state, when the master cache table is not at write state, to institute
It states master cache table and executes the indicated data query operation of the read operation instruction.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, which is characterized in that including processor, communication
Interface, memory and communication bus, wherein processor, communication interface, memory complete mutual lead to by communication bus
Letter;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes a kind of memory described in above-mentioned first aspect
The data manipulation method of data.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
Instruction is stored in storage media, when run on a computer, so that computer executes one kind described in above-mentioned first aspect
The data manipulation method of internal storage data.
5th aspect, the embodiment of the invention also provides a kind of computer program products comprising instruction, when it is being calculated
When being run on machine, so that computer executes a kind of data manipulation method of internal storage data described in above-mentioned first aspect.
In scheme provided in an embodiment of the present invention, when network needs high-performance high concurrent processing capacity, it is only necessary to safeguard
Three internal storage data cache tables, execute data write operation in master cache table, execute in having the slave cache table for reading mark
Data content full dose in master cache table is synchronized to by data query operation after master cache table has executed data write operation
With in the slave cache table for writing mark, two are interchangeable from the mark of cache table after synchronously completing.Compared with the existing technology,
This programme does not need the internal storage data cache table that each cores threads safeguard oneself under multicore/multithreading system environments, interior
The quantity of deposit data cache table and the quantity of cores threads are unrelated, save memory headroom, therefore, can have guaranteeing network
Under the premise of high-performance high concurrent processing capacity, memory usage is reduced.Also, it simplifies in internal storage data cache table in data
Hold synchronous process, reduce synchronous difficulty, so that data query operation improves network high-performance high concurrent and handle energy without lockization
Power.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously
Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of flow chart of the data manipulation method of internal storage data provided in an embodiment of the present invention;
Fig. 2 is the logical schematic between a kind of cache table group provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the data manipulation method of another internal storage data provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the data operation device of internal storage data provided in an embodiment of the present invention;
Fig. 5 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
In order under the premise of guaranteeing that network has high-performance high concurrent processing capacity, reduce memory usage, the present invention
Embodiment provides the data manipulation method, device and electronic equipment of internal storage data.
The data manipulation method for being provided for the embodiments of the invention a kind of internal storage data first below is introduced.
It should be noted that a kind of data manipulation method of internal storage data provided by the embodiment of the present invention can be applied to
In electronic equipment, also, the system environments of the electronic equipment can be multicore/multithreading environment, be not limited thereto certainly.
In addition, a kind of internal storage data that the data manipulation method of internal storage data is targeted provided by the embodiment of the present invention,
It can be stored in any internal storage data in computer, the type for the internal storage data that the embodiment of the present invention can be directed to is not made herein
Limitation, for example:Internal storage data can be ARP relevant information, be not limited thereto certainly.Also, institute of the embodiment of the present invention
The internal storage data cache table being related to can be Hash table or ARP table, be not limited thereto certainly.
Also, in order to solve prior art problem, in the embodiment of the present invention, an internal storage data caching can be preset
Table group includes a master cache table and two in the internal storage data cache table group from cache table, described two from cache table
One being identified as table writes mark, another table is identified as reading mark.Specifically, each in the internal storage data cache table group
The method of determination of a table may include:
By internal storage data cache table generated in initialization procedure, it is determined as master cache table;
The master cache table is copied twice, obtains two from cache table, and by two from one in cache table
The mark of table is set as reading mark, and the mark of another table is set as writing mark.
Optionally, in a kind of specific implementation, internal storage data cache table generated in initialization procedure determines
May include for main cache table:
It, can be directly true by the internal storage data cache table generated in initialization procedure when detecting that netinit is completed
It is set to master cache table.
Optionally, in another specific implementation, by internal storage data cache table generated in initialization procedure, really
Being set to master cache table may include:
In data processing, by internal storage data cache table generated in network initialization procedure, determine based on delay
Deposit table.The internal storage data cache table can be, the internal storage data cache table generated in network initialization procedure, but it is deposited
The data related content of storage has been updated, and is the internal storage data cache table after updating.
Correspondingly, master cache table is copied twice, obtaining two processes from cache table can be:When detecting net
When network initialization is completed, the internal storage data cache table generated in initialization procedure is determined as master cache table, it then will be determining
Master cache table is copied twice, obtains two from cache table.Or in data processing, it will be given birth in initialization procedure
At internal storage data cache table be determined as master cache table, then judge whether to execute data write operation in master cache table, such as
Fruit is, then after completing the data write operation in master cache table, master cache table is copied twice, obtains two from caching
Table;If it is not, then master cache table is directly copied twice, two are obtained from cache table.Obtain two from cache table it
Afterwards, two are identified respectively from cache table, one of them has from cache table writes mark, another specifically reads from cache table
Mark.
It should be noted that the specific method of determination of each table is merely exemplary in above-mentioned cache table group, do not answer
Restriction of this composition to the embodiment of the present invention.
As shown in FIG. 1, FIG. 1 is a kind of flow chart of the data manipulation method of internal storage data provided in an embodiment of the present invention,
This method may include steps of:
S101, to the master cache table in preset internal storage data cache table group, executes institute when receiving write operation instruction
State the indicated data write operation of write operation instruction;
Wherein, include a master cache table and two in the internal storage data cache table group from cache table, it is described two from
Being identified as table writes mark in cache table, another table is identified as reading mark.About preset internal storage data cache table
The method of determination of each table can be found in above description in group.
Specifically, to the master cache table in preset internal storage data cache table group, being executed when receiving write operation instruction
A kind of optional implementation of the indicated data write operation of write operation instruction is:
Detect whether the master cache table is in write-in or inquiry state, when the master cache table is not at write-in or inquiry
When state, the indicated data write operation of the write operation instruction is executed.
It is understood that can first detect whether master cache table is in data write-in when receiving write operation instruction
Or inquiry state.When detecting that master cache table is in data write-in or inquiry state, which is in the lock state not
The write-in of data can be carried out to it again, only when the data of master cache table complete write-in or inquiry, lock state is released, can
To carry out the write-in of data to the master cache table.It, can be with when detecting that master cache table is not at data write-in or inquiry state
The write-in of data is carried out to the master cache table.
Also, the concrete type of write operation instruction matches with concrete application scene.It is related with storage address analysis protocol
For the ARP table of content, write operation instruction be can be:Receive arp response, ARP request time-out or instruction of manual modification etc..
Certainly, the present invention only be illustrated by taking the form that above-mentioned write operation instruct as an example, in practical application write operation instruct and not only
It is limited to this.
S102, after having executed data write operation to the master cache table, by the data content in the master cache table
Full dose is synchronized to have and write in the slave cache table of mark.
After master cache table has executed data write operation, the data content full dose in master cache table can be synchronized to
With in the slave cache table for writing mark.It is emphasized that data write operation can be new write-in partial data content, or repair
Change partial data content.Have in master cache table data content change belong to the embodiment of the present invention protection scope it
Interior, this is not restricted for the specific data write operation mode embodiment of the present invention.
S103 is interchangeable described two from the mark of cache table after synchronously completing.
It, can be with after completing to be synchronized to the data content full dose in master cache table in the slave cache table for writing mark
Two are interchangeable from the mark of cache table, i.e., is revised as having by the original mark with the slave cache table for writing mark and reads mark
Know, the original mark with the slave cache table for reading mark is revised as having and writes mark.
It should be noted that the data content full dose in master cache table, which is synchronized to, to be had in the slave cache table for writing mark,
Having after synchronization writes data content included in the slave cache table of mark, with data content included in master cache table
It is completely the same.After being interchangeable from the mark of cache table for two, there are data included in the slave cache table for reading mark
Content, it is completely the same with data content included in master cache table, so that having the data content for the slave cache table for reading mark
It is consistent with the data content of master cache table, realize the synchronization of user data query.
S104 instructs institute to having the slave cache table for reading mark to execute the read operation when receiving read operation instruction
The data query operation of instruction.
When receiving read operation instruction, to the data for having the slave cache table execution read operation instruction for reading mark indicated
Inquiry operation, if the inquiry operation terminates needed for inquiring in having the slave cache table for reading mark when the data of lookup.
Optionally, method provided by the embodiment of the present invention can also include:
If when the data searched needed for not inquired in there is the slave cache table for reading mark, to the master cache table
Execute the indicated data query operation of the read operation instruction.
Wherein, when receiving read operation instruction, the slave cache table with reading mark is executed indicated by read operation instruction
Data query operation, if having read mark slave cache table in do not inquire needed for search data, to master
Cache table executes the indicated data query operation of read operation instruction.In addition, a kind of optional implementation can also be, when
When the data searched needed for also not inquired in master cache table, it can respond and not inquire data, or be sent to server
Inquiry request.Certainly, the present invention is only illustrated by taking above-mentioned implementation method as an example, and the side of data query is executed in practical application
Method is not limited to that.
Specifically, executing the indicated data of the read operation instruction in the embodiment of the present invention to the master cache table and looking into
Asking a kind of optional implementation operated is:
Detect whether the master cache table is in write state, when the master cache table is not at write state, to institute
It states master cache table and executes the indicated data query operation of the read operation instruction.
When executing the indicated data query operation of read operation instruction to master cache table, can first detect master cache table is
It is no to be in data write state.When detecting that master cache table is in data write state, which is in the lock state
The inquiry that cannot carry out data to it again, when the data of master cache table complete write-in, lock state is released, can be to the master
The inquiry of cache table progress data.When detecting that master cache table is not at data write state, can to the master cache table into
The inquiry of row data.
Scheme in order to facilitate understanding, master cache table in internal storage data cache table group, with the slave cache table for writing mark and
With the logical schematic between the slave cache table for reading mark, reference can be made to Fig. 2.Wherein, data write-in is executed in master cache table
Operation executes data query operation in having the slave cache table for reading mark.After master cache table has executed data write operation,
Data content full dose in master cache table is synchronized to writing in the slave cache table of mark, is synchronously completed two from cache table
Mark be interchangeable, to realize data query operation without lockization.
A kind of data manipulation method of internal storage data provided in an embodiment of the present invention needs at high-performance high concurrent in network
When reason ability, it is only necessary to safeguard three internal storage data cache tables, execute data write operation in master cache table, read mark having
Data query operation is executed in the slave cache table known, it, will be in master cache table after master cache table has executed data write operation
Data content full dose is synchronized to have and write in the slave cache table of mark, carries out two mutually from the mark of cache table after synchronously completing
It changes.Compared with the existing technology, this programme does not need each cores threads and safeguards oneself under multicore/multithreading system environments
Internal storage data cache table, the quantity of internal storage data cache table and the quantity of cores threads are unrelated, save memory headroom, therefore, can
To reduce memory usage under the premise of guaranteeing that network has high-performance high concurrent processing capacity.Also, simplify memory number
According to the process of synchronization of data content in cache table, synchronous difficulty is reduced, so that it is high to improve network without lockization for data query operation
Performance high concurrent processing capacity.
The data manipulation method for being provided for the embodiments of the invention another internal storage data below is introduced.
It should be noted that the data manipulation method of another kind internal storage data provided by the embodiment of the present invention can be applied
In electronic equipment, also, the system environments of the electronic equipment can be multicore/multithreading environment, be not limited to certainly
This.
In the embodiment of the present invention, an internal storage data cache table group, the internal storage data cache table group can be preset
In include a master cache table and two from cache table, described two one being identified as table from cache table write mark, another
A table is identified as reading mark.Specifically, the method for determination of each table in the internal storage data cache table group can be found in above
Description, details are not described herein again.
Specifically, the master cache table is copied twice, obtains two from caching after determining master cache table
Table, and two are set as to read mark from the mark of a table in cache table, the mark of another table is set as writing mark
Step may include:
The master cache table is copied twice, two is obtained from cache table, initializes two references from cache table
It is counted as 0;
Two are set as to read mark from the mark of a table in cache table, the mark of another table is set as writing mark
Know.
To after the mark that cache table carries out reference count, when master cache table has executed data write operation, will lead
Data content full dose in cache table is synchronized to have and write in the slave cache table of mark, and after synchronously completing by two from caching
The mark of table and reference count are interchangeable.After can preventing exchange, there are data original in the slave cache table for writing mark
In the case that inquiry operation does not complete, the data content full dose in master cache table is synchronized to the slave caching for writing mark again
In table, unfinished data query operation is influenced, particular content will be described in detail later.
As shown in figure 3, Fig. 3 is the process of the data manipulation method of another internal storage data provided in an embodiment of the present invention
Figure, this method may include steps of:
S301, to the master cache table in preset internal storage data cache table group, executes institute when receiving write operation instruction
State the indicated data write operation of write operation instruction.
Wherein, it is signified to execute the write operation instruction for the master cache table in preset internal storage data cache table group
The step of data write operation shown, including:
Detect whether the master cache table is in write-in or inquiry state, when the master cache table is not at write-in or inquiry
When state, the indicated data write operation of the write operation instruction is executed.
In the embodiment of the present invention, the S101 in method shown in step S301 and Fig. 1 can be identical, and the present invention does not go to live in the household of one's in-laws on getting married herein
It states.
S302, after having executed data write operation to the master cache table, by the data content in the master cache table
Full dose is synchronized to have and write in the slave cache table of mark.
It is understood that data write operation can be new write-in partial data content, or modification partial data content.
There is data content to change within the protection scope for belonging to the embodiment of the present invention in master cache table, specific data write-in
This is not restricted for the mode of operation embodiment of the present invention.
A kind of optional implementation is to execute data write operation to the master cache table in the embodiment of the present invention
Afterwards, the data content full dose in the master cache table is synchronized to the step in the slave cache table for writing mark, may include:
After having executed data write operation to the master cache table, the reference meter with the slave cache table for writing mark is judged
Whether number is 0;
If having the reference count for the slave cache table for writing mark is 0, by the data content full dose in the master cache table
It is synchronized to have and write in the slave cache table of mark;
If not being 0 with the reference count of the slave cache table of mark is write, in the reference with the slave cache table for writing mark
After being counted as 0, the data content full dose in the master cache table is synchronized to in the slave cache table for writing mark.
It is understood that each table in internal storage data cache table group is just determined and is completed, and for the first time to master cache
When table has executed data write operation, there is reference count or the initial value 0 of the slave cache table for writing mark at this time.But
Each table in internal storage data cache table group, which determines, to be completed, and simultaneously non-first time has executed data write operation to master cache table
When, it is write because that after master cache table has executed data write operation, the data content full dose in master cache table can be synchronized to have
In the slave cache table of mark, synchronously completes and be interchangeable two from the mark of cache table, reference count is also interchangeable, at this time
Reference count with the slave cache table for writing mark can be 0, can not also be 0.Specifically, by two marks from cache table
Be interchangeable with reference count to introduce in greater detail below.
Further, it when simultaneously non-first time executes data write operation to master cache table, needs to execute in master cache table
After complete data write operation, judgement have writes whether the reference count of the slave cache table of mark is 0, when have write mark from
When the reference count of cache table is 0, the data content full dose in master cache table is synchronized to in the slave cache table for writing mark;
It is 0 in the reference count with the slave cache table for writing mark when being not 0 with the reference count of the slave cache table of mark is write
Afterwards, the data content full dose in master cache table is synchronized to in the slave cache table for writing mark.
It is understood that if it is judged that have write mark slave cache table reference count be 0, then illustrate that this has
The slave cache table for writing mark is not at any state of data query or write-in, therefore, can be by the number in master cache table
It is synchronized to according to content full dose in the slave cache table for writing mark.
And if it is judged that having the reference count of slave cache table for writing mark is not 0, then illustrate that this has and writes mark
It is just in data query there is the slave cache table for reading mark to switch the slave cache table after identifying, this, which has, writes from cache table
The slave cache table of mark is being in data query state.It then waits just in data query with number in the slave cache table for writing mark
According to poll-final, after reference count is 0, the data content full dose in master cache table is synchronized to have and writes postponing for mark
It deposits in table.
Described two marks from cache table and reference count are interchangeable by S303 after synchronously completing.
It, can be with after completing to be synchronized to the data content full dose in master cache table in the slave cache table for writing mark
Two are interchangeable from the mark of cache table, and two are interchangeable from the reference count of cache table.Will have originally
There is the mark for the slave cache table for writing mark to be revised as that there is reading mark, originally there is the reference count for the slave cache table for writing mark to repair
It is changed to the reference count originally with the slave cache table for reading mark;The original mark with the slave cache table for reading mark is revised as
With mark is write, the reference count originally with the slave cache table for reading mark is revised as having the slave cache table for writing mark originally
Reference count.
It is understood that the data content full dose in master cache table, which is synchronized to, to be had in the slave cache table for writing mark,
Having after synchronization writes data content included in the slave cache table of mark, with data content included in master cache table
It is completely the same.After being interchangeable from the mark of cache table for two, there are data included in the slave cache table for reading mark
Content, it is completely the same with data content included in master cache table, so that having the data content for the slave cache table for reading mark
It is consistent with the data content of master cache table, realize the synchronization of user data query.
S304 instructs institute to having the slave cache table for reading mark to execute the read operation when receiving read operation instruction
The data query operation of instruction.
Optionally, the embodiment of the present invention executes indicated by the read operation instruction to the slave cache table with reading mark
After data query operation, the method can also include:
If when the data searched needed for not inquired in there is the slave cache table for reading mark, to the master cache table
Execute the indicated data query operation of the read operation instruction.
Wherein, the described the step of indicated data query operation of the read operation instruction is executed to the master cache table,
May include:
Detect whether the master cache table is in write state, when the master cache table is not at write state, to institute
It states master cache table and executes the indicated data query operation of the read operation instruction.
In the embodiment of the present invention, the S104 in method shown in step S304 and Fig. 1 can be identical, and the present invention does not go to live in the household of one's in-laws on getting married herein
It states.
S305 is executing the indicated data query operation of the read operation instruction to the slave cache table with reading mark
In the process, will have the reference count for the slave cache table for reading mark add 1, and when terminating inquiry, by the reference count add 1 from
The reference count of cache table reverts to 0.
Two are being obtained after cache table, 0 can be initialized to from the reference count of cache table for two, and save
From the reference count of cache table, two are identified from cache table respectively.Then, it is held to the slave cache table with reading mark
During the indicated data query operation of row read operation instruction, will there is the reference count for the slave cache table for reading mark to add 1,
And when terminating data query, the reference count of 1 slave cache table is added to revert to 0 the reference count, reference count herein
Add 1 slave cache table can be and is also possible to the slave cache table with mark is write with the slave cache table for reading mark.
The data manipulation method of another kind internal storage data provided in an embodiment of the present invention, needs high-performance high concurrent in network
When processing capacity, it is only necessary to safeguard three internal storage data cache tables, execute data write operation in master cache table, be read having
Data query operation is executed in the slave cache table of mark, it, will be in master cache table after master cache table has executed data write operation
Data content full dose be synchronized to have write in the slave cache table of mark, after synchronously completing by two from the mark of cache table carry out
It exchanges.Compared with the existing technology, this programme does not need each cores threads and safeguards oneself under multicore/multithreading system environments
Internal storage data cache table, the quantity of internal storage data cache table and the quantity of cores threads are unrelated, save memory headroom, therefore,
Memory usage can be reduced under the premise of guaranteeing that network has high-performance high concurrent processing capacity.Also, simplify memory
The process of synchronization of data content in data buffer storage table, reduces synchronous difficulty, so that data query operation improves network without lockization
High-performance high concurrent processing capacity.
Corresponding to the data manipulation method of above-mentioned internal storage data, the embodiment of the invention provides a kind of numbers of internal storage data
According to operating device, as shown in figure 4, the apparatus may include:
Data write. module 401, for when receive write operation instruction when, in preset internal storage data cache table group
Master cache table executes the indicated data write operation of the write operation instruction;Wherein, it is wrapped in the internal storage data cache table group
A master cache table and two are included from cache table, described two one being identified as table from cache table write mark, another table
Be identified as reading mark;
Data simultaneous module 402 is used for after having executed data write operation to the master cache table, by the master cache
Data content full dose in table is synchronized to have and write in the slave cache table of mark;
Mark exchanges module 403, for being interchangeable described two from the mark of cache table after synchronously completing;
First enquiry module 404, for executing institute to the slave cache table with reading mark when receiving read operation instruction
State the indicated data query operation of read operation instruction.
A kind of data operation device of internal storage data provided in an embodiment of the present invention needs at high-performance high concurrent in network
When reason ability, it is only necessary to safeguard three internal storage data cache tables, execute data write operation in master cache table, read mark having
Data query operation is executed in the slave cache table known, it, will be in master cache table after master cache table has executed data write operation
Data content full dose is synchronized to have and write in the slave cache table of mark, carries out two mutually from the mark of cache table after synchronously completing
It changes.A kind of data operation device of internal storage data provided in an embodiment of the present invention, under multicore/multithreading system environments, no
Need each cores threads to safeguard the internal storage data cache table of oneself, the quantity of the quantity of internal storage data cache table and cores threads without
It closes, saves memory headroom, it therefore, can be under the premise of guaranteeing that network has high-performance high concurrent processing capacity, in reduction
Deposit occupancy.Also, the process for simplifying synchronization of data content in internal storage data cache table reduces synchronous difficulty, makes total
According to inquiry operation without lockization, network high-performance high concurrent processing capacity is improved.
It should be noted that the device of the embodiment of the present invention is the data manipulation method pair with internal storage data shown in FIG. 1
The device answered, all embodiments of the data manipulation method of internal storage data shown in FIG. 1 are suitable for the device, and can reach
The same or similar beneficial effect.
Optionally, the data operation device of above-mentioned internal storage data can also include:Determining module;
The determining module, is specifically used for:
By internal storage data cache table generated in initialization procedure, it is determined as master cache table;
The master cache table is copied twice, obtains two from cache table, and by two from one in cache table
The mark of table is set as reading mark, and the mark of another table is set as writing mark.
Optionally, the data operation device of above-mentioned internal storage data can also include:Initialization module;
The initialization module, is specifically used for:
The master cache table is copied twice, two is obtained from cache table, initializes two references from cache table
It is counted as 0;
Two are set as to read mark from the mark of a table in cache table, the mark of another table is set as writing mark
Know;
The mark exchanges module, specifically for being interchangeable described two marks from cache table and reference count;
Described device further includes:Counting module;
The counting module, is specifically used for:Signified to having the slave cache table for reading mark to execute the read operation instruction
During the data query operation shown, the reference count with the slave cache table for reading mark is added 1, and when terminating inquiry,
The reference count of 1 slave cache table is added to revert to 0 the reference count.
Optionally, the data simultaneous module, is specifically used for:
After having executed data write operation to the master cache table, the reference meter with the slave cache table for writing mark is judged
Whether number is 0;
If having the reference count for the slave cache table for writing mark is 0, by the data content full dose in the master cache table
It is synchronized to have and write in the slave cache table of mark;
If not being 0 with the reference count of the slave cache table of mark is write, in the reference with the slave cache table for writing mark
After being counted as 0, the data content full dose in the master cache table is synchronized to in the slave cache table for writing mark.
Optionally, the Data write. module, is specifically used for:
Detect whether the master cache table is in write-in or inquiry state, when the master cache table is not at write-in or inquiry
When state, the indicated data write operation of the write operation instruction is executed.
Optionally, the data operation device of above-mentioned internal storage data can also include:Second enquiry module;
Second enquiry module, if the number for being searched needed for not inquired in there is the slave cache table for reading mark
According to when, then the indicated data query operation of read operation instruction is executed to the master cache table.
Optionally, second enquiry module, is specifically used for:
Detect whether the master cache table is in write state, when the master cache table is not at write state, to institute
It states master cache table and executes the indicated data query operation of the read operation instruction.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 5, include processor 501, communication interface 502,
Memory 503 and communication bus 504, wherein processor 501, communication interface 502, memory 503 are complete by communication bus 504
At mutual communication,
Memory 503, for storing computer program;
Processor 501 when for executing the program stored on memory 503, is realized provided by the embodiment of the present invention
Method.
A kind of electronic equipment provided in an embodiment of the present invention is only needed when network needs high-performance high concurrent processing capacity
It safeguards three internal storage data cache tables, executes data write operation in master cache table, there is the slave cache table for reading mark
Middle execution data query operation, after master cache table has executed data write operation, by the data content full dose in master cache table
It is synchronized to have and write in the slave cache table of mark, be interchangeable two from the mark of cache table after synchronously completing.Relative to existing
Have a technology, a kind of electronic equipment provided in an embodiment of the present invention, under multicore/multithreading system environments, do not need each core/
Thread safeguards the internal storage data cache table of oneself, and the quantity of internal storage data cache table and the quantity of cores threads are unrelated, saves interior
Space is deposited, therefore, memory usage can be reduced under the premise of guaranteeing that network has high-performance high concurrent processing capacity.And
And simplify the process of synchronization of data content in internal storage data cache table, reduce synchronous difficulty so that data query operation without
Lockization improves network high-performance high concurrent processing capacity.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..
Only to be indicated with a thick line in figure, it is not intended that an only bus or a type of bus convenient for indicating.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array,
Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment
The data manipulation method for the internal storage data stated, to obtain identical technical effect.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes the data manipulation method of any internal storage data in above-described embodiment,
To obtain identical technical effect.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (15)
1. a kind of data manipulation method of internal storage data, which is characterized in that including:
When receiving write operation instruction, to the master cache table in preset internal storage data cache table group, the write operation is executed
The indicated data write operation of instruction;Wherein, include a master cache table and two in the internal storage data cache table group from
Cache table, described two one being identified as table from cache table write mark, another table is identified as reading mark;
After having executed data write operation to the master cache table, the data content full dose in the master cache table is synchronized to
With in the slave cache table for writing mark;
After synchronously completing, it is interchangeable described two from the mark of cache table;
When receiving read operation instruction, indicated data are instructed to having the slave cache table for reading mark to execute the read operation
Inquiry operation.
2. the method according to claim 1, wherein the determination of each table in the internal storage data cache table group
Mode, including:
By internal storage data cache table generated in initialization procedure, it is determined as master cache table;
The master cache table is copied twice, obtains two from cache table, and by two from a table in cache table
Mark is set as reading mark, and the mark of another table is set as writing mark.
3. according to the method described in claim 2, obtaining it is characterized in that, described copied the master cache table twice
Two are set as reading to identify from cache table, and by two from the mark of a table in cache table, the mark setting of another table
For the step of writing mark, including:
The master cache table is copied twice, two is obtained from cache table, initializes two reference counts from cache table
It is 0;
Two are set as to read mark from the mark of a table in cache table, the mark of another table is set as writing mark;
It is described by described two the step of being interchangeable from the mark of cache table, including:
Described two marks from cache table and reference count are interchangeable;
The method also includes:
It, will during to having the slave cache table for reading mark to execute the read operation instruction indicated data query operation
Reference count with the slave cache table for reading mark adds 1, and when terminating inquiry, which is added 1 slave cache table
Reference count reverts to 0.
4. according to the method described in claim 3, it is characterized in that, described executing data write-in behaviour to the master cache table
After work, the data content full dose in the master cache table is synchronized to the step in the slave cache table for writing mark, including:
After having executed data write operation to the master cache table, judge that the reference count with the slave cache table for writing mark is
No is 0;
It is if having the reference count for the slave cache table for writing mark is 0, the data content full dose in the master cache table is synchronous
It is write in the slave cache table of mark to having;
If not being 0 with the reference count of the slave cache table of mark is write, in the reference count with the slave cache table for writing mark
After 0, the data content full dose in the master cache table is synchronized to in the slave cache table for writing mark.
5. the method according to claim 1, wherein described slow to the master in preset internal storage data cache table group
The step of depositing table, executing data write operation indicated by the write operation instruction, including:
Detect whether the master cache table is in write-in or inquiry state, when the master cache table is not at write-in or inquiry state
When, execute the indicated data write operation of the write operation instruction.
6. the method according to claim 1, wherein the method also includes:
If when the data searched needed for not inquired in there is the slave cache table for reading mark, being executed to the master cache table
The indicated data query operation of the read operation instruction.
7. according to the method described in claim 6, it is characterized in that, described execute the read operation instruction to the master cache table
The step of indicated data query operation, including:
Detect whether the master cache table is in write state, when the master cache table is not at write state, to the master
Cache table executes the indicated data query operation of the read operation instruction.
8. a kind of data operation device of internal storage data, which is characterized in that including:
Data write. module, for when receive write operation instruction when, to the master cache in preset internal storage data cache table group
Table executes the indicated data write operation of the write operation instruction;It wherein, include one in the internal storage data cache table group
Master cache table and two are from cache table, and described two one being identified as table from cache table write mark, the mark of another table
To read mark;
Data simultaneous module is used for after having executed data write operation to the master cache table, will be in the master cache table
Data content full dose is synchronized to have and write in the slave cache table of mark;
Mark exchanges module, for being interchangeable described two from the mark of cache table after synchronously completing;
First enquiry module, for being grasped to having the slave cache table for reading mark to execute the reading when receiving read operation instruction
Instruct indicated data query operation.
9. device according to claim 8, which is characterized in that described device further includes:Determining module;
The determining module, is specifically used for:
By internal storage data cache table generated in initialization procedure, it is determined as master cache table;
The master cache table is copied twice, obtains two from cache table, and by two from a table in cache table
Mark is set as reading mark, and the mark of another table is set as writing mark.
10. device according to claim 9, which is characterized in that described device further includes:Initialization module;
The initialization module, is specifically used for:
The master cache table is copied twice, two is obtained from cache table, initializes two reference counts from cache table
It is 0;
Two are set as to read mark from the mark of a table in cache table, the mark of another table is set as writing mark;
The mark exchanges module, is specifically used for:Described two marks from cache table and reference count are interchangeable;
Described device further includes:Counting module;
The counting module, is specifically used for:It is executed indicated by the read operation instruction to the slave cache table with reading mark
During data query operation, the reference count with the slave cache table for reading mark is added 1, and when terminating inquiry, by this
Reference count adds the reference count of 1 slave cache table to revert to 0.
11. device according to claim 10, which is characterized in that the data simultaneous module is specifically used for:
After having executed data write operation to the master cache table, judge that the reference count with the slave cache table for writing mark is
No is 0;
It is if having the reference count for the slave cache table for writing mark is 0, the data content full dose in the master cache table is synchronous
It is write in the slave cache table of mark to having;
If not being 0 with the reference count of the slave cache table of mark is write, in the reference count with the slave cache table for writing mark
After 0, the data content full dose in the master cache table is synchronized to in the slave cache table for writing mark.
12. device according to claim 8, which is characterized in that the Data write. module is specifically used for:
Detect whether the master cache table is in write-in or inquiry state, when the master cache table is not at write-in or inquiry state
When, execute the indicated data write operation of the write operation instruction.
13. device according to claim 8, which is characterized in that described device further includes:Second enquiry module;
Second enquiry module, if the data for being searched needed for not inquired in there is the slave cache table for reading mark
When, then the indicated data query operation of the read operation instruction is executed to the master cache table.
14. device according to claim 13, which is characterized in that second enquiry module is specifically used for:
Detect whether the master cache table is in write state, when the master cache table is not at write state, to the master
Cache table executes the indicated data query operation of the read operation instruction.
15. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step as claimed in claim 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810426874.1A CN108920092B (en) | 2018-05-07 | 2018-05-07 | Data operation method and device of memory data and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810426874.1A CN108920092B (en) | 2018-05-07 | 2018-05-07 | Data operation method and device of memory data and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108920092A true CN108920092A (en) | 2018-11-30 |
CN108920092B CN108920092B (en) | 2021-07-20 |
Family
ID=64402358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810426874.1A Active CN108920092B (en) | 2018-05-07 | 2018-05-07 | Data operation method and device of memory data and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108920092B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955688A (en) * | 2019-12-23 | 2020-04-03 | 北京奇艺世纪科技有限公司 | Proxy server, data query method and device, electronic equipment and storage medium |
CN111818108A (en) * | 2019-04-10 | 2020-10-23 | 阿里巴巴集团控股有限公司 | Method and device for ensuring data acquisition consistency |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103207841A (en) * | 2013-03-06 | 2013-07-17 | 青岛海信传媒网络技术有限公司 | Method and device for data reading and writing on basis of key-value buffer |
CN104750720A (en) * | 2013-12-30 | 2015-07-01 | 中国银联股份有限公司 | Method for achieving high-performance data processing under multithread concurrent access environment |
CN105634958A (en) * | 2015-12-24 | 2016-06-01 | 东软集团股份有限公司 | Packet forwarding method and device based on multi-core system |
CN107493327A (en) * | 2017-08-11 | 2017-12-19 | 杭州顺网科技股份有限公司 | Distributed caching management method, system and data management system |
US20170366612A1 (en) * | 2016-06-17 | 2017-12-21 | Fujitsu Limited | Parallel processing device and memory cache control method |
-
2018
- 2018-05-07 CN CN201810426874.1A patent/CN108920092B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103207841A (en) * | 2013-03-06 | 2013-07-17 | 青岛海信传媒网络技术有限公司 | Method and device for data reading and writing on basis of key-value buffer |
CN104750720A (en) * | 2013-12-30 | 2015-07-01 | 中国银联股份有限公司 | Method for achieving high-performance data processing under multithread concurrent access environment |
CN105634958A (en) * | 2015-12-24 | 2016-06-01 | 东软集团股份有限公司 | Packet forwarding method and device based on multi-core system |
US20170366612A1 (en) * | 2016-06-17 | 2017-12-21 | Fujitsu Limited | Parallel processing device and memory cache control method |
CN107493327A (en) * | 2017-08-11 | 2017-12-19 | 杭州顺网科技股份有限公司 | Distributed caching management method, system and data management system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111818108A (en) * | 2019-04-10 | 2020-10-23 | 阿里巴巴集团控股有限公司 | Method and device for ensuring data acquisition consistency |
CN111818108B (en) * | 2019-04-10 | 2022-07-19 | 阿里巴巴集团控股有限公司 | Method and device for ensuring data acquisition consistency |
CN110955688A (en) * | 2019-12-23 | 2020-04-03 | 北京奇艺世纪科技有限公司 | Proxy server, data query method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108920092B (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6916751B2 (en) | Hybrid memory module and its operation method | |
CN105283855B (en) | A kind of addressing method and device | |
CN105224255B (en) | A kind of storage file management method and device | |
US9384072B2 (en) | Distributed queue pair state on a host channel adapter | |
CN108153757A (en) | A kind of method and apparatus of Hash table management | |
US8321635B2 (en) | Synchronizing commands for preventing data corruption | |
CN104809076B (en) | Cache management method and device | |
CN112948318B (en) | RDMA-based data transmission method and device under Linux operating system | |
CN109684231A (en) | The system and method for dsc data in solid-state disk and stream for identification | |
CN105677580A (en) | Method and device for accessing cache | |
CN109491928A (en) | Buffer control method, device, terminal and storage medium | |
TW201519243A (en) | Memory controlled data movement and timing | |
CN108268216B (en) | Data processing method, device and server | |
JP2010140134A (en) | Virtual machine management method, program, and management server | |
CN104794155B (en) | The method, apparatus and system of data load | |
CN103297490B (en) | Information processing apparatus, distributed processing system, and distributed processing method | |
CN107360268A (en) | A kind of data package processing method, device and equipment | |
CN110119304B (en) | Interrupt processing method and device and server | |
CN108920092A (en) | Data manipulation method, device and the electronic equipment of internal storage data | |
CN106844232A (en) | The shared last level cache access method and device of a kind of multi-core processor oriented | |
EP3465447A1 (en) | Multitier cache framework | |
US9836491B1 (en) | Method and apparatus for hardware-implemented AVL tree updates | |
CN104702508B (en) | List item dynamic updating method and system | |
CN109656730A (en) | A kind of method and apparatus of access cache | |
CN110019234A (en) | Method and system for fragment storing data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |