Nothing Special   »   [go: up one dir, main page]

CN104216835B - A kind of method and device for realizing internal memory fusion - Google Patents

A kind of method and device for realizing internal memory fusion Download PDF

Info

Publication number
CN104216835B
CN104216835B CN201410420315.1A CN201410420315A CN104216835B CN 104216835 B CN104216835 B CN 104216835B CN 201410420315 A CN201410420315 A CN 201410420315A CN 104216835 B CN104216835 B CN 104216835B
Authority
CN
China
Prior art keywords
memory
internal memory
long
extension set
range extension
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.)
Active
Application number
CN201410420315.1A
Other languages
Chinese (zh)
Other versions
CN104216835A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410420315.1A priority Critical patent/CN104216835B/en
Publication of CN104216835A publication Critical patent/CN104216835A/en
Application granted granted Critical
Publication of CN104216835B publication Critical patent/CN104216835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a kind of method and device for realizing internal memory fusion, method includes:Receive the memory request of local host and carry out internal memory section;The Memory Allocation priority of long-range extension set is determined by Memory Allocation table, and is cut into slices for long-range extension set pairing internal memory;By memory address mappings, the memory source of long-range extension set is obtained in the way of integrating the internal memory and cut into slices;Storage allocation backup area is with the corresponding internal storage data of internal memory section of backing up in realtime;Perform Memory Checkout during using long-range extension set internal memory in real time, there is provided internal memory error correction and Backup and Restore.Device includes:Request processing module, Memory Allocation table module, internal memory acquisition module, backup module and correction module.Freememory of the present invention by the long-range extension set of network call, and local host is integrated into as physical memory extension or the paging file caching of local host, the speed of optimization local application, also brings more preferable memory sharing and autgmentability to build cloud computing platform.

Description

A kind of method and device for realizing internal memory fusion
Technical field
It is the present invention relates to internal memory integration technology field more particularly to a kind of for computer system and smart electronicses terminal Internal memory fusion method and device.
Background technology
In the hardware physical resource of computer and smart electronicses terminal such as smart mobile phone, physical memory is indispensable Important component part.In the networked system of the computer and smart electronicses terminal of multiple terminals, as each terminal operating should With very big to the demand difference of physical memory during program, especially on the computer of high-performance CPU and internal memory, for demand internal memory Little application, a large amount of physical memories are idle, cause the waste of memory source.However, when other terminals perform memory requirements During larger application, the physical memory that can be used seems extremely deficient again, thus lack the terminal of physical memory have to by Local disk paging file(Virtual memory)To make up the deficiency of physical memory.Although relative to physical memory, local disk is outstanding It is mechanical hard disk capacity it is very huge, enough virtual memorys can be provided for application program, but the number of local disk The speed of physical memory is much smaller than according to transmission speed, this sacrifices the performance of application program again.
On the other hand, the development of high speed circuit and optical interconnection technology drastically increases the Netowrk tape between terminal Wide, transmission speed and stability.Ten thousand current mbit ethernets reach the disk even transmission speed of the several times of electronic hard disc, Germany The Karlsruhe Institute of Technology develop frequency for Wireless wide area network technologies of the 240GHz with a width of 40Gbps.These are steady at a high speed The fixed network communications technology calls the physical memory of other remote terminals to provide probability for local terminal, also so that CPU with The coupling of internal memory is no longer limited by distance.This new multiple terminals internal memory fusion system and structure bring more preferable sharing And autgmentability.Therefore, there is demand local terminal and the internal storage location of other terminals is interconnected by express network, fully call the phase The free memory resource and excavation hardware potentiality of prestige.
The content of the invention
The purpose of the present invention is to overcome above-mentioned the deficiencies in the prior art, there is provided one kind realizes internal memory fusion method and device, Integrate the computer equipment of networking, the free memory of smart electronicses terminal to extend the internal memory of local host.
The technical solution used in the present invention is to provide a kind of method for realizing internal memory fusion, and which comprises the steps:
The internal memory of request is divided at least one internal memory section, is each by A, the memory request for receiving local host The internal memory call address that individual internal memory section distribution is called for local host accordingly;
B, refreshing Memory Allocation table, dynamically record address information, the communication of long-range extension set in the Memory Allocation table Status information, memory information and running state information, determine the Memory Allocation of each long-range extension set from there through sortord Priority, matches the internal memory to the region of memory of long-range extension set successively according to Memory Allocation priority order from high to low and cuts Piece;
The address information of C, the region of memory of the long-range extension set read in Memory Allocation table and its section of corresponding internal memory, Mapping connection is set up between the memory address of long-range extension set and the internal memory call address of corresponding internal memory section, so that this landlord Machine obtains the memory source of long-range extension set in the way of integrating the internal memory and cut into slices;
D, correspond to each internal memory and cut into slices, distribute in corresponding in the memory element of local host and/or long-range extension set Backup region is deposited, for the corresponding internal storage data of each internal memory section of backing up in realtime respectively;
E, in local host using Memory Checkout is performed during long-range extension set internal memory in real time, detect long-range extension set internal memory Data integrity and internal memory correction process is provided.
Used as the above-mentioned further improvements in methods for realizing internal memory fusion, step A includes:Memory request amount is set The internal memory asked, if the amount of memory of request is more than the memory request amount threshold values, is drawn by threshold values according to default quantity Divide internal memory section, otherwise the internal memory of request is cut into slices as an internal memory.
As the above-mentioned further improvements in methods for realizing internal memory fusion, in step B, the internal memory of long-range extension set The sortord of distribution priority includes:The Memory Allocation priority of the little long-range extension set of communication delay value is higher than communication delay value The Memory Allocation priority of big long-range extension set;The Memory Allocation priority of the big long-range extension set of communication transfer speeds value is higher than logical Letter transmission speed is worth the Memory Allocation priority of little long-range extension set;The internal memory of the long-range extension set for being available for the amount of memory for obtaining big The Memory Allocation priority of the distribution priority long-range extension set little higher than the amount of memory for being available for obtaining;The average occupancies of CPU are low Long-range extension set Memory Allocation priority higher than the low long-range extension set of the average occupancies of CPU Memory Allocation priority.
Further, step B also includes:In the Memory Allocation table, according to Memory Allocation priority from high to low Order match the internal memory section to the physical memory area of corresponding long-range extension set successively;If there remains do not matched somebody with somebody To internal memory section, then continue according to Memory Allocation priority order from high to low successively to corresponding long-range extension set with Match remaining internal memory section in the virtual memory region of local host.
Used as the above-mentioned further improvements in methods for realizing internal memory fusion, step C includes:It is long-range that distribution is obtained Extension set internal memory as local host extension physical memory, extension virtual memory, paging file storage area, cache file storage area Or the storage area of arbitrary data.
Preferably, step D also includes:The internal memory section of correspondence all or part, is not having adopted long-range point Distribute corresponding region of memory in machine, for the corresponding internal storage data of the internal memory section of backing up in realtime.
Used as the above-mentioned further improvements in methods for realizing internal memory fusion, step E includes:Occur asking detecting After the long-range extension set internal memory of topic, retrieve the corresponding internal memory section of the long-range extension set internal memory, then from internal memory section it is corresponding in Memory Backup data are read in depositing backup region, for recovering corresponding long-range extension set internal memory;If in corresponding long-range extension set Recovery failure is deposited, is then updated Memory Allocation table and is distributed new long-range extension set internal memory, then carry out internal storage data recovery again.
The another aspect of the technical solution used in the present invention provides a kind of device for realizing internal memory fusion, including:
The internal memory of request, for receiving the memory request of local host, is divided at least one by request processing module Internal memory is cut into slices, and is the internal memory call address that each internal memory section distribution is called for local host accordingly, wherein described please Processing module is asked to include number of sections processing module, the number of sections processing module arranges memory request amount threshold values, if please The amount of memory asked is more than the memory request amount threshold values, then the internal memory asked is divided internal memory section according to default quantity, Otherwise the internal memory of request is cut into slices as an internal memory;
Memory Allocation table module, the Memory Allocation table module are used to refresh Memory Allocation table, in the Memory Allocation table In dynamically record address information, communications status information, memory information and the running state information of long-range extension set, from there through row Sequential mode determines the Memory Allocation priority of each long-range extension set, according to Memory Allocation priority order from high to low successively The internal memory section is matched to the region of memory of long-range extension set;
Internal memory acquisition module, the internal memory acquisition module are used for the region of memory for reading the long-range extension set in Memory Allocation table And its address information of corresponding internal memory section, call ground in the internal memory of the memory address and corresponding internal memory section of long-range extension set Mapping connection is set up between location, so that local host obtains the internal memory money of long-range extension set in the way of integrating the internal memory and cut into slices Source;
Backup module, corresponding each internal memory of the backup module are cut into slices, in the storage of local host and/or long-range extension set Distribute corresponding Memory Backup region in unit, for the corresponding internal storage data of each internal memory section of backing up in realtime respectively;
Correction module, the correction module perform internal memory school during local host is using long-range extension set internal memory in real time Test, detect the data integrity of long-range extension set internal memory and perform internal memory correction process.
Used as the further improvement of the above-mentioned device for realizing internal memory fusion, the Memory Allocation table module includes:
Prioritization module, for the communications status information according to long-range extension set, memory information and running state information The Memory Allocation priority of long-range extension set is ranked up, sortord therein includes:The little long-range extension set of communication delay value Memory Allocation priority higher than the big long-range extension set of communication delay value Memory Allocation priority, communication transfer speeds value is big The Memory Allocation priority of long-range extension set is worth the Memory Allocation priority of little long-range extension set higher than communication transfer speeds, is available for obtaining The Memory Allocation priority of the big long-range extension set of the amount of memory that the takes long-range extension set little higher than the amount of memory for being available for obtaining Memory Allocation priority, the Memory Allocation priority of the low long-range extension set of the average occupancies of CPU are low higher than the average occupancies of CPU The Memory Allocation priority of long-range extension set;
Internal memory section distribute module, the internal memory section distribute module utilize Memory Allocation table, preferential according to Memory Allocation Level order from high to low matches the internal memory section to the physical memory area of corresponding long-range extension set successively, if there remains The internal memory section do not matched, then continue according to Memory Allocation priority order from high to low successively to corresponding Match remaining internal memory section in the virtual memory region of long-range extension set and local host.
Used as the further improvement of the above-mentioned device for realizing internal memory fusion, the internal memory acquisition module includes virtual memory Distribute module, for distribute all or part acquisition long-range extension set internal memory as local host extension physical memory, The storage area of extension virtual memory, paging file storage area, cache file storage area or arbitrary data.
As the further improvement of the above-mentioned device for realizing internal memory fusion, the correction module includes:Internal memory recovers mould Block, the internal memory recovery module retrieve the long-range extension set internal memory corresponding after the long-range extension set internal memory for going wrong is detected Internal memory is cut into slices, and reads Memory Backup data, for recovering corresponding in then cutting into slices corresponding Memory Backup region from the internal memory Long-range extension set internal memory, if corresponding long-range extension set internal memory recovers failure, updates Memory Allocation table and distributes new long-range point Machine internal memory, then carries out internal storage data recovery again.
Beneficial effects of the present invention are:The freememory of long-range extension set is called by express network and local host is incorporated into As the extension of local physical memory so that local host obtains more internal memory moneys in the case of need not increasing internal memory hardware Source, can run more application programs, improve the overall performance of local host system;Realize in the high-speed physical of long-range extension set The memory cache that traditional local disk paging file is substituted with virtual memory is deposited, the application for needing to buffer paging file is improved The execution speed of program;Realized between terminal by express network, between smart electronicses terminal and terminal Merge with the internal memory between smart electronicses terminal, the CPU of multiple terminals is no longer limited by distance with the coupling of internal memory, be structure Cloud computing platform brings more preferable memory sharing and autgmentability.
Technical scheme based on Memory Allocation table and by simple and practical mode, according to Memory Allocation priority Order obtains the memory source of multiple terminals, fully calls the long-distance inner resource of optimum, excavates computer system and intelligence electricity The hardware potentiality of sub- terminal;Ensure that computer system memory is integrated, adjusted by way of Memory Checkout, error correction and Backup and Restore With the stable operation with read-write.
Description of the drawings
The invention will be further described with reference to the accompanying drawings and examples.
Fig. 1 is that the step of present invention realizes the method for internal memory fusion is schemed;
Fig. 2 is the module frame chart of the device first embodiment that the present invention realizes internal memory fusion;
Fig. 3 is the schematic diagram of the device second embodiment that the present invention realizes internal memory fusion;
Fig. 4 is that the Memory Allocation of the device second embodiment that the present invention realizes internal memory fusion represents intention;
Fig. 5 is the step of present invention realizes the device second embodiment of internal memory fusion flow chart.
Specific embodiment
Fig. 1 show the step of the present invention realizes internal memory fusion method and schemes, and which comprises the following steps:
Step A:Connection local host, receives the memory request of local host, determines the amount of ram needed for local host;Will The internal memory of request is divided at least one internal memory section.Internal memory number of slices, can use according to connection are preset as needed can Long-range extension set quantity calculates internal memory number of slices or according to the capacity of default single internal memory section calculating number of slices.It is preferred that Whether ground, judge the amount of ram asked more than default threshold values, if the amount of ram of request is more than the threshold values, according to default The internal memory asked is divided internal memory section by quantity, and otherwise the internal memory of request is cut into slices as an internal memory.Then, it is in each Deposit the internal memory call address that section distribution is called for local host accordingly.
Step B:Connect long-range extension set, the mailing address of the long-range extension set of dynamic access, communications status information, memory information and Running state information, and write in Memory Allocation table, wherein, communications status information includes the network communication and transmission of long-range extension set Time delay, memory information include memory amount, memory speed, available memory size and the region of memory address of long-range extension set, fortune Row status information includes that the average occupancies of the CPU of long-range extension set are low;Then each long-range extension set is determined by sortord Memory Allocation priority, for example choose that communication delay is shorter, communication transfer speeds faster, free memory is more and/or CPU The average lower long-range extension set of occupancy is the long-range extension set of higher Memory Allocation priority;Then in dividing in step A Deposit to cut into slices and matched with the region of memory of long-range extension set according to Memory Allocation priority order from high to low successively, for example, can be with Internal memory section is one by one matched to each long-range extension set according to priority order from high to low, can be with excellent in higher Memory Allocation Mark off multiple region of memorys to match multiple internal memory sections in the long-range extension set of first level.Preferably, it is preferential according to Memory Allocation Level order from high to low matches the internal memory section to the physical memory area of corresponding long-range extension set successively, if there remains The internal memory section do not matched, then continue according to Memory Allocation priority order from high to low successively to corresponding Match remaining internal memory section in the virtual memory region of long-range extension set and local host.After pairing internal memory section, by long-range extension set With the pairing result write Memory Allocation table of internal memory section.
Step C:Believe the address of the region of memory and its section of corresponding internal memory that read the long-range extension set in Memory Allocation table Breath, sets up mapping connection between the internal memory call address of the memory address and corresponding internal memory section of long-range extension set.Thus, originally Ground main frame directly can obtain and integrate the internal memory of different long-range extension sets by the internal memory call address of full memory section Resource, so as to extend the physical memory of local host.As needed, the long-range extension set internal memory that local host is obtained can also be used Make the storage area of virtual memory, paging file storage area, cache file storage area or arbitrary data.
Step D:Corresponding each internal memory is cut into slices, and distributes corresponding virtual memory region in the memory element of local host Domain, as backing up in realtime for the long-range extension set internal memory for obtaining.Preferably, can be distributing corresponding memory field in long-range extension set Domain, long-range extension set internal memory as the acquisition are backed up in realtime.
Step E:Perform Memory Checkout during local host is using long-range extension set internal memory in real time, detect long-range extension set The data integrity of internal memory simultaneously provides internal memory correction process.Preferably, after problem internal memory is detected, carry to the application program Back up in realtime for corresponding with the problem internal memory, so as to substitute the problem internal memory temporarily, if the problem internal memory is passed through Internal memory correction process still cannot be repaired, then obtain other internal memory to substitute the problem internal memory again from long-range extension set.
Fig. 2 show the module frame chart that the device first embodiment of internal memory fusion is realized in invention.The device includes:At request Reason module, Memory Allocation table module, internal memory acquisition module, backup module and correction module.Wherein, request processing module is used to connect The memory request of local host is received, the internal memory of request is divided into at least one internal memory section, be each internal memory section point With the internal memory call address called for local host accordingly, wherein the request processing module includes that number of sections processes mould Block, the number of sections processing module arrange memory request amount threshold values, if the amount of memory of request is more than the memory request Amount threshold values, then divide internal memory section by the internal memory asked according to default quantity, otherwise using the internal memory of request as an internal memory Section.Memory Allocation table module is used to set up and dynamic refresh Memory Allocation table, dynamically records in the Memory Allocation table Remotely the address information of extension set, communications status information, memory information and running state information, determine from there through sortord every The Memory Allocation priority of one long-range extension set, according to Memory Allocation priority order from high to low successively to long-range extension set Region of memory matches the internal memory section.Internal memory acquisition module is used for the region of memory for reading the long-range extension set in Memory Allocation table And its address information of corresponding internal memory section, call ground in the internal memory of the memory address and corresponding internal memory section of long-range extension set Mapping connection is set up between location, so that local host obtains the internal memory money of long-range extension set in the form of integrating the internal memory section Source.Backup module corresponds to each internal memory and cuts into slices, and distributes in corresponding in the memory element of local host and/or long-range extension set Backup region is deposited, for the corresponding internal storage data of each internal memory section of backing up in realtime respectively.Correction module is in local host Perform Memory Checkout during using long-range extension set internal memory in real time, detect the data integrity of long-range extension set internal memory and provide interior Deposit correction process.
The present invention with reference to shown in Fig. 3 realizes the device second embodiment of internal memory fusion.Local host and long-range extension set example The terminals such as server, computer, smart mobile phone, panel computer are may be implemented as such as.In the present embodiment, internal memory fusing device The outside of local host can be set directly in local host or be arranged as the form of independent chip or device.Internal memory Fusing device includes processor, scheduler, memorizer and coffret.Processor and scheduler are connected with local host.Transmission Interface for example may be embodied as the communication interfaces such as fiber optic data communication interface, wireless network card, PCI-E standard interface, make processor and tune Degree device sets up by coffret and long-range extension set that Ethernet is connected, serial data bus connect or other are wired or wireless Communication connection.Memory Allocation table and threshold parameter are stored in memorizer, is written and read for processor and scheduling.
Internal memory fusing device dynamically obtains the communication informations such as the network bandwidth of long-range extension set, speed, time delay, long-range extension set Free memory quantity, the memory information and the average occupancies of CPU, system idleness etc. such as internal memory response speed and memory address Running state information.These communication informations, memory information and running state information are corresponded to each long-range extension set write by processor In Memory Allocation table in memorizer, then according to above- mentioned information, determine that the Memory Allocation of long-range extension set is excellent in the way of sorting First level.For example, referring to Fig. 4, be first according to communication delay from be short to the long Memory Allocation priority for determining long-range extension set from height to It is low, then in the case of same communication time delay, successively according to communication transfer speeds faster or transmission bandwidth it is bigger, it is idle in The lower long-range extension set of the average occupancies of more, CPU is deposited as the long-range extension set of higher Memory Allocation priority.
The flow chart that Fig. 5 show the device second embodiment for realizing internal memory fusion of Fig. 3.
As shown in step S1, internal memory fusing device receives local host and sends memory request, needed for analysis local host Amount of ram.
As shown in step s 2, processor carries out slicing treatment to the internal memory asked, wherein, processor judges the internal memory of request Whether quantity is more than default threshold values.If the amount of memory of request is more than default threshold values, processor is just by the internal memory of request It is divided into a plurality of internal memory sections.The threshold values can be default amount of ram, it is also possible to the internal memory preferably according to long-range extension set Measure to be set, for example, by the free memory amount that the threshold value setting is single long-range extension set, it is to avoid the amount of ram of request is excessive And memory source can not be matched by the long-range extension set.
As shown in step S3, processor reads Memory Allocation table, makes scheduler determine the Memory Allocation of current remote extension set Priority.Then order of the scheduler according to Memory Allocation priority from high to low, the physical memory area to long-range extension set are matched somebody with somebody Internal memory is cut into slices, until the physical memory pairing of all long-range extension sets is finished.Preferably, if the long-range extension set of higher priority Free memory amount it is sufficiently large, then can match the section of more internal memories, as shown in Figure 3 and Figure 4.
As shown in step s 4, after the physical memory for having matched long-range extension set, judge whether also remaining internal memory section Without distribution.If also the section of remaining internal memory is without distributing, scheduler is according to Memory Allocation priority from high to low suitable Sequence matches remaining internal memory section, such as step to the virtual memory region of long-range extension set or the virtual memory region of local extension set Shown in S5.If the internal memory section of whole has been distributed, skip step S5 and carry out execution step S6.Long-range extension set internal memory and The pair relationhip of internal memory section can write the Memory Allocation table.
As shown in step s beta, the internal memory section for dividing in processor step S2 corresponding with scheduler, in the storage of local host Distribute corresponding virtual memory region in storage such as hard disk corresponding RAM date backup area is said as internal memory section, its In, the RAM date backup area needs to mark off the section backup of at least one internal memory, makes the internal memory section backup of division right respectively Each is answered to match the section of internal memory of long-range extension set.Referring for example to Fig. 3, internal memory section backup B1, B2, B3 correspond to internal memory respectively Section M1, M2, M3.Preferably, Memory Backup area can also be arranged in the internal memory of long-range extension set.
As shown in step S7, internal memory call address and corresponding long-range extension set internal memory of the scheduler in the internal memory section of request Address between set up mapping connection so that local host obtains the memory source of long-range extension set.Preferably, the internal memory melts Attach together the processor put and scheduler can pass through to divide the address of internal memory section, make the long-range extension set internal memory of acquisition be divided into this Ground main frame extension physical memory, extension virtual memory, paging file storage area, the cache file storage area of application program or The arbitrary data memory block of application program.
Finally, as shown in step S8, it is that the long-range extension set internal memory for obtaining adds Memory Checkout mechanism.Answering in local host With program using during long-range extension set internal memory, the processor of internal memory fusing device is also in real time to the long-range extension set that obtains Internal memory performs Memory Checkout, is verified for example with ECC check or using Memory Checkout code.When detecting problem internal memory Afterwards, carry out internal memory correction process.If the problem internal memory still cannot be repaired through internal memory correction process, to application program The RAM date backup in Memory Backup area corresponding with the problem internal memory is provided, so as to interim substitution problem internal memory.Then Again obtain new internal memory to substitute the problem internal memory in long-range extension set.
The above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long as Which reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.In the protection model of the present invention In enclosing, its technical scheme and/or embodiment can have a variety of modifications and variations.

