Movatterモバイル変換


[0]ホーム

URL:


CN110287044A - Without lock shared drive processing method, device, electronic equipment and readable storage medium storing program for executing - Google Patents

Without lock shared drive processing method, device, electronic equipment and readable storage medium storing program for executing
Download PDF

Info

Publication number
CN110287044A
CN110287044ACN201910591481.0ACN201910591481ACN110287044ACN 110287044 ACN110287044 ACN 110287044ACN 201910591481 ACN201910591481 ACN 201910591481ACN 110287044 ACN110287044 ACN 110287044A
Authority
CN
China
Prior art keywords
data
block
information
shared drive
area
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
Application number
CN201910591481.0A
Other languages
Chinese (zh)
Other versions
CN110287044B (en
Inventor
陈慕仪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co LtdfiledCriticalGuangzhou Huya Technology Co Ltd
Priority to CN201910591481.0ApriorityCriticalpatent/CN110287044B/en
Publication of CN110287044ApublicationCriticalpatent/CN110287044A/en
Application grantedgrantedCritical
Publication of CN110287044BpublicationCriticalpatent/CN110287044B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The embodiment of the present application provides a kind of without lock shared drive processing method, device, electronic equipment and readable storage medium storing program for executing, shared memory file is mapped in shared drive region in such a way that memory maps, and the head pointer address of corresponding mapping area in obtained shared drive region is recorded in the memory of the corresponding application program of data service with record pointer address is deviated according to the mapping return value after the completion of mapping.On this basis, with the atomic data structure of atomic update, and by data be divided into index area, Hash array data area, extract pond and storage data area multiple atom integers method, without setting privately owned retrieval data for each process or thread, in the processing of data high concurrent, committed memory is smaller, so that in live broadcast service the reading and writing data service of high concurrent can be provided for high speed development business, and provide the high performance read-write of high concurrent and storage scheme for memory database.

Description

Without lock shared drive processing method, device, electronic equipment and readable storage medium storing program for executing
Technical field
This application involves field of computer technology, in particular to it is a kind of without lock shared drive processing method, device,Electronic equipment and readable storage medium storing program for executing.
Background technique
Live broadcast service concurrency is big, and data are updated and read frequently, and there are bottlenecks for the concurrent reading and writing under traditional lock competition.In addition, the reading and writing data mode that tradition is single, has no longer met live broadcast service and has been skyrocketed through, reads and writes the huge need of concurrent requestIt asks.
Summary of the invention
In view of this, being designed to provide for the embodiment of the present application is a kind of without lock shared drive processing method, device, electronicsEquipment and readable storage medium storing program for executing, to solve or improve the above problem.
According to the one aspect of the embodiment of the present application, a kind of electronic equipment is provided, may include that one or more storages are situated betweenMatter and one or more processors communicated with storage medium.One or more storage mediums are stored with the executable machine of processorDevice executable instruction.When electronic equipment operation, processor executes the machine-executable instruction, following total without lock to executeEnjoy internal memory processing method.
It according to the another aspect of the embodiment of the present application, provides a kind of without lock shared drive processing method, is set applied to electronicsIt is standby, which comprises
For each data service, the memory configurations data of the data service are configured, the memory configurations data include instituteData block size, data number of blocks and the shared memory file path needed;
Shared memory space needed for calculating the data service according to the data block size and data number of blocks;
Shared memory file is opened according to the shared memory file path, and according to the shared memory space, is passed throughThe shared memory file is mapped in shared drive region by preset memory mapping mode, and obtains reflecting after the completion of mappingPenetrate return value;
The head pointer address of corresponding mapping area in the shared drive region is obtained according to the mapping return valueWith offset record pointer address, and by the head pointer address and offset record pointer address the data service pair is recordedIn the memory for the application program answered;
It is shared drive region distribution index after the atom map for carrying out auxiliary data to the shared drive regionArea, Hash array data area, the atomic data structure for extracting pond and storage data area, to complete the total without lock of the data serviceEnjoy memory processing.
It according to the another aspect of the embodiment of the present application, provides a kind of without lock shared drive processing unit, is set applied to electronicsStandby, described device includes:
Data configuration module, it is described interior for configuring the memory configurations data of the data service for each data serviceDepositing configuration data includes required data block size, data number of blocks and shared memory file path;
Computing module, in being shared needed for calculating the data service according to the data block size and data number of blocksDeposit space;
Memory mapping block, for opening shared memory file according to the shared memory file path, and according to describedThe shared memory file is mapped in shared drive region by shared memory space by preset memory mapping mode, andObtain the mapping return value after the completion of mapping;
Address logging modle, for obtaining corresponding map section in the shared drive region according to the mapping return valueThe head pointer address and offset record pointer address in domain, and the head pointer address and offset record pointer address are recordedInto the memory of the corresponding application program of the data service;
Distribution module is described shared interior after the atom map to shared drive region progress auxiliary dataRegion distribution index area, Hash array data area, the atomic data structure for extracting pond and storage data area are deposited, to complete the numberAccording to business without lock shared drive processing.
According to the another aspect of the embodiment of the present application, a kind of readable storage medium storing program for executing is provided, is stored on the readable storage medium storing program for executingThere is machine-executable instruction, can be executed when which is run by processor above-mentioned without lock shared drive processing methodThe step of.
Based on any of the above-described aspect, shared memory file is mapped to altogether by the embodiment of the present application in such a way that memory mapsIt enjoys in region of memory, and according to the mapping return value after the completion of mapping by corresponding mapping area in obtained shared drive regionHead pointer address be recorded in the memory of the corresponding application program of data service with offset record pointer address.It is basic hereinOn, with the atomic data structure of atomic update, and by data be divided into index area, Hash array data area, extract pond withAnd the method for multiple atom integers of storage data area, without setting privately owned retrieval data for each process or thread,Committed memory is smaller when the processing of data high concurrent, so that can provide high concurrent in live broadcast service for high speed development businessReading and writing data service, and the high performance read-write of high concurrent and storage scheme are provided for memory database.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attachedFigure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pairThe restriction of range for those of ordinary skill in the art without creative efforts, can also be according to thisA little attached drawings obtain other relevant attached drawings.
Fig. 1 shows one of the flow diagram without lock shared drive processing method provided by the embodiment of the present application;
Fig. 2 shows the flow diagrams of each sub-steps for including of step S150 shown in Fig. 1;
Fig. 3 shows two of the flow diagram without lock shared drive processing method provided by the embodiment of the present application;
Fig. 4 is shown provided by the embodiment of the present application for executing the above-mentioned electronics without lock shared drive processing methodThe structural schematic block diagram of equipment.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present applicationIn attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it should be understood that attached drawing in the applicationThe purpose of illustration and description is only played, is not used to limit the protection scope of the application.In addition, it will be appreciated that schematical attachedFigure does not press scale.Process used herein shows real according to some embodiments of the embodiment of the present applicationExisting operation.It should be understood that the operation of flow chart can be realized out of order, the step of context relation of logic can be withReversal order is implemented simultaneously.In addition, those skilled in the art under the guide of teachings herein, can add to flow chartOther one or more operations, can also remove one or more operations from flow chart.
In addition, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually existThe component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.CauseThis, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings belowRange, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being doneEvery other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Server is a multicore processing equipment mostly, and the most important mode of Performance tuning for server is parallelProgramming, so that server can be with some shared datas of parallel processing.For example, server can using liquidate impact lock by the way of,I.e. multiple Parallel Objects (thread or process) access (read-write) to same part data.Wherein, in order to protect the number of serverAccording to area, when operating there is currently an object to certain part of data block, another object, which needs to block, to be waited.
And then withouted waiting for without lock data structure, it can concurrently carry out, thus by reducing obstruction and waiting, to improveThe concurrency and scalability of server.The deadlock that the data structure of locking may result in server in abnormal cases is askedTopic also results in all threads or process blocking in addition, if the dynamics of locking is too big, leads to money when subsequent unlock and unlockSource consumption and context switching consumption, to Priority Inversion occur and lock the phenomenon that escorting.Data structure without lock, is comparedIn the above-mentioned data structure for having lock, it is possible to reduce resource consumption (namely time loss in some sense), and can eliminateCondition competition, obstruction, deadlock, composability deficiency bring potential problems.However, inventor has found under study for action, current nothingThe data structure of lock needs to set privately owned retrieval data for each process or thread, in the processing of data high concurrent, committed memoryIt is larger.
For this purpose, the discovery based on above-mentioned technical problem, inventor proposes that following technical proposals are above-mentioned to solve or improveProblem.It is inventor by practice and careful it should be noted that defect present in the above scheme in the prior artIt is being obtained after research as a result, therefore, the discovery procedure of the above problem and hereinafter the embodiment of the present application institute regarding to the issue aboveThe solution of proposition all should be the contribution that inventor makes the application during innovation and creation, without should understand thatTechnology contents known to those skilled in the art.
Fig. 1 shows the flow diagram provided by the embodiments of the present application without lock shared drive processing method, it should be understood thatIn other embodiments, the sequence without lock shared drive processing method part step of the present embodiment can not with Fig. 1 andThe sequence of following specific embodiments is limitation, such as can be exchanged with each other according to actual needs or part steps thereinIt can be omitted or delete.The detailed step without lock shared drive processing method is described below.
Step S110 configures the memory configurations data of the data service for each data service.
In the present embodiment, by taking live scene as an example, data service may include live video business, live streaming voice service,The multiple business such as order business are broadcast live, corresponding memory configurations data can be configured for different data services.Wherein, describedMemory configurations data may include data block size, data number of blocks needed for the data service and shared memory file roadDiameter.
Step S120, shared drive needed for calculating the data service according to the data block size and data number of blocks are emptyBetween.
Step S130 opens shared memory file according to the shared memory file path, and according to the shared driveThe shared memory file is mapped in shared drive region by preset memory mapping mode, and obtains mapping by spaceMapping return value after the completion.
Illustratively, which can be mmap mode, and mmap can reflect shared memory fileIt is mapped in shared drive region in the address space of corresponding process, realizes in file disk address and process virtual address spaceThe enantiomorphic relationship one by one of one section of virtual address, after realizing such mapping relations, process can be read by the way of pointerThis section of memory of write operation.After completing the shared memory file mapping, a mmap return value can be returned to, as the mappingReturn value.
Step S140 obtains the starting of corresponding mapping area in the shared drive region according to the mapping return valuePointer address and offset record pointer address, and the number is recorded in the head pointer address and offset record pointer addressIn memory according to the corresponding application program of business.
Step S150 is the shared section key after the atom map of shared drive region progress auxiliary dataDomain distribution index area, Hash array data area, the atomic data structure for extracting pond and storage data area, to complete the data industryBusiness is handled without lock shared drive.
Based on above-mentioned design, the shared memory file is mapped to shared drive in such a way that memory maps by the applicationIn region, and according to the mapping return value after the completion of mapping by the starting of corresponding mapping area in obtained shared drive regionPointer address is recorded in the memory of the corresponding application program of the data service with offset record pointer address, on this basisWith the atomic data structure of atomic update, and index area, Hash array data area, extraction pond are divided by data and is depositedThe method for storing up multiple atom integers of data field, without setting privately owned retrieval data for each process or thread, in dataCommitted memory is smaller when high concurrent processing, so that can provide the data of high concurrent in live broadcast service for high speed development businessRead-write service, and the high performance read-write of high concurrent and storage scheme are provided for memory database.
In a kind of possible embodiment, for step S150, auxiliary data is carried out to the shared drive regionThe mode of atom map may is that
Generate the remark information area in the shared drive region;
The position configuration flag value of first character section in the remark information area;
The position of second byte in the remark information area configures current data capacity;
The position configuration data block size of third byte in the remark information area;
The position configuration data number of blocks of the 4th byte in the remark information area;
The first character is respectively directed to by the int type pointer of four atoms in the memory of the application program respectivelyThe data word locking nub of section, second byte, the third byte and the 4th byte data, to pass through described fourThe int type pointer type of atom controls the first character section, second byte, the third byte and respectivelyFour bytes are read and write without lock.
In detail, the remark information area in the shared drive region of generation be blank area, first in the blank areaA byte, second byte, the configuration mode of third byte and the 4th byte are as follows:
Data number of blocks: s_blockCount=((au64*) m_mem.data ())+2;
Data block size: s_blockSize=((au64*) m_mem.data ())+1;
Mark value: s_flags=(au32*) m_mem.data ();
Current data capacity: s_cnt=((au32*) m_mem.data ())+1;
Then, the first character section, second described is controlled by the int type pointer type of four atoms respectivelyThe configuration process without lock read-write of byte, the third byte and the 4th byte is as follows:
au32*s_flags;
au32*s_cnt;
au64*s_blockSize;
au64*s_blockCount;
On this basis, further, Fig. 2 is please referred to, in a kind of possible embodiment, step S150 canTo be realized by following sub-step:
Sub-step S151 is the shared drive region distribution index area, and distribution is used for data in the index areaThe multiple VerIdx arrays and check information list of index are stored with the number pair of each data block in the VerIdx arrayThe cryptographic Hash answered, the check information list include the storage byte obtained according to the quantity of Hash bucket and the storage byteExtended field after adding 16 bytes.
Sub-step S152 distributes Hash array data area for the shared drive region, and to the Hash array dataArea carries out atom map, and the metadata of each data block is recorded by data link table, wherein the metadata passes through atom shapingIt is stored, the metadata includes data block length, data block version number, data block identifier, data block cryptographic Hash, data blockDelete the combination of one or more of label and data block reference count.Wherein, above-mentioned a variety of combinations can beTwo or more combination.
Sub-step S153 extracts pond for shared drive region distribution, and the extraction pond is referred to by 64 atom pointersTo next region of memory that can be written into, and the position of a data block is recorded, the corresponding atom shaping in the extraction pondThe identification information of next data block of global data block information and each data block is had recorded in pointer alignment.
Sub-step S154 distributes storage data area for the shared drive region, and the size of the storage data area is equal toThe quantity of the Hash bucket and the product of size.
In this way, by above-mentioned design, by the atomic data structure with atomic update, and being divided into index by dataArea, Hash array data area, extract pond and storage data area multiple atom integers method, without for each processOr thread sets privately owned retrieval data.
On the basis of foregoing description, below with reference to Fig. 3 to based on it is above-mentioned to the data service without lock shared drive atThe application of data structure after reason carries out exemplary description, referring to Fig. 3, the present embodiment mentions after step S150What is supplied can also include the following steps: without lock shared drive processing method
Step S160, when receiving the concurrent data processing request for data service, at the concurrent dataReason request obtains the identification number of pending data.
In detail, when receiving the concurrent data processing request for data service, for different data services, allIt is corresponding with an identification number FLAG relevant to pending data.
Step S160 calculates the corresponding cryptographic Hash of the identification number, and according to the cryptographic Hash to the pending dataExecute corresponding operation.
In the present embodiment, the mode for calculating the corresponding cryptographic Hash of the identification number can be executed by following code:
U32 hash=CncrHsh::HashBytes (key, klen);
In a kind of possible example, if concurrent data processing request is data write request, this step is firstThen data number of blocks needed for calculating the pending data according to the cryptographic Hash is extracted from the extraction pond of above-mentioned configurationFreed data blocks corresponding with the data number of blocks, and the information of the freed data blocks is written to the Hash array numberAccording in area.Then, the pending data is written to data corresponding with the freed data blocks in the storage data areaQu Zhong, so as to complete data write-in, the VerIdx being finally written to the information of the freed data blocks in the index areaIn array (data query entrance), in order to which user carries out data query.In this way, completing concurrently writing for the pending dataEnter.
For example, if extracting idle data corresponding with the data number of blocks from the extraction pond of above-mentioned configuration is dataThen the information of data block 0, data block 1 and data block 2 is written to the Hash number by block 0, data block 1 and data block 2In group data area, and the pending data is written in the storage data area and data block 0, data block 1 and dataIn the corresponding data field of block 2, finally the information of data block 0, data block 1 and data block 2 is written in the index areaIn VerIdx array.
In alternatively possible example, if concurrent data processing request is data read request, this step is firstNumber and the version number of corresponding data block are first obtained from the VerIdx array of the index area according to the cryptographic Hash, thenThe corresponding Brief block of information of the data block is obtained from Hash array data area according to the number of the data block, it shouldBrief block of information can refer to the block of information for recording the basic summary info of the data block.Next, it is determined that the cryptographic Hash isWhether the length of the identification number of no pending data identical, described as the cryptographic Hash of the Brief block of information is believed with the BriefCease the identification number of block length is identical and the version number of the data block whether version number's phase with the Brief block of informationTogether.If the length of the identification number of cryptographic Hash pending data identical, described as the cryptographic Hash of the Brief block of information withThe length of the identification number of the Brief block of information is identical, and the version of the version number of the data block and the Brief block of informationIt is number identical, then judge whether the identification number of the data block is identical as the identification number of the Brief block of information.If the dataThe identification number of block is identical as the identification number of the Brief block of information, then it is described to from that needs are obtained from the Brief block of informationReason data are simultaneously read away.
In addition, in above-mentioned deterministic process, if the cryptographic Hash it is different from the cryptographic Hash of the Brief block of information orThe length of the identification number of pending data described in the person number different or described from the length of identification number of the Brief block of informationIt is different from the version number of the Brief block of information according to the version number of block, then it is write from the VerIdx array of the index areaThe number of one data block and version number, and return execution judge the cryptographic Hash whether the Hash with the Brief block of informationBe worth the identification number of identical, the described pending data length it is whether identical as the length of identification number of the Brief block of information withAnd the version number of the data block whether the step identical as the version number of the Brief block of information.
In alternatively possible example, if concurrent data processing request is data removal request, this step canQuasi- mark data block corresponding in the VerIdx array of the index area is carried out deletion label according to the cryptographic Hash, andIt is detecting there is currently when the data read request to the quasi- mark data block, if detecting the quasi- mark data blockIt is marked in the presence of deleting, then returns and deleted prompt information.If detecting that there is currently no to the quasi- mark data blockWhen data read request, then by the corresponding Brief block of information of the quasi- mark data block in Hash array data area intoRow delete label, then by the version number of the Brief block of information be labeled as 0, and to the data in the Brief block of information intoRow recycling.In this way, being carried out when actually deleting by quasi- mark data block corresponding in the VerIdx array by the index areaLabel is deleted, in this way when needing to read the quasi- mark data block there are data read request, if detecting the quasi- reference numeralsExist according to block and delete label, then the information returned in the quasi- mark data block has been deleted, and reading data is no longer performed the next stepStep.
Fig. 4 shows provided by the embodiments of the present application for realizing the above-mentioned electronic equipment without lock shared drive processing method100 schematic diagram, the electronic equipment 100 can be for providing main broadcaster's server of service.In the present embodiment, which is setStandby 100 may include storage medium 110, processor 120 and without lock shared drive processing unit 130.
Wherein, processor 120 can be a general central processing unit (Central Processing Unit,CPU), microprocessor, application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC),Or it is one or more for controlling the integrated of the programs execution without lock shared drive processing method of above method embodiment offerCircuit.
Storage medium 110 can be ROM or can store the other kinds of static storage device of static information and instruction,RAM or the other kinds of dynamic memory that can store information and instruction, are also possible to the read-only storage of electric erazable programmableDevice (Electrically Erasable Programmabler-Only Memory, EEPROM), CD-ROM(Compactdisc Read-Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, swashOptical disc, optical disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can useIn carry or storage have instruction or data structure form desired program code and can by computer access it is any itsHis medium, but not limited to this.Storage medium 110, which can be, to be individually present, and is connected by communication bus with processor 120.It depositsStorage media 110 can also be integrated with processor.Wherein, storage medium 110, which is used to store, executes answering for application schemeWith program code, such as without lock shared drive processing unit 130 shown in Fig. 4, and execution is controlled by processor 120.PlaceReason device 120 is for executing the application code stored in storage medium 110, such as without lock shared drive processing unit 130, withExecute above method embodiment without lock shared drive processing method.
The application can be drawn according to above method embodiment to without the lock progress of shared drive processing unit 130 functional modulePoint, for example, each functional module of each function division can be corresponded to, two or more functions can also be integrated in oneIn a processing module.Above-mentioned integrated module both can take the form of hardware realization, can also be using software function moduleForm is realized.It should be noted that be schematical, only a kind of logical function partition to the division of module in the application,There may be another division manner in actual implementation.For example, the functional module each using corresponding each function division the case whereUnder, shown in Fig. 4 is a kind of schematic device without lock shared drive processing unit 130.In detail, no lock shared drive processingDevice 130 may include data configuration module 131, computing module 132, memory mapping block 133, address logging modle 134 andDistribution module 135 separately below explains the function of each functional module without lock shared drive processing unit 130 in detailIt states.
Data configuration module 131 configures the memory configurations data of the data service, institute for being directed to each data serviceStating memory configurations data includes required data block size, data number of blocks and shared memory file path.It is appreciated that shouldData configuration module 131 can be used for executing above-mentioned steps S110, and the detailed implementation about the data configuration module 131 canWith referring to above-mentioned to the related content of step S110.
Computing module 132, for being total to needed for calculating the data service according to the data block size and data number of blocksEnjoy memory headroom.It is appreciated that the computing module 132 can be used for executing above-mentioned steps S120, about the computing module 132Detailed implementation is referred to above-mentioned to the related content of step S120.
Memory mapping block 133, for opening shared memory file according to the shared memory file path, and according to instituteShared memory space is stated, the shared memory file is mapped in shared drive region by preset memory mapping mode,And obtain the mapping return value after the completion of mapping.It is appreciated that the memory mapping block 133 can be used for executing above-mentioned stepsS130, the detailed implementation about the memory mapping block 133 are referred to above-mentioned to the related content of step S130.
Address logging modle 134, for obtaining corresponding in the shared drive region reflect according to the mapping return valueThe head pointer address and offset record pointer address in region are penetrated, and by the head pointer address and deviates record pointer addressIt is recorded in the memory of the corresponding application program of the data service.It is appreciated that the address logging modle 134 can be used for holdingRow above-mentioned steps S140, the detailed implementation about the address logging modle 134 are referred to above-mentioned related to step S140Content.
Distribution module 135 is described shared after the atom map to shared drive region progress auxiliary dataRegion of memory distribution index area, Hash array data area, the atomic data structure for extracting pond and storage data area, to complete to be somebody's turn to doData service is handled without lock shared drive.It is appreciated that the distribution module 135 can be used for executing above-mentioned steps S150, closeIt is referred in the detailed implementation of the distribution module 135 above-mentioned to the related content of step S150.
Due to it is provided by the embodiments of the present application without lock shared drive processing unit 130 be it is above-mentioned without lock shared drive processing sideAnother way of realization of method, and can be used for executing provided by above-described embodiment without lock without lock shared drive processing unit 130Shared drive processing method, therefore it can be obtained technical effect can refer to above method embodiment, details are not described herein.
Further, based on the same inventive concept, the embodiment of the present application also provides a kind of computer readable storage medium,It is stored with computer program on the computer readable storage medium, which executes above-mentioned no lock when being run by processorThe step of shared drive processing method.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage mediumComputer program when being run, be able to carry out above-mentioned without lock shared drive processing method.
The embodiment of the present application be referring to according to the method for the embodiment of the present application, equipment (electronic equipment 100 of such as Fig. 4) andThe flowchart and/or the block diagram of computer program product describes.It should be understood that flow chart can be realized by computer program instructionsAnd/or the knot of the process and/or box in each flow and/or block and flowchart and/or the block diagram in block diagramIt closes.These computer program instructions be can provide to general purpose computer, special purpose computer, Embedded Processor or other programmable numbersAccording to the processor of processing equipment to generate a machine, so that passing through the processing of computer or other programmable data processing devicesThe instruction that device executes generates for realizing in one box of one or more flows of the flowchart and/or block diagram or multiple sidesThe device for the function of being specified in frame.
Although the application is described in conjunction with each embodiment herein, however, implementing the application claimedIn the process, those skilled in the art are by checking the attached drawing, disclosure and the appended claims, it will be appreciated that and it is realOther variations of the existing open embodiment.In the claims, one word of " comprising " is not excluded for other components or step,"a" or "an" is not excluded for multiple situations.Single processor or other units may be implemented to enumerate in claim severalItem function.Mutually different has been recited in mutually different dependent certain measures, it is not intended that these measures cannot group closeTo generate good effect.
The above, the only various embodiments of the application, but the protection scope of the application is not limited thereto, it is anyThose familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all containLid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (11)

If the identification number of the cryptographic Hash pending data different or described from the cryptographic Hash of the Brief block of informationThe version number of the length data block different or described from the length of identification number of the Brief block of information and the Brief informationThe version number of block is different, then the number and version number of a data block are write from the VerIdx array of the index area, andReturn to the mark for executing and judging cryptographic Hash pending data whether identical, described as the cryptographic Hash of the Brief block of informationNumber length data block whether identical and described with the length of identification number of the Brief block of information version number whether with instituteState the identical step of the version number of Brief block of information.
CN201910591481.0A2019-07-022019-07-02Lock-free shared memory processing method and device, electronic equipment and readable storage mediumActiveCN110287044B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910591481.0ACN110287044B (en)2019-07-022019-07-02Lock-free shared memory processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910591481.0ACN110287044B (en)2019-07-022019-07-02Lock-free shared memory processing method and device, electronic equipment and readable storage medium

Publications (2)

Publication NumberPublication Date
CN110287044Atrue CN110287044A (en)2019-09-27
CN110287044B CN110287044B (en)2021-08-03

Family

ID=68020275

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910591481.0AActiveCN110287044B (en)2019-07-022019-07-02Lock-free shared memory processing method and device, electronic equipment and readable storage medium

Country Status (1)

CountryLink
CN (1)CN110287044B (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110674052A (en)*2019-09-302020-01-10广州虎牙科技有限公司Memory management method, server and readable storage medium
CN110933448A (en)*2019-11-292020-03-27广州市百果园信息技术有限公司Live list service system and method
CN111092865A (en)*2019-12-042020-05-01全球能源互联网研究院有限公司Security event analysis method and system
CN112306695A (en)*2020-11-192021-02-02中国民航信息网络股份有限公司Data processing method and device, electronic equipment and computer storage medium
CN112328435A (en)*2020-12-072021-02-05武汉绿色网络信息服务有限责任公司Method, device, equipment and storage medium for backing up and recovering target data
CN112463306A (en)*2020-12-032021-03-09南京机敏软件科技有限公司Method for sharing disk data consistency in virtual machine
CN112463333A (en)*2020-12-032021-03-09北京浪潮数据技术有限公司Data access method, device and medium based on multithreading concurrency
CN112732194A (en)*2021-01-132021-04-30同盾科技有限公司Irregular data storage method, device and storage medium
CN112947856A (en)*2021-02-052021-06-11彩讯科技股份有限公司Memory data management method and device, computer equipment and storage medium
CN113127415A (en)*2019-12-312021-07-16浙江宇视科技有限公司Method, device, medium and electronic equipment for processing real-time stream file
CN113157199A (en)*2020-01-222021-07-23阿里巴巴集团控股有限公司Snapshot occupation space calculation method and device, electronic equipment and storage medium
CN113194266A (en)*2021-04-282021-07-30深圳迪乐普数码科技有限公司Image sequence frame real-time rendering method and device, computer equipment and storage medium
CN113535437A (en)*2021-08-032021-10-22上海节卡机器人科技有限公司Module data interaction method of robot, electronic equipment and storage medium
CN113688068A (en)*2021-10-252021-11-23支付宝(杭州)信息技术有限公司Graph data loading method and device
CN113778674A (en)*2021-08-312021-12-10上海弘积信息科技有限公司Lock-free implementation method of load balancing equipment configuration management under multi-core
CN113918312A (en)*2020-07-072022-01-11大唐移动通信设备有限公司 Memory configuration method, device, device and storage medium
CN114090295A (en)*2021-11-192022-02-25中国电力科学研究院有限公司Hash-supported chain table type shared memory database generation method and system
CN114168316A (en)*2021-11-052022-03-11支付宝(杭州)信息技术有限公司Video memory allocation processing method, device, equipment and system
CN114217987A (en)*2021-12-072022-03-22网易(杭州)网络有限公司Data sharing method, device, electronic device and storage medium
CN114356589A (en)*2021-12-092022-04-15北京华云安信息技术有限公司Data storage and reading method, device and equipment for multiple writers and multiple readers
CN114398187A (en)*2021-12-242022-04-26新浪网技术(中国)有限公司Data storage method and device
CN114490443A (en)*2022-02-142022-05-13浪潮云信息技术股份公司 An in-process cache method in golang based on shared memory
CN115437798A (en)*2021-06-232022-12-06北京车和家信息技术有限公司Data processing method, device, equipment and medium for shared memory
CN115454677A (en)*2022-09-262022-12-09广州文远知行科技有限公司 A data transmission method and system
CN115934377A (en)*2022-11-282023-04-07武汉光庭信息技术股份有限公司 A shared memory communication method and system based on atomic operation
CN118034610A (en)*2024-04-072024-05-14深圳市纽创信安科技开发有限公司Key data processing method applied to memory, device and equipment
WO2024109068A1 (en)*2022-11-252024-05-30惠州市德赛西威智能交通技术研究院有限公司Program monitoring method and apparatus, and electronic device and storage medium
CN118550735A (en)*2024-07-302024-08-27天翼云科技有限公司Method and device for improving high-performance calculation

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101582092A (en)*2009-06-122009-11-18中兴通讯股份有限公司Method and device for realizing the store of date in memory
US20130262426A1 (en)*2010-02-122013-10-03Huawei Technologies Co., Ltd.Method and apparatus for accessing database and database application system
CN103514053A (en)*2013-09-222014-01-15中国科学院信息工程研究所Shared-memory-based method for conducting communication among multiple processes
CN103593485A (en)*2013-12-042014-02-19网易传媒科技(北京)有限公司Method and device for achieving real-time operation on data base
CN105975407A (en)*2016-03-222016-09-28华为技术有限公司Mapping method of memory address, and equipment
US20170262172A1 (en)*2014-11-282017-09-14Huawei Technologies Co., Ltd.File Access Method and Apparatus, and Storage Device
CN109298935A (en)*2018-09-062019-02-01华泰证券股份有限公司A kind of method and application of the multi-process single-write and multiple-read without lock shared drive

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101582092A (en)*2009-06-122009-11-18中兴通讯股份有限公司Method and device for realizing the store of date in memory
US20130262426A1 (en)*2010-02-122013-10-03Huawei Technologies Co., Ltd.Method and apparatus for accessing database and database application system
CN103514053A (en)*2013-09-222014-01-15中国科学院信息工程研究所Shared-memory-based method for conducting communication among multiple processes
CN103593485A (en)*2013-12-042014-02-19网易传媒科技(北京)有限公司Method and device for achieving real-time operation on data base
US20170262172A1 (en)*2014-11-282017-09-14Huawei Technologies Co., Ltd.File Access Method and Apparatus, and Storage Device
CN105975407A (en)*2016-03-222016-09-28华为技术有限公司Mapping method of memory address, and equipment
CN109298935A (en)*2018-09-062019-02-01华泰证券股份有限公司A kind of method and application of the multi-process single-write and multiple-read without lock shared drive

Cited By (37)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110674052A (en)*2019-09-302020-01-10广州虎牙科技有限公司Memory management method, server and readable storage medium
CN110933448A (en)*2019-11-292020-03-27广州市百果园信息技术有限公司Live list service system and method
CN111092865A (en)*2019-12-042020-05-01全球能源互联网研究院有限公司Security event analysis method and system
CN113127415A (en)*2019-12-312021-07-16浙江宇视科技有限公司Method, device, medium and electronic equipment for processing real-time stream file
CN113127415B (en)*2019-12-312024-02-27浙江宇视科技有限公司Real-time stream file processing method, device, medium and electronic equipment
CN113157199A (en)*2020-01-222021-07-23阿里巴巴集团控股有限公司Snapshot occupation space calculation method and device, electronic equipment and storage medium
CN113918312A (en)*2020-07-072022-01-11大唐移动通信设备有限公司 Memory configuration method, device, device and storage medium
CN112306695A (en)*2020-11-192021-02-02中国民航信息网络股份有限公司Data processing method and device, electronic equipment and computer storage medium
CN112463333A (en)*2020-12-032021-03-09北京浪潮数据技术有限公司Data access method, device and medium based on multithreading concurrency
CN112463306A (en)*2020-12-032021-03-09南京机敏软件科技有限公司Method for sharing disk data consistency in virtual machine
CN112328435B (en)*2020-12-072023-09-12武汉绿色网络信息服务有限责任公司 Methods, devices, equipment and storage media for target data backup and recovery
CN112328435A (en)*2020-12-072021-02-05武汉绿色网络信息服务有限责任公司Method, device, equipment and storage medium for backing up and recovering target data
CN112732194A (en)*2021-01-132021-04-30同盾科技有限公司Irregular data storage method, device and storage medium
CN112732194B (en)*2021-01-132022-08-19同盾科技有限公司Irregular data storage method, device and storage medium
CN112947856A (en)*2021-02-052021-06-11彩讯科技股份有限公司Memory data management method and device, computer equipment and storage medium
CN112947856B (en)*2021-02-052024-05-03彩讯科技股份有限公司Memory data management method and device, computer equipment and storage medium
CN113194266A (en)*2021-04-282021-07-30深圳迪乐普数码科技有限公司Image sequence frame real-time rendering method and device, computer equipment and storage medium
CN115437798A (en)*2021-06-232022-12-06北京车和家信息技术有限公司Data processing method, device, equipment and medium for shared memory
US12386536B2 (en)2021-06-232025-08-12Beijing Chj Information Technology Co., Ltd.Data processing method and apparatus for shared memory, and device and medium
CN113535437B (en)*2021-08-032023-04-07节卡机器人股份有限公司Module data interaction method of robot, electronic equipment and storage medium
CN113535437A (en)*2021-08-032021-10-22上海节卡机器人科技有限公司Module data interaction method of robot, electronic equipment and storage medium
CN113778674A (en)*2021-08-312021-12-10上海弘积信息科技有限公司Lock-free implementation method of load balancing equipment configuration management under multi-core
CN113688068B (en)*2021-10-252022-02-15支付宝(杭州)信息技术有限公司Graph data loading method and device
CN113688068A (en)*2021-10-252021-11-23支付宝(杭州)信息技术有限公司Graph data loading method and device
CN114168316A (en)*2021-11-052022-03-11支付宝(杭州)信息技术有限公司Video memory allocation processing method, device, equipment and system
CN114090295A (en)*2021-11-192022-02-25中国电力科学研究院有限公司Hash-supported chain table type shared memory database generation method and system
CN114217987A (en)*2021-12-072022-03-22网易(杭州)网络有限公司Data sharing method, device, electronic device and storage medium
CN114356589A (en)*2021-12-092022-04-15北京华云安信息技术有限公司Data storage and reading method, device and equipment for multiple writers and multiple readers
CN114356589B (en)*2021-12-092024-04-12北京华云安信息技术有限公司Multi-writer and multi-reader data storage and reading method, device and equipment
CN114398187A (en)*2021-12-242022-04-26新浪网技术(中国)有限公司Data storage method and device
CN114490443A (en)*2022-02-142022-05-13浪潮云信息技术股份公司 An in-process cache method in golang based on shared memory
CN115454677A (en)*2022-09-262022-12-09广州文远知行科技有限公司 A data transmission method and system
WO2024109068A1 (en)*2022-11-252024-05-30惠州市德赛西威智能交通技术研究院有限公司Program monitoring method and apparatus, and electronic device and storage medium
CN115934377A (en)*2022-11-282023-04-07武汉光庭信息技术股份有限公司 A shared memory communication method and system based on atomic operation
CN118034610A (en)*2024-04-072024-05-14深圳市纽创信安科技开发有限公司Key data processing method applied to memory, device and equipment
CN118034610B (en)*2024-04-072024-07-02深圳市纽创信安科技开发有限公司Key data processing method applied to memory, device and equipment
CN118550735A (en)*2024-07-302024-08-27天翼云科技有限公司Method and device for improving high-performance calculation

Also Published As

Publication numberPublication date
CN110287044B (en)2021-08-03

Similar Documents

PublicationPublication DateTitle
CN110287044A (en)Without lock shared drive processing method, device, electronic equipment and readable storage medium storing program for executing
US10983909B2 (en)Trading off cache space and write amplification for Bε-trees
CN103810237B (en)Data managing method and system
US6789094B2 (en)Method and apparatus for providing extended file attributes in an extended attribute namespace
CN109376156B (en)Method for reading hybrid index with storage awareness
US20170075718A1 (en)Method and apparatus of accessing data of virtual machine
US11182083B2 (en)Bloom filters in a flash memory
US20110302365A1 (en)Storage system using a rapid storage device as a cache
JPH10501086A (en) Storage plane organization and storage system based thereon
US20190370239A1 (en)Large range lookups for b^e-tree
CN107408132B (en)Method and system for moving hierarchical data objects across multiple types of storage
CN106980665A (en)Data dictionary implementation method, device and data dictionary management system
CN106407355A (en)Data storage method and device
CN116048396B (en)Data storage device and storage control method based on log structured merging tree
CN109460406A (en)Data processing method and device
CN100458792C (en)Method and data processing system for managing a mass storage system
US9875030B2 (en)Media write operation
CN111444114B (en)Method, device and system for processing data in nonvolatile memory
CN115576947A (en)Data management method and device, combined library, electronic equipment and storage medium
CN105260139B (en)A kind of disk management method and system
US20100235383A1 (en)Storage system and data migration-compatible search system
CN119248799B (en) Database multi-transaction processing method, device, equipment and storage medium
CN111159117B (en) A Low Overhead File Operation Log Collection Method
US20210026825A1 (en)Read iterator for pre-fetching nodes of a b-tree into memory
US20150220405A1 (en)In-memory continuous data protection

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp