WO2017050064A1 - Procédé et dispositif de gestion de mémoire pour une base de données de mémoire partagée - Google Patents

Procédé et dispositif de gestion de mémoire pour une base de données de mémoire partagée Download PDF

Info

Publication number
WO2017050064A1
WO2017050064A1 PCT/CN2016/095355 CN2016095355W WO2017050064A1 WO 2017050064 A1 WO2017050064 A1 WO 2017050064A1 CN 2016095355 W CN2016095355 W CN 2016095355W WO 2017050064 A1 WO2017050064 A1 WO 2017050064A1
Authority
WO
WIPO (PCT)
Prior art keywords
database
memory
physical memory
space
physical
Prior art date
Application number
PCT/CN2016/095355
Other languages
English (en)
Chinese (zh)
Inventor
耿常才
李响
葛聪
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017050064A1 publication Critical patent/WO2017050064A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation

Definitions

  • This application relates to, but is not limited to, the field of in-memory database management technology.
  • the storage technology needs to meet the capacity expansion function with high reliability.
  • the in-memory database can meet the above requirements for the high-reliability expansion function of the storage technology. Has been widely used.
  • a shared memory method can be used to establish an in-memory database.
  • the architecture of the database is as shown in FIG.
  • FIG. A schematic diagram of establishing a database using shared memory.
  • shared memory mode when accessing data in multiple processes, you can directly access memory without having to copy data between processes and copy data multiple times.
  • Figure 2 multiple processes accessing shared memory in the database in the related art.
  • Schematic diagram In addition, in order to manage the simplicity and the stability and performance needs, when the shared memory is opened, the fixed size is generally fixed.
  • FIG. 3 A schematic diagram of the memory in the database.
  • the management method is to divide the memory into multiple segments of the same size. When expanding, apply for the shared memory of the specified segment size to join the memory management module to improve the memory database capacity. This method does not restart.
  • the database instance can expand the memory requirements, but when accessing the record data, it is necessary to first determine which segment the data is in, that is, it may access the data across the memory segment and access the data between multiple segments, although it seems that the operation is relatively simple. But for an in-memory database with high performance requirements When searching for data across segments, the performance is greatly reduced, which has a great impact on the memory database with extremely high performance requirements; Storage also requires a certain mechanism to notify each process to map, and the management method is more complicated.
  • the present invention provides a memory management method and device for a shared memory database, which solves the problem that the memory database access performance is degraded due to the discontinuous multi-segment shared memory database address and the need to access data across segments; and the multi-segment is simplified.
  • the shared memory database is expanded, the shared memory needs to be remapped, which causes high management complexity, and the program stability and access efficiency are improved accordingly.
  • a memory management method for a shared memory database comprising:
  • the second physical memory of the preset expansion step size is added to the virtual memory space of the database, and the start address of the second physical memory is set to the previous physical The tail address of the memory;
  • the method further includes: determining whether the free memory of the database is less than a preset threshold, and after obtaining the first determination result, the method further includes:
  • the second physical memory of the preset expansion step size is added to the virtual memory space of the database, and the start address of the second physical memory is set.
  • the tail address of the last physical memory including:
  • the second physical memory of the preset expansion step size is added to the virtual memory space of the database, and the second The starting address of the physical memory is set to the tail address of the last physical memory.
  • the method further includes:
  • the method further includes: before the virtual memory space is allocated to the database according to a maximum value of the preset database capacity in the space for creating the database, the method further includes:
  • the size of the first physical memory is an initial value of the database capacity.
  • a memory management device for a shared memory database comprising:
  • Create a module set to: allocate a virtual memory space to the database according to a maximum value of a preset database capacity in a space for creating a database;
  • a first allocation module configured to: allocate a first physical memory to the database, set a start address of the first physical memory to a start address of the virtual memory space allocated by the creating module to the database, and Inserting data or modifying data in the first physical memory;
  • the first determining module is configured to: determine whether the free memory of the database is less than a preset threshold, and obtain a first determination result;
  • the second allocation module is configured to: when the first determination result obtained by the first determining module is YES, add a second physical memory of a preset expansion step size to the virtual memory space of the database, And setting a start address of the second physical memory as a tail address of the last physical memory;
  • the expansion module is configured to: expand the available memory space of the database, and trigger the first determining module to determine whether the free memory of the database is less than the preset threshold.
  • the device further includes:
  • the second judging module is configured to: determine whether a sum of a current physical memory space of the database and a size of the preset expansion step is smaller than a size of the virtual memory space, and obtain a second judgment fruit;
  • the second allocation module is further configured to: when the first determination result obtained by the first determining module and the second determination result obtained by the second determining module are both yes, the pre- The second physical memory of the expansion step size is added to the virtual memory space of the database, and the start address of the second physical memory is set as the tail address of the previous physical memory.
  • the device further includes:
  • the write data module is configured to insert data or modify data in the second physical memory.
  • the device further includes:
  • the setting module is configured to: set a maximum value of the database capacity, an initial value of the database capacity, and a size expansion step size of the database.
  • the size of the first physical memory is an initial value of the database capacity.
  • the memory management method and device for the shared memory database provided by the embodiment of the present invention are managed by using a shared memory mode and using virtual memory space and physical memory respectively, and each process starts to map the entire virtual memory space, thereby
  • the memory is expanded, the applied multiple pieces of physical memory are added to the virtual memory space, and the plurality of physical memory are connected into one continuous physical memory, and the database memory capacity is increased, and the database memory is a continuous whole.
  • the database accesses the data, it does not need to search across the segments. Before and after the expansion, the performance will not be reduced.
  • the shared shared memory space is the entire virtual memory space. After the database memory is expanded, no notification is required.
  • Each process remaps shared memory, improves database access efficiency during multi-process access during database expansion, and reduces the complexity of capacity expansion management. Compared with segmented shared memory management, performance can reach 20-40%. improve.
  • FIG. 1 is a schematic diagram of establishing a database by using a shared memory manner in the related art
  • FIG. 2 is a schematic diagram of a shared memory in a multi-process access database in the related art
  • FIG. 3 is a schematic diagram of a memory used in a segmented management database in the related art
  • FIG. 4 is a flowchart of a memory management method for a shared memory database according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another memory management method for a shared memory database according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a memory management apparatus for a shared memory database according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another memory management apparatus for sharing a memory database according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of creating a shared memory when a database is started in a memory management method of a shared memory database according to an embodiment of the present disclosure
  • FIG. 9 is a flowchart of a method for expanding a shared memory database in a memory management method for a shared memory database according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a correspondence between a virtual memory space and a physical memory in a memory management method for a shared memory database according to an embodiment of the present invention
  • FIG. 11 is a schematic diagram of another virtual memory space and physical memory correspondence in a memory management method for a shared memory database according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another correspondence between a virtual memory space and a physical memory in a memory management method for a shared memory database according to an embodiment of the present disclosure
  • FIG. 13 is a schematic diagram of a correspondence between a virtual memory space and a physical memory in a memory management method of a shared memory database according to an embodiment of the present disclosure
  • FIG. 14 is a schematic diagram of a correspondence between a virtual memory space and a physical memory in a memory management method of a shared memory database according to an embodiment of the present invention.
  • the embodiment of the invention provides a memory management method and device for a shared memory database, which can solve the problem that the memory database access performance is degraded due to the discontinuous multi-segment shared memory database address and the need to access data across the segment in the related art;
  • the management complexity of the shared memory is required to be re-mapped, and the program stability and access efficiency are improved accordingly.
  • the memory management method of the shared memory database may include the following steps, that is, steps 110 to 150:
  • Step 110 Allocating a virtual memory space to the database according to a maximum value of a preset database capacity in a space for creating a database;
  • Step 120 Allocating a first physical memory to the database, setting a start address of the first physical memory as a start address of the virtual memory space, and inserting data or modifying data in the first physical memory;
  • Step 130 Determine whether the free memory of the database is less than a preset threshold, and obtain a first determination result
  • Step 140 When the first determination result is yes, add the second physical memory of the preset expansion step size to the virtual memory space of the database, and set the start address of the second physical memory to the previous physical The tail address of the memory;
  • Step 150 Expand the available memory space of the database; and determine again whether the free memory of the database is less than a preset threshold, that is, after performing step 150, the process proceeds to step 130.
  • the memory management method of the shared memory database is managed by using a shared memory mode and using virtual memory space and physical memory respectively, and each process starts to map the entire virtual memory space, so that in subsequent memory expansion.
  • the shared shared memory space is the entire virtual memory space. After the database memory is expanded, It is not necessary to notify each process to remap shared memory, which improves the efficiency of multi-process access database access during database expansion and reduces the complexity of capacity expansion management. Compared with segmented shared memory management, performance can reach 20-40%. The improvement of the left and right.
  • FIG. 5 is a flowchart of another memory management method for a shared memory database according to an embodiment of the present invention.
  • the method provided in this embodiment may further include:
  • Step 131 Determine whether the sum of the current physical memory space of the database and the size of the preset expansion step is smaller than the size of the virtual memory space, and obtain a second determination result;
  • the second physical memory of the preset expansion step size is added to the virtual memory space of the database, and the start address of the second physical memory is set to The tail address of a physical memory, that is, the implementation of the step 140 may be: when the first determination result and the second determination result are both, the second physical memory of the preset expansion step size is added to the virtual of the database. In the memory space, set the start address of the second physical memory to the tail address of the previous physical memory.
  • the method provided in this embodiment may further include:
  • step 160 data is inserted or modified in the second physical memory.
  • the method may further include:
  • step 100 the maximum value of the database capacity, the initial value of the database capacity, and the expansion step size of the database are set.
  • the size of the first physical memory is an initial value of the database capacity.
  • FIG. 6 is a schematic structural diagram of a memory management apparatus for a shared memory database according to an embodiment of the present invention.
  • the memory management apparatus of the shared memory database provided in this embodiment may include: Block 11, first distribution module 12, first determination module 13, second distribution module 14, and expansion module 15.
  • the module 11 is configured to: allocate a virtual memory space to the database according to a maximum value of a preset database capacity in a space for creating a database;
  • the first allocation module 12 is configured to: allocate a first physical memory to the database, set a start address of the first physical memory to a start address of a virtual memory space allocated by the creating module 11 for the database, and in the first physical memory Insert data or modify data;
  • the first determining module 13 is configured to: determine whether the free memory of the database is less than a preset threshold, and obtain a first determination result;
  • the second allocation module 14 is configured to: when the first determination result obtained by the first determining module 13 is YES, add the second physical memory of the preset expansion step size to the virtual memory space of the database, and The start address of the second physical memory is set to the tail address of the previous physical memory;
  • the expansion module 15 is configured to: expand the available memory space of the database, and trigger the first determining module 13 to determine again whether the free memory of the database is less than a preset threshold.
  • the expansion module 15 in the embodiment of the present invention may further trigger the first determining module 13 to determine whether the free memory of the database is less than a preset threshold after performing the expansion of the available memory space of the database.
  • the memory management device of the shared memory database uses a shared memory mode and is managed by using a virtual memory space and a physical memory respectively.
  • the entire virtual memory space is mapped, so that during subsequent memory expansion.
  • the shared shared memory space is the entire virtual memory space. After the database memory is expanded, the processes are not notified. Mapping shared memory improves the efficiency of multi-process access database access during database expansion and reduces the complexity of capacity expansion management. Compared with segmented shared memory management, performance can be improved by 20-40%.
  • FIG. 7 is a schematic structural diagram of another memory management apparatus for sharing an in-memory database according to an embodiment of the present invention.
  • the apparatus provided in this embodiment may further include:
  • the second determining module 16 is configured to: determine whether the sum of the current physical memory space of the database and the size of the preset expansion step is smaller than the size of the virtual memory space, and obtain a second determination result;
  • the second allocation module 14 is further configured to: when the first determination result obtained by the first determining module 13 and the second determination result obtained by the second determining module 16 are both yes, the second physics of the preset expansion step size is The memory is added to the virtual memory space of the database, and the start address of the second physical memory is set to the tail address of the previous physical memory.
  • the apparatus provided by the embodiment of the present invention may further include:
  • the write data module 17 is arranged to insert data or modify data in the second physical memory.
  • the apparatus provided by the embodiment of the present invention may further include:
  • the setting module 18 is configured to: set a maximum value of the database capacity, an initial value of the database capacity, and a size expansion step size of the database.
  • the size of the first physical memory is an initial value of the database capacity.
  • the embodiment of the present invention further provides a memory management method for a shared memory database, including the following steps, that is, steps A to H:
  • Step A set the initial value of the database capacity on the startup database node as needed, and the unit is M;
  • Step B set the maximum value of the database capacity on the startup database node as needed, and the unit is M;
  • Step C set the size of each expansion step of the database on the startup database node as needed, and the unit is M;
  • step D the shared memory database is started.
  • the virtual memory space is allocated to the database according to the maximum database capacity in the space for creating the database; in actual application, the physical memory of the maximum capacity of the database is not occupied at this time, but only in the process. Space occupies so much virtual memory space, excess physical memory can be used by other processes;
  • Step E allocate the physical memory of the initial value of the database capacity to the database, and at the same time The physical memory is aligned to the start address of the virtual memory space, that is, the start address of the physical memory is set as the start address of the virtual memory space;
  • Step F When other application processes connect to the database, the shared memory needs to be opened, and the shared memory is mapped to the entire virtual memory space, that is, the entire virtual memory space applied in step D;
  • Step G at this time, the shared memory database stores the business data according to the allocated physical memory size, that is, the database inserts the record (that is, the data) into the physical memory;
  • Step H as the record is continuously inserted, the originally allocated physical memory is not enough. At this time, the database expansion mechanism is enabled.
  • Database expansion includes the following steps, step I to step L:
  • Step I when inserting or modifying the record or periodically viewing the free space of the database, it is found that the free memory has no free space or the free space is less than the preset threshold;
  • step J the physical memory of the expansion step size of the database configured in step C is added to the virtual memory space.
  • the start address of the physical memory is the tail address of the virtual memory space corresponding to the last physical memory, so that the physics before the expansion.
  • the memory and the expanded physical memory are connected end to end, and there is no gap in the middle to form a continuous physical memory, just like re-applying a large continuous physical memory;
  • Step K expanding the available memory space of the database, and the entire database has undergone one expansion
  • Step L if there is a record insertion or modification at this time, insert the record into the physical memory of the new application.
  • the memory management of the database in the embodiment is managed by using a shared memory mode, and the virtual memory space and the physical memory are respectively managed, and each process starts to map the entire virtual memory space, thereby being in the subsequent memory.
  • the application of multiple pieces of physical memory is added to the virtual memory space, and the multiple physical memory is connected into a continuous physical memory, and the database memory capacity is increased, so the memory of the database is always a continuous whole.
  • the database accesses the data, it does not need to search across the segments. Before and after the expansion, the performance will not be reduced.
  • the shared shared memory space is the entire virtual memory space. After the memory expansion, the memory is not used.
  • FIG. 8 a flowchart of a shared memory creation during database startup in a memory management method for a shared memory database according to an embodiment of the present invention, where the shared memory database is started when the shared memory database is started.
  • the shared memory mapping method which may include the following steps, that is, steps 101 to 203:
  • Step 101 According to the service requirement, the database service process 100 sets an initial value of the database capacity, for example, 200 megabytes (M), and puts the value into the dbspace management area of the shared memory;
  • M the initial value of the database capacity
  • the functions of this embodiment are implemented by the database service process 100 and the application process 200 in cooperation.
  • the following capacity size is just an example, and other values can be used.
  • This embodiment uses the following set of values to describe, that is, the initial value of the database capacity is 200M, the maximum database capacity is 1000M, and the data capacity expansion step is 10M.
  • the embodiment supports a plurality of operating systems including a Linux (operating system) system, and the expansion step of the database is variable, for example, it can be set to 1M, 2M, or 3M, and the maximum capacity of the database can be set according to actual needs, for example, It depends on the maximum memory capacity of the board as needed.
  • Step 102 the database service process 100 sets a maximum database capacity, for example, 1000M, and puts the value into a dbspace management area of the shared memory;
  • Step 103 the database service process 100 sets the database capacity expansion step size, for example, each time the capacity is expanded to 10M, and the value is put into the dbspace management area of the shared memory;
  • Step 104 the database service process 100 starts the database, and requests the virtual memory space, the size is the maximum database capacity set in step 102, for example, the application virtual memory space is 1000M, and if the virtual memory space start address is ADDR1, the terminal is terminated. The address is ADDR1+1000M.
  • FIG. 10 it is a schematic diagram of a virtual memory space and physical memory correspondence in the memory management method of the shared memory database provided by the embodiment of the present invention. At this point, the database can not provide external services, because at this time has not applied for physical memory, just applied for virtual memory space.
  • Step 105 allocating physical memory, the size is the initial value of the database capacity, and is aligned into the virtual
  • the storage space start address that is, the physical memory of the initial value of the database capacity is requested by using ADDR1 as the start address in step 104.
  • the physical memory is mapped to the virtual memory start address.
  • FIG. 11 is another memory management method of the shared memory database provided by the embodiment of the present invention. Schematic diagram of the correspondence between virtual memory space and physical memory.
  • the [ADDR1, ADDR1+200M] virtual memory space can be used for business storage data, and the actual available database capacity is 200M.
  • the shared space database space management area the current database free space will be modified.
  • the size is 200M.
  • Step 106 the database startup is completed
  • Step 201 the application process 200 is initialized
  • Step 202 the application process 200 connects to the shared memory database, that is, opens the shared memory.
  • Step 203 When the shared memory is mapped, the application process 200 maps the entire virtual memory space to the application process. At this time, the application process 200 can access the database, and the record can be added, deleted, changed, and checked in the database. Of course, only the address to which the physical memory is allocated can be used at this time, in this embodiment, [ADDR1, ADDR1+200M] This 200M space.
  • FIG. 9 is a flowchart of a method for expanding a shared memory database in a memory management method of a shared memory database according to an embodiment of the present invention
  • the method provided in this embodiment may include the following steps, that is, step 301 ⁇ Step 306.
  • the capacity expansion function of the embodiment is performed by the database application process 300, for example, the database service process 100 in FIG. 8, or may be the application process 200 in FIG. In practical applications, the following numerical values are merely examples and may be other values.
  • Step 301 When the service inserts data, apply for memory from the free memory of the database.
  • the available memory address space is the upper part shown in Figure 11, that is, the address is applied from the range of [ADDR1, ADDR1+200M];
  • Step 302 Determine whether the free memory is insufficient, and whether the available free memory is less than a preset preset; that is, whether there is available memory in the memory of [ADDR1, ADDR1+200M], and the criterion is whether the remaining memory can accommodate the record. Or the remaining memory is less than a certain threshold; if it is determined that the free memory is insufficient, step 303 is performed; otherwise, step 306 is performed;
  • Step 303 starting database capacity expansion
  • Step 304 Apply ADDR1+200M as the starting address, apply for the physical capacity of the database capacity expansion step size, and align to the tail address of the previous physical memory, for example, the expansion step size is 10M; at this time, the virtual memory space corresponds to the physical memory.
  • FIG. 12 is a schematic diagram showing another correspondence between a virtual memory space and a physical memory in a memory management method for a shared memory database according to an embodiment of the present invention.
  • Step 305 Manage the capacity information of the database, and the capacity information is also stored in the shared memory.
  • the space of the database becomes [ADDR1, ADDR1+210M]
  • the free memory becomes [ADDR1+200M, ADDR1+210M], as shown in the figure. 12; because the database capacity information is also in the shared memory, after the expansion, each process can see the capacity change;
  • Step 306 After the application for the memory is completed, insert data or modify the data in the expanded physical memory.
  • the memory When the capacity is expanded, the memory is continuously applied to the virtual memory space, for example, the virtual memory space and the physical memory after the second expansion is completed.
  • FIG. 13 is a schematic diagram showing a correspondence between a virtual memory space and a physical memory in a memory management method for a shared memory database according to an embodiment of the present invention.
  • FIG. 14 is a shared memory database according to an embodiment of the present invention.
  • the memory management method also has a schematic diagram of the correspondence between the virtual memory space and the physical memory
  • FIG. 14 is a schematic diagram when the virtual memory space is completely used up, and the expansion is cut off at this time.
  • the shared memory mode is adopted, and the virtual memory space and the physical memory are separately managed, and each process starts to map the entire virtual memory space, so that when the subsequent memory expansion is performed, the application will be applied.
  • the multiple pieces of physical memory are added to the virtual memory space, and the multiple pieces of physical memory are connected into one continuous physical memory, and the database memory capacity is increased.
  • the memory of the database is a continuous whole, and the database is accessing the data at this time. When you do not use cross-segment search, performance will not be reduced before and after expansion.
  • the shared shared memory space is the entire virtual memory space.
  • the modules may be implemented in software for execution by various types of processors.
  • an identified executable code module can comprise one or more physical or logical blocks of computer instructions, which can be constructed, for example, as an object, procedure, or function. Nevertheless, the executable code of the identified modules need not be physically located together, but may include different instructions stored in different physicalities. When these instructions are logically combined, they constitute a module and achieve the specified purpose of the module. .
  • the executable code module can be a single instruction or a plurality of instructions, and can even be distributed across multiple different code segments, distributed among different programs, and distributed across multiple memory devices.
  • operational data may be identified within the modules and may be implemented in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed at different locations (including on different storage devices), and may at least partially exist as an electronic signal on a system or network.
  • the module can be implemented by software, considering the level of the hardware process in the related art, the module can be implemented in software, and the technician can construct the corresponding hardware circuit to realize the corresponding function without considering the cost.
  • the hardware circuit includes a conventional Very Large Scale Integration (VLSI) circuit or gate array and a related art such as a logic chip, a transistor, or other discrete components.
  • VLSI Very Large Scale Integration
  • the modules can also be implemented with programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices, and the like.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the device/function module/functional unit in the above embodiment can be implemented by using a general-purpose computing device. Now, they can be concentrated on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the shared memory mode is adopted, and the virtual memory space and the physical memory are separately managed, and each process starts to map the entire virtual memory space, so that when the subsequent memory is expanded, the applied multiple physical memory is supplemented.
  • the database memory is a continuous whole, when the database access data, do not cross-segment search Before and after the expansion, the performance will not be reduced.
  • the shared shared memory space is the entire virtual memory space. After the database memory is expanded, the shared memory is not notified by each process, and the database is expanded.
  • the performance can be improved by 20 to 40%.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

L'invention concerne un procédé et un dispositif de gestion de mémoire pour une base de données de mémoire partagée. Le procédé consiste : à attribuer un espace de mémoire virtuelle à une base de données, conformément à une valeur maximale prédéfinie d'un volume de base de données et dans un espace pour l'établissement d'une base de données ; à attribuer une première mémoire physique à la base de données, à définir l'adresse de début de la première mémoire physique comme adresse de début de l'espace de mémoire virtuelle, et à effectuer une insertion ou une modification de données dans la première mémoire physique ; à déterminer si une mémoire au repos de la base de données est plus petite qu'un seuil prédéfini afin d'obtenir un premier résultat de détermination ; si le premier résultat de détermination est oui, à ajouter une seconde mémoire physique ayant une taille d'échelon d'extension prédéfinie à l'espace de mémoire virtuelle de la base de données, et à définir l'adresse de début de la seconde mémoire physique comme adresse de fin de la mémoire physique précédente ; et à étendre un espace de mémoire disponible de la base de données.
PCT/CN2016/095355 2015-09-25 2016-08-15 Procédé et dispositif de gestion de mémoire pour une base de données de mémoire partagée WO2017050064A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510622060.1 2015-09-25
CN201510622060.1A CN106557427B (zh) 2015-09-25 2015-09-25 共享内存数据库的内存管理方法及装置