Claims (8)

1. it is a kind of realize internal memory fusion method, it is characterised in that comprise the steps:
The internal memory of request is divided at least one internal memory section, is in each by A, the memory request for receiving local host Deposit the internal memory call address that section distribution is called for local host accordingly;
B, refreshing Memory Allocation table, dynamically record address information, the communications status of long-range extension set in the Memory Allocation table Information, memory information and running state information, determine that from there through sortord the Memory Allocation of each long-range extension set is preferential Level,
The internal memory section is matched to the region of memory of long-range extension set successively according to Memory Allocation priority order from high to low;
The address information of C, the region of memory of the long-range extension set read in Memory Allocation table and its section of corresponding internal memory, long-range The memory address of extension set and corresponding internal memory section internal memory call address between set up mapping connection so that local host with The mode for integrating the internal memory section obtains the memory source of long-range extension set;
D, correspond to each internal memory and cut into slices, distribute corresponding internal memory in the memory element of local host and/or long-range extension set standby Part region, for the corresponding internal storage data of each internal memory section of backing up in realtime respectively;
E, in local host using Memory Checkout is performed during long-range extension set internal memory in real time, detect the number of long-range extension set internal memory According to integrity and provide internal memory correction process;
Wherein, in step B, the sortord of the Memory Allocation priority of long-range extension set includes:
The internal memory point of the Memory Allocation priority of the little long-range extension set of the communication delay value long-range extension set big higher than communication delay value With priority;
The Memory Allocation priority of the big long-range extension set of communication transfer speeds value is worth little long-range extension set higher than communication transfer speeds Memory Allocation priority;
The Memory Allocation priority of the long-range extension set for being available for the amount of memory for obtaining big is little higher than the amount of memory for being available for obtaining The Memory Allocation priority of long-range extension set;
The Memory Allocation priority of the low long-range extension set of the average occupancies of the CPU long-range extension set low higher than the average occupancies of CPU Memory Allocation priority.
2. it is according to claim 1 realize internal memory fusion method, it is characterised in that step A includes:
Memory request amount threshold values is set, if the amount of memory of request is more than the memory request amount threshold values, according to default The internal memory asked is divided internal memory section by quantity, and otherwise the internal memory of request is cut into slices as an internal memory.
3. it is according to claim 1 realize internal memory fusion method, it is characterised in that step B includes:
In the Memory Allocation table, according to Memory Allocation priority order from high to low successively to corresponding long-range extension set Physical memory area matches the internal memory section;
If there remains the internal memory section do not matched, continue according to the Memory Allocation priority from high to low suitable Sequence matches remaining internal memory section to the virtual memory region of corresponding long-range extension set and local host successively.
4. it is according to claim 1 realize internal memory fusion method, it is characterised in that step C also includes:
Distribute the extension physical memory of the long-range extension set internal memory as local host of acquisition, extend virtual memory, paging file storage Deposit the storage area in area, cache file storage area or arbitrary data.
5. it is according to claim 1 realize internal memory fusion method, it is characterised in that step E includes:
After the long-range extension set internal memory for going wrong is detected, the corresponding internal memory section of the long-range extension set internal memory, Ran Houcong are retrieved Memory Backup data are read in the corresponding Memory Backup region of internal memory section, for recovering corresponding long-range extension set internal memory;
If corresponding long-range extension set internal memory recovers failure, update Memory Allocation table and distribute new long-range extension set internal memory, so Carry out internal storage data recovery afterwards again.
6. it is a kind of realize internal memory fusion device, it is characterised in that include:
The internal memory of request, for receiving the memory request of local host, is divided at least one internal memory by request processing module Section, is that each internal memory section distributes the internal memory call address called for local host accordingly, wherein at the request Reason module includes number of sections processing module, and the number of sections processing module arranges memory request amount threshold values, if request Amount of memory is more than the memory request amount threshold values, then the internal memory asked is divided internal memory section according to default quantity, otherwise The internal memory of request is cut into slices as an internal memory;
Memory Allocation table module, the Memory Allocation table module are used to refresh Memory Allocation table, move in the Memory Allocation table Address information, communications status information, memory information and the running state information of long-range extension set are recorded state, from there through sequence side Formula determines the Memory Allocation priority of each long-range extension set, according to Memory Allocation priority order from high to low successively to remote The region of memory of journey extension set matches the internal memory section;
Internal memory acquisition module, the internal memory acquisition module be used for the region of memory for reading long-range extension set in Memory Allocation table and its The address information of corresponding internal memory section, the internal memory call address cut into slices in the memory address and corresponding internal memory of long-range extension set it Between set up mapping connection so that local host obtains the memory source of long-range extension set in the way of integrating the internal memory and cut into slices;
Backup module, corresponding each internal memory of the backup module are cut into slices, in local host and/or the memory element of long-range extension set It is middle to distribute corresponding Memory Backup region, for the corresponding internal storage data of each internal memory section of backing up in realtime respectively;
Correction module, the correction module perform Memory Checkout during local host is using long-range extension set internal memory in real time, Detect the data integrity of long-range extension set internal memory and internal memory correction process is provided;
Wherein, the Memory Allocation table module includes:
Prioritization module, for the communications status information according to long-range extension set, memory information and running state information to remote The Memory Allocation priority of journey extension set is ranked up, and sortord therein includes:The little long-range extension set of communication delay value it is interior Deposit Memory Allocation priority of the distribution priority higher than the big long-range extension set of communication delay value, big long-range of communication transfer speeds value The Memory Allocation priority of extension set is worth the Memory Allocation priority of little long-range extension set higher than communication transfer speeds, is available for what is obtained The internal memory of the Memory Allocation priority of the big long-range extension set of the amount of memory long-range extension set little higher than the amount of memory for being available for obtaining Distribution priority, long-range low higher than the average occupancies of CPU of the Memory Allocation priority of the low long-range extension set of the average occupancies of CPU The Memory Allocation priority of extension set;
Internal memory is cut into slices distribute module, and internal memory section distribute module utilizes Memory Allocation table, according to Memory Allocation priority from High to Low order matches the internal memory section to the physical memory area of corresponding long-range extension set successively, if there remains do not had The internal memory section matched, then continue according to Memory Allocation priority order from high to low successively to corresponding long-range Match remaining internal memory section in the virtual memory region of extension set and local host.
7. it is according to claim 6 realize internal memory fusion device, it is characterised in that the internal memory acquisition module includes:
Virtual memory distribute module, for distributing extension physical memory, expansion of the long-range extension set internal memory for obtaining as local host The storage area of exhibition virtual memory, paging file storage area, cache file storage area or arbitrary data.
8. it is according to claim 6 realize internal memory fusion device, it is characterised in that the correction module includes:
Internal memory recovery module, the internal memory recovery module retrieve this long-range after the long-range extension set internal memory for going wrong is detected The corresponding internal memory section of extension set internal memory, reads Memory Backup data in then cutting into slices corresponding Memory Backup region from the internal memory, For recovering corresponding long-range extension set internal memory, if corresponding long-range extension set internal memory recovers failure, Memory Allocation table is updated simultaneously The new long-range extension set internal memory of distribution, then carries out internal storage data recovery again.
CN201410420315.1A 2014-08-25 2014-08-25 A kind of method and device for realizing internal memory fusion Active CN104216835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410420315.1A CN104216835B (en) 2014-08-25 2014-08-25 A kind of method and device for realizing internal memory fusion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410420315.1A CN104216835B (en) 2014-08-25 2014-08-25 A kind of method and device for realizing internal memory fusion

Publications (2)

Publication Number Publication Date
CN104216835A CN104216835A (en) 2014-12-17
CN104216835B true CN104216835B (en) 2017-04-05

Family

ID=52098348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410420315.1A Active CN104216835B (en) 2014-08-25 2014-08-25 A kind of method and device for realizing internal memory fusion

Country Status (1)

Country Link
CN (1) CN104216835B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358809B (en) * 2018-09-28 2020-07-24 方一信息科技(上海)有限公司 RAID data storage system and method

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988871B (en) * 2015-01-27 2020-06-02 华为技术有限公司 Remote memory allocation method, device and system
CN106484529B (en) * 2016-09-12 2019-05-14 Oppo广东移动通信有限公司 The Memory adjustments method and terminal of terminal
CN107179998A (en) * 2017-06-22 2017-09-19 湖南国科微电子股份有限公司 A kind of method and device for configuring peripheral hardware core buffer
CN107391311A (en) * 2017-07-30 2017-11-24 安徽云帮邦网络技术有限公司 A kind of operation method of computer program
CN107644000B (en) * 2017-09-20 2020-11-03 中国核动力研究设计院 Page expansion method based on AT96 bus
US10981576B2 (en) 2017-12-27 2021-04-20 Micron Technology, Inc. Determination of reliability of vehicle control commands via memory test
CN109284234B (en) * 2018-09-05 2020-12-04 珠海昇生微电子有限责任公司 Storage address allocation method and system
US11507175B2 (en) * 2018-11-02 2022-11-22 Micron Technology, Inc. Data link between volatile memory and non-volatile memory
CN111611119B (en) * 2020-05-27 2023-04-07 合肥工大高科信息科技股份有限公司 Method and system for realizing on-line self-check of RAM (random Access memory) under real-time operating system
CN112363835B (en) * 2020-11-11 2024-09-03 深圳供电局有限公司 Intelligent resource adjustment method and system based on network big data
CN116418994A (en) * 2021-12-29 2023-07-11 华为技术有限公司 Image coding method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928839A (en) * 2005-09-09 2007-03-14 中国科学院计算技术研究所 Long-distance inner server and its implementing method
CN1972215A (en) * 2006-12-06 2007-05-30 中国科学院计算技术研究所 A remote internal memory sharing system and its implementation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594309B (en) * 2009-06-30 2011-06-08 华为技术有限公司 Method and device for managing memory resources in cluster system, and network system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928839A (en) * 2005-09-09 2007-03-14 中国科学院计算技术研究所 Long-distance inner server and its implementing method
CN1972215A (en) * 2006-12-06 2007-05-30 中国科学院计算技术研究所 A remote internal memory sharing system and its implementation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358809B (en) * 2018-09-28 2020-07-24 方一信息科技(上海)有限公司 RAID data storage system and method