Publications (1)

Publication Number Publication Date
WO2017050064A1 true WO2017050064A1 (fr) 2017-03-30

Family

ID=58385844

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095355 WO2017050064A1 (fr) 2015-09-25 2016-08-15 Procédé et dispositif de gestion de mémoire pour une base de données de mémoire partagée

Country Status (2)

Country Link
CN (1) CN106557427B (fr)
WO (1) WO2017050064A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032162A (zh) * 2021-03-23 2021-06-25 重庆智行者信息科技有限公司 一种基于共享内存备份机制的多进程通讯方法

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608796B (zh) * 2017-09-29 2020-08-04 武汉斗鱼网络科技有限公司 存储资源管控方法、存储资源管控装置及处理器
CN110019125B (zh) * 2017-11-27 2021-12-14 北京京东尚科信息技术有限公司 数据库管理的方法和装置
CN108255624A (zh) * 2018-02-02 2018-07-06 中国银行股份有限公司 一种数据的处理方法及处理装置
CN109032817B (zh) * 2018-07-25 2022-03-18 天津凯发电气股份有限公司 一种电能质量管理系统共享内存实现方法
CN109062693A (zh) * 2018-07-26 2018-12-21 郑州云海信息技术有限公司 一种内存管理方法及相关设备
CN109522113B (zh) * 2018-09-28 2020-12-18 迈普通信技术股份有限公司 一种内存管理方法及装置
CN116708579B (zh) * 2023-08-04 2024-01-12 浪潮电子信息产业股份有限公司 数据访问方法、装置、电子设备及计算机可读存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581108A (zh) * 2003-07-31 2005-02-16 深圳市中兴通讯股份有限公司南京分公司 一种具有内存保护功能的内存管理方法
US20100005222A1 (en) * 2008-07-01 2010-01-07 International Business Machines Corporation Optimizing virtual memory allocation in a virtual machine based upon a previous usage of the virtual memory blocks

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7206890B2 (en) * 2004-05-19 2007-04-17 Sun Microsystems, Inc. System and method for reducing accounting overhead during memory allocation
CN100527098C (zh) * 2007-11-27 2009-08-12 北京大学 一种虚拟机管理器的动态内存映射方法
US8271989B2 (en) * 2008-02-07 2012-09-18 International Business Machines Corporation Method and apparatus for virtual processor dispatching to a partition based on shared memory pages
US8627036B2 (en) * 2011-09-12 2014-01-07 Microsoft Corporation Memory management techniques
CN103077120B (zh) * 2012-12-31 2016-01-27 东软集团股份有限公司 程序共享内存的地址转换方法和装置
CN104123233A (zh) * 2013-04-26 2014-10-29 华茂云天科技(北京)有限公司 一种虚拟机大容量内存共享方法
CN104090804B (zh) * 2014-07-15 2018-02-16 四川航天系统工程研究所 一种实时dsp嵌入式系统虚拟内存扩容方法
CN104199740B (zh) * 2014-08-28 2019-03-01 浪潮(北京)电子信息产业有限公司 共享系统地址空间的非紧耦合多节点多处理器系统和方法
CN104881330B (zh) * 2015-05-22 2018-08-21 大唐移动通信设备有限公司 一种多进程共享数据的方法和装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581108A (zh) * 2003-07-31 2005-02-16 深圳市中兴通讯股份有限公司南京分公司 一种具有内存保护功能的内存管理方法
US20100005222A1 (en) * 2008-07-01 2010-01-07 International Business Machines Corporation Optimizing virtual memory allocation in a virtual machine based upon a previous usage of the virtual memory blocks

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032162A (zh) * 2021-03-23 2021-06-25 重庆智行者信息科技有限公司 一种基于共享内存备份机制的多进程通讯方法
CN113032162B (zh) * 2021-03-23 2023-10-24 重庆兰德适普信息科技有限公司 一种基于共享内存备份机制的多进程通讯方法

Also Published As

Publication number Publication date
CN106557427B (zh) 2021-11-12
CN106557427A (zh) 2017-04-05

Similar Documents

Publication Publication Date Title
WO2017050064A1 (fr) Procédé et dispositif de gestion de mémoire pour une base de données de mémoire partagée
US20060047926A1 (en) Managing multiple snapshot copies of data
CN110413685B (zh) 数据库服务切换方法、装置、可读存储介质和计算机设备
CN110018878B (zh) 一种分布式系统数据加载方法以及装置
CN103995855A (zh) 存储数据的方法和装置
CN115599747B (zh) 一种分布式存储系统的元数据同步方法、系统及设备
US20240061712A1 (en) Method, apparatus, and system for creating training task on ai training platform, and medium
CN110806911A (zh) 一种云桌面管控方法、装置及系统
US10642817B2 (en) Index table update method, and device
CN113434470B (zh) 数据分布方法、装置及电子设备
CN110888769B (zh) 数据处理方法及计算机设备
CN110806942A (zh) 数据处理的方法和装置
CN110162395B (zh) 一种内存分配的方法及装置
CN112711564B (zh) 合并处理方法以及相关设备
CN114443598A (zh) 写数据方法、装置、计算机设备及存储介质
CN117215485A (zh) Zns ssd管理方法及数据写入方法、存储装置、控制器
CN113127430A (zh) 镜像信息处理方法、装置、计算机可读介质及电子设备
CN115934999A (zh) 一种基于块文件的视频流数据存储方法、装置及介质
CN111708489B (zh) 一种提高硬盘服务质量的方法和设备
CN113391757B (zh) 一种节点扩展方法、装置及迁入节点
CN113986846A (zh) 数据处理方法、系统、设备及存储介质
CN115827745A (zh) 内存数据库集群的实现方法、装置及内存数据库集群
CN111399753B (zh) 写入图片的方法和装置
CN112000289B (zh) 全闪存储服务器系统数据管理方法及相关组件
CN107102898B (zh) 一种基于numa架构的内存管理、构建数据结构的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16847946

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16847946

Country of ref document: EP

Kind code of ref document: A1