Also Published As

Publication number Publication date
CN104216835A (en) 2014-12-17

Similar Documents

Publication Publication Date Title
CN104216835B (en) A kind of method and device for realizing internal memory fusion
CN108052655B (en) Data writing and reading method
CN101426026B (en) Method and system for data synchronization between multiple servers
CN105338078B (en) Date storage method and device for storage system
CN104615606B (en) A kind of Hadoop distributed file systems and its management method
CN107885804A (en) Database synchronization method, application server and computer-readable recording medium
CN103995855B (en) The method and apparatus of data storage
CN110362381A (en) HDFS cluster High Availabitity dispositions method, system, equipment and storage medium
CN111124277A (en) Deep learning data set caching method, system, terminal and storage medium
CN104202375A (en) Method and system for synchronous data
CN111159436A (en) Method and device for recommending multimedia content and computing equipment
CN107368260A (en) Memory space method for sorting, apparatus and system based on distributed system
CN108347477A (en) Data transmission method for uplink, device and server
CN106844108A (en) A kind of date storage method, server and storage system
CN103793291A (en) Distributed data copying method and device
CN110147203A (en) A kind of file management method, device, electronic equipment and storage medium
CN103973791A (en) Rapid uniform storage system of internet of things
CN111796935A (en) Consumption instance distribution method and system for calling log information
CN112527746A (en) Log storage method, device, equipment and storage medium
CN106951456B (en) Memory database system and data processing system
CN107229421A (en) The establishment of video data storage systems, file write and read method and device
CN111399753A (en) Method and device for writing pictures
CN107148612A (en) A kind of method and apparatus of extending user subregion
CN117520278A (en) Multi-client high-precision directory quota control method for distributed file system
CN113553325A (en) Synchronization method and system for aggregation objects in object storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant