WO2020000954A1 - Address mapping method, system and device and computer readable storage medium - Google Patents

Address mapping method, system and device and computer readable storage medium Download PDF

Info

Publication number
WO2020000954A1
WO2020000954A1 PCT/CN2018/123676 CN2018123676W WO2020000954A1 WO 2020000954 A1 WO2020000954 A1 WO 2020000954A1 CN 2018123676 W CN2018123676 W CN 2018123676W WO 2020000954 A1 WO2020000954 A1 WO 2020000954A1
Authority
WO
WIPO (PCT)
Prior art keywords
physical memory
target
location information
status register
memory location
Prior art date
Application number
PCT/CN2018/123676
Other languages
French (fr)
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 WO2020000954A1 publication Critical patent/WO2020000954A1/en

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
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/10Address translation
    • G06F12/1009Address translation using page tables, e.g. page table structures

Definitions

  • the present application relates to the field of storage technology, and more particularly, to an address mapping method, system, device, and computer-readable storage medium.
  • Server equipment is the infrastructure of network systems and computing platforms. In modern life, especially the emergence of multi-channel servers, has greatly improved the ability of numerical calculation and data processing.
  • the CPU and physical memory are the two main components.
  • the increasing demand for physical memory by server users and the increase in physical memory frequency brought by the continuous development of science and technology have led to physical memory related exposures on the customer's site.
  • An existing method for determining the status register corresponding to physical memory is: a professional staff member obtains the physical memory location, and then calculates and determines the physical memory location corresponding to the accumulated knowledge or according to existing technical documents related to physical memory Address of the status register to determine the status register corresponding to the physical memory.
  • the purpose of this application is to provide an address mapping method, which can solve the technical problem of how to improve the applicability of an existing method for determining a status register corresponding to a physical memory to a certain extent.
  • the application also provides an address mapping system, device, and computer-readable storage medium.
  • An address mapping method includes:
  • a target status register address corresponding to the physical memory location information of the target physical memory is searched.
  • the searching for a target status register address corresponding to the physical memory location information of the target physical memory in the preset correspondence between the physical memory location information and the status register address includes:
  • a target status register corresponding to the physical memory location information of the target physical memory is searched.
  • the searching a target status register corresponding to the physical memory location information of the target physical memory in the preset correspondence table between the physical memory location information and the status register address includes:
  • the method further includes:
  • obtaining the physical memory location information of the target physical memory includes:
  • the physical memory location information includes a Socket value, an iMC value, a Channel value, a Dimm value, and a Rank value;
  • the searching the target status register address corresponding to the physical memory location information of the target physical memory includes:
  • Target status register address corresponding to the physical memory location information of the target physical memory, where the target status register address includes a Bus number, a Device number, a Function number, and an Offset number.
  • the method further includes:
  • the searching for a target status register address corresponding to the physical memory location information of the target physical memory in the preset correspondence between the physical memory location information and the status register address includes:
  • a target status register address corresponding to the physical memory location information of the target physical memory is searched.
  • the method further includes:
  • An address mapping system includes:
  • the searching module is configured to find a target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence between the physical memory location information and the status register address.
  • An address mapping device includes:
  • a processor configured to implement the steps of the address mapping method according to any one of the foregoing when executing the computer program.
  • a computer-readable storage medium stores a computer program in the computer-readable storage medium.
  • the steps of the address mapping method as described above are implemented.
  • An address mapping method provided in the present application is to obtain the physical memory location information of the target physical memory; and to find the target corresponding to the physical memory location information of the target physical memory in the correspondence between the preset physical memory location information and the status register address.
  • Status register address That is, after obtaining the physical memory location information of the target physical memory, the target status register address corresponding to the physical memory location information of the target physical memory can be directly found.
  • no professional staff is required to accumulate the Knowledge or according to the existing technical documents related to physical memory, calculate and determine the status register address corresponding to the physical memory location, to a certain extent, get rid of the limitations of the knowledge or technical documents accumulated by the professional staff on the calculation of the status register address, Improved applicability.
  • An address mapping system, device, and computer-readable storage medium provided by the present application also solve the corresponding technical problems.
  • FIG. 1 is a first flowchart of an address mapping method according to an embodiment of the present application
  • FIG. 2 is a second flowchart of an address mapping method according to an embodiment of the present application.
  • FIG. 3 is a third flowchart of an address mapping method according to an embodiment of the present application.
  • Figure 4 shows the input and output values of the status register address of the physical memory in the HSX and IVB processors with the help of an Excel table
  • FIG. 5 is a fourth flowchart of an address mapping method according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an address mapping system according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an address mapping device according to an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of an address mapping device according to an embodiment of the present application.
  • An existing method for determining the status register corresponding to physical memory is: a professional staff member obtains the physical memory location, and then calculates and determines the physical memory location corresponding to the accumulated knowledge or according to existing technical documents related to physical memory Address of the status register to determine the status register corresponding to the physical memory.
  • a professional staff member obtains the physical memory location, and then calculates and determines the physical memory location corresponding to the accumulated knowledge or according to existing technical documents related to physical memory Address of the status register to determine the status register corresponding to the physical memory.
  • only professional staff can determine the status register corresponding to physical memory, and the knowledge accumulated by the professional staff themselves is insufficient to determine the corresponding physical memory.
  • the existing method for determining the status register corresponding to the physical memory has low adaptability. The applicability of the address mapping method provided in this application is better.
  • FIG. 1 is a first flowchart of an address mapping method according to an embodiment of the present application.
  • Step S101 Acquire physical memory location information of a target physical memory.
  • the physical memory location information of the target physical memory can be obtained through the transmission port. Specifically, the outside world inputs the physical memory location information of the target physical memory through the transmission port.
  • a human-computer interaction interface can also be set up, and the user can interact through the human-computer The interface enters the physical memory location information of the target physical memory.
  • physical memory location information can include socket (processor) values, iMC (integrated memory controller) values, Channel (channel) values, and Dimm (Dual-Inline-Memory-Modules) Specific storage module) value, Rank (memory chip) value, the specific content of the physical memory location information can be determined based on the actual physical memory information of the target.
  • Step S102 In the correspondence between the preset physical memory location information and the status register address, find the target status register address corresponding to the physical memory location information of the target physical memory.
  • the correspondence between physical memory location information and status register addresses can directly include: various physical memory location information and their corresponding status register addresses; in specific application scenarios, in order to improve the search efficiency of the target status register address ,
  • the identification information of the physical memory the physical memory location information of different types of physical memory and their corresponding status registers are stored separately. For example, if there are two types of physical memory, only the first type of physical memory is saved in a correspondence relationship. The corresponding relationship between the physical memory location information and the corresponding status register address, and the other correspondence relationship only stores the physical memory location information of the second type of physical memory and the corresponding relationship between the corresponding status registers.
  • step S102 It may be specifically: finding a target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence between the physical memory location information and the status register address corresponding to the identification information of the target physical memory.
  • the target status register address described in this application may include a Bus (bus) number, a Device number, a Function number, and an Offset number.
  • the target status register address can also be sent to the user client.
  • An address mapping method provided in the present application is to obtain the physical memory location information of the target physical memory; and to find the target corresponding to the physical memory location information of the target physical memory in the correspondence between the preset physical memory location information and the status register address.
  • Status register address That is, after obtaining the physical memory location information of the target physical memory, the target status register address corresponding to the physical memory location information of the target physical memory can be directly found.
  • no professional staff is required to accumulate the Knowledge or according to the existing technical documents related to physical memory, calculate and determine the status register address corresponding to the physical memory location, to a certain extent, get rid of the limitations of the knowledge or technical documents accumulated by the professional staff on the calculation of the status register address, Improved applicability.
  • FIG. 2 is a second flowchart of an address mapping method according to an embodiment of the present application.
  • an address mapping method provided in this embodiment of the present application may include the following steps:
  • Step S201 Acquire physical memory location information of the target physical memory.
  • Step S202 In the correspondence table between the preset physical memory location information and the status register address, find the target status register corresponding to the physical memory location information of the target physical memory.
  • the correspondence between the physical memory location information and the status register address can be saved with the help of a table, which can conveniently modify the correspondence between the physical memory location information and the status register address.
  • FIG. 3 is a third flowchart of an address mapping method according to an embodiment of the present application.
  • an address mapping method provided in this embodiment of the present application may include :
  • Step S301 Acquire physical memory location information of the target physical memory.
  • Step S302 Enter the physical memory location information of the target physical memory into an Excel table.
  • the Excel table stores the correspondence between the preset physical memory location information and the status register address.
  • Step S303 Obtain the target status register address found in the corresponding relationship after calling the LOOKUP function and the IF function of the Excel table.
  • an Excel table can be used to query the target status register address.
  • the Excel table LOOKUP function and IF function to find the target status register address.
  • physical memory location information including Socket value, iMC value, Channel value, Dimm value, Rank value
  • status register address includes Bus number, Device number, Function number, Offset number as examples
  • Excel table uses LOOKUP function, IF function to find the status register
  • the function of the address can be:
  • Bus LOOKUP (A3, ⁇ 0,1,2,3 ⁇ , ⁇ 3,7, "B", "F” ⁇ ) &"F"; where A3 refers to the value of the socket;
  • FIG. 4 shows the input and output values of the status register address of the physical memory in the HSX and IVB processors by using an Excel table.
  • FIG. 5 is a fourth flowchart of an address mapping method according to an embodiment of the present application.
  • an address mapping method provided in this embodiment of the present application may include:
  • Step S501 Acquire physical memory location information of a target physical memory.
  • Step S502 In the corresponding relationship between the preset physical memory location information and the status register address, find a target status register address corresponding to the physical memory location information of the target physical memory.
  • Step S503 Determine whether a real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received, and if so, perform step S504.
  • the transmission port transmits the real-time status register address input from the outside; it can also be determined from the outside that the target status register address found does not correspond to the target physical memory.
  • the transmission port transmits the real-time status register address input from the outside; the conditions under which the transmission port transmits the real-time status register address can be flexibly determined according to actual needs.
  • Step S504 Establish and save the correspondence between the physical memory location information of the target physical memory and the real-time status register address.
  • the transmission port After the transmission port transmits the real-time status register address, the correspondence between the physical memory location information of the target physical memory and the real-time status register address can be established and saved, so that the next time you look up the status register address of the target physical memory, you can This real-time status register address is directly used as the target status register address. It should be noted that when saving the correspondence between the physical memory location information of the target physical memory and the real-time status register address, it is necessary to replace the status register address corresponding to the target physical memory in the original correspondence with the real-time status register address.
  • FIG. 5 is a schematic structural diagram of an address mapping system according to an embodiment of the present application.
  • An obtaining module 101 configured to obtain physical memory location information of a target physical memory
  • the searching module 102 is configured to search a target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence relationship between the physical memory location information and the status register address.
  • the search module may include:
  • the first searching unit is configured to search a target status register corresponding to the physical memory location information of the target physical memory in a preset correspondence table between the physical memory location information and the status register address.
  • the search module may include:
  • the first input unit is used to input the physical memory location information of the target physical memory into an Excel table, and the Excel table stores the correspondence between the preset physical memory location information and the status register address;
  • the first obtaining unit is configured to obtain an address of a target status register found in the corresponding relationship after calling the LOOKUP function and the IF function of the Excel table.
  • a judging module configured to determine whether the real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received after the search module searches the target status register address corresponding to the physical memory location information of the target physical memory; , The correspondence between the physical memory location information of the target physical memory and the real-time status register address is established and saved.
  • the obtaining module may include:
  • the second obtaining unit is configured to obtain physical memory location information of the target physical memory, and the physical memory location information includes a socket value, an iMC value, a Channel value, a Dimm value, and a Rank value;
  • the search module may include:
  • the second searching unit is configured to search a target status register address corresponding to the physical memory location information of the target physical memory, and the target status register address includes a Bus number, a Device number, a Function number, and an Offset number.
  • the identification information module is used for obtaining the identification of the target physical memory before the search module finds the target status register address corresponding to the physical memory location information of the target physical memory in the correspondence between the preset physical memory location information and the status register address. information;
  • the search module may include:
  • the third searching unit is configured to find the target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence between the physical memory location information and the status register address corresponding to the identification information of the target physical memory. .
  • the sending module is configured to send the target status register address to the user client after the search module searches the target status register address corresponding to the physical memory location information of the target physical memory.
  • the present application also provides an address mapping device and a computer-readable storage medium, both of which have the corresponding effects of an address mapping method provided by the embodiments of the present application.
  • FIG. 7 is a schematic structural diagram of an address mapping device according to an embodiment of the present application.
  • An address mapping device provided in an embodiment of the present application includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 executes the computer program stored in the memory 201, the following steps are implemented:
  • a target status register address corresponding to the physical memory location information of the target physical memory is searched.
  • An address mapping device provided in the embodiment of the present application includes a memory 201 and a processor 202.
  • the memory 201 stores a computer subprogram
  • the processor 202 specifically implements the computer subprogram stored in the memory 201: in a preset physical In the correspondence table between the memory location information and the status register address, look up the target status register corresponding to the physical memory location information of the target physical memory.
  • An address mapping device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • the memory 201 stores a computer subprogram, and the processor 202 specifically implements the computer subprogram stored in the memory 201 when the processor 202 inputs the target physical memory.
  • the physical memory location information is stored in the Excel table.
  • the Excel table stores the correspondence between the preset physical memory location information and the status register address. Get the Excel table and call the LOOKUP function and IF function to find the target state in the correspondence. Register address.
  • An address mapping device provided in the embodiment of the present application includes a memory 201 and a processor 202.
  • the memory 201 stores a computer subprogram
  • the processor 202 specifically implements the computer subprogram stored in the memory 201: search and target physical memory After determining the target status register address corresponding to the physical memory location information of the device, determine whether a real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received. If so, establish and save the physical memory location information of the target physical memory. And real-time status register addresses.
  • An address mapping device provided in an embodiment of the present application includes a memory 201 and a processor 202.
  • the memory 201 stores a computer subprogram, and the processor 202 specifically implements the computer subprogram stored in the memory 201 to obtain the target physical memory.
  • Physical memory location information includes Socket value, iMC value, Channel value, Dimm value, and Rank value. Find the target status register address corresponding to the physical memory location information of the target physical memory.
  • the target status register address includes the Bus number, Device. Number, Function number, Offset number.
  • An address mapping device provided in the embodiment of the present application includes a memory 201 and a processor 202.
  • the memory 201 stores a computer subprogram
  • the processor 202 specifically implements the computer subprogram stored in the memory 201: in a preset physical In the correspondence between the memory location information and the status register address, before the target status register address corresponding to the physical memory location information of the target physical memory is found, the identification information of the target physical memory is obtained; correspondingly, the preset physical address of the target physical memory In the correspondence between the identification information and the physical memory location information and the status register address, find the target status register address corresponding to the physical memory location information of the target physical memory.
  • An address mapping device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • the memory 201 stores a computer subprogram.
  • the processor 202 executes the computer subprogram stored in the memory 201 and specifically implements: searching for a target physical memory. After the target status register address corresponding to the physical memory location information, the target status register address is sent to the user client.
  • another address mapping device may further include: an input port 203 connected to the processor 202 for transmitting externally input commands to the processor 202;
  • the display unit 204 is configured to display the processing result of the processor 202 to the outside world;
  • the communication module 205 connected to the processor 202 is configured to implement communication between the address mapping device and the outside world.
  • the display unit 202 may be a display panel, a laser scanning display, etc .
  • the communication methods used by the communication module 205 include, but are not limited to, mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), Wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, Bluetooth low energy communication technology, communication technology based on IEEE802.11s.
  • a computer-readable storage medium provided in the embodiments of the present application.
  • the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
  • a target status register address corresponding to the physical memory location information of the target physical memory is searched.
  • a computer-readable storage medium provided in the embodiment of the present application.
  • the computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when the computer subprogram is executed by the processor: between the preset physical memory location information and the status register address In the correspondence table, find the target status register corresponding to the physical memory location information of the target physical memory.
  • a computer-readable storage medium provided in the embodiment of the present application.
  • the computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when the computer subprogram is executed by: inputting physical memory location information of a target physical memory into an Excel table,
  • the Excel table stores the correspondence between the preset physical memory location information and the status register address; it obtains the target status register address found in the correspondence after the Excel table calls its own LOOKUP function and IF function.
  • a computer-readable storage medium provided in an embodiment of the present application.
  • the computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when executed by the processor: finding a target corresponding to the physical memory location information of the target physical memory After the status register address, determine whether the real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received, and if so, establish and save the correspondence between the physical memory location information of the target physical memory and the real-time status register address relationship.
  • a computer-readable storage medium provided in the embodiments of the present application.
  • the computer-readable storage medium stores a computer subprogram, and the computer subprogram is implemented by the processor when the computer subprogram is specifically implemented: obtaining physical memory location information of the target physical memory, and physical memory location
  • the information includes Socket value, iMC value, Channel value, Dimm value, and Rank value.
  • the target status register address includes the Bus number, Device number, Function number, and Offset number.
  • a computer-readable storage medium provided in the embodiment of the present application.
  • the computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when the computer subprogram is executed by the processor: between the preset physical memory location information and the status register address In the corresponding relationship, before identifying the target state register address corresponding to the physical memory location information of the target physical memory, obtain the identification information of the target physical memory; correspondingly, the physical memory location corresponding to the preset identification information of the target physical memory In the correspondence between the information and the status register address, find the target status register address corresponding to the physical memory location information of the target physical memory.
  • a computer-readable storage medium provided in the embodiment of the present application.
  • the computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when executed by a processor: finding a target state corresponding to physical memory location information of a target physical memory. After the register address, the target status register address is sent to the user client.
  • the computer-readable storage medium described in this application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, and CD-ROM Or any other form of storage medium known in the art.
  • RAM random access memory
  • ROM read-only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disk, removable disk, and CD-ROM Or any other form of storage medium known in the art.

Landscapes

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

Abstract

Disclosed are an address mapping method, system and device and a computer readable storage medium, wherein the method comprises: obtaining physical memory location information of a target physical memory, and searching a target status register address corresponding to the physical memory location information of the target physical memory in a correspondence relationship between preset physical memory location information and a status register address. That is, after the physical memory location information of the target physical memory is obtained, a target state register address corresponding to the physical memory location information of the target physical memory can be searched directly. Compared with the prior art, the address mapping method gets rid of the limitations of professional staff's own accumulated knowledge or technical documents on calculating the status register address to a certain extent, and improves the applicability. The address mapping system and device and the computer readable storage medium further provided by the present application also solve corresponding technical problems.

Description

一种地址映射方法、系统、设备及计算机可读存储介质Address mapping method, system, device and computer-readable storage medium
本申请要求于2018年6月29日提交中国专利局、申请号为201810699011.1、发明名称为“一种地址映射方法、系统、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 29, 2018, with an application number of 201810699011.1, and the invention name is "an address mapping method, system, device, and computer-readable storage medium", all of which are The contents are incorporated herein by reference.
技术领域Technical field
本申请涉及存储技术领域,更具体地说,涉及一种地址映射方法、系统、设备及计算机可读存储介质。The present application relates to the field of storage technology, and more particularly, to an address mapping method, system, device, and computer-readable storage medium.
背景技术Background technique
服务器设备是网络系统和计算平台的基础设施,现代生活中,尤其是多路服务器的出现,大大提高了数值的计算和数据的处理能力。在服务器中,CPU和物理内存是两种主要部件,而服务器用户对物理内存数量日益增长的需求和科学技术不断的发展带来的物理内存频率的提升,导致客户现场暴露出来的物理内存相关的问题越来越多,这就需要分析物理内存出现问题的原因,在此过程中,需要根据记录物理内存运行状态的状态寄存器来分析物理内存出现问题的原因,随之而来的,便是如何确定物理内存所对应的状态寄存器。Server equipment is the infrastructure of network systems and computing platforms. In modern life, especially the emergence of multi-channel servers, has greatly improved the ability of numerical calculation and data processing. In the server, the CPU and physical memory are the two main components. The increasing demand for physical memory by server users and the increase in physical memory frequency brought by the continuous development of science and technology have led to physical memory related exposures on the customer's site. There are more and more problems, which requires analysis of the cause of the physical memory problem. In the process, you need to analyze the cause of the physical memory problem according to the status register that records the operating status of the physical memory. What follows is how Determine the status register corresponding to the physical memory.
现有的一种确定物理内存所对应的状态寄存器的方法是:专业工作人员获取物理内存位置,然后根据自身累积的知识或者根据现有的与物理内存相关的技术文档,计算确定物理内存位置对应的状态寄存器地址,进而确定物理内存对应的状态寄存器。An existing method for determining the status register corresponding to physical memory is: a professional staff member obtains the physical memory location, and then calculates and determines the physical memory location corresponding to the accumulated knowledge or according to existing technical documents related to physical memory Address of the status register to determine the status register corresponding to the physical memory.
然而,现有的一种确定物理内存所对应的状态寄存器的方法中,只能由专业工作人员来确定物理内存对应的状态寄存器,而且在专业工作人员自身累积的知识不足以确定物理内存对应的状态寄存器时,还需要查找与物理内存相关的技术文档,使得现有的一种确定物理内存所对应的状态寄存器的方法的适应性较低。However, in the existing method for determining the status register corresponding to physical memory, only professional staff can determine the status register corresponding to physical memory, and the knowledge accumulated by the professional staff themselves is insufficient to determine the corresponding physical memory. When the status register is used, it is also necessary to find technical documents related to the physical memory, so that the existing method for determining the status register corresponding to the physical memory has low adaptability.
综上所述,如何提高现有的一种确定物理内存所对应的状态寄存器的方法的适用性是目前本领域技术人员亟待解决的问题。In summary, how to improve the applicability of an existing method for determining a status register corresponding to a physical memory is a problem to be solved urgently by those skilled in the art.
发明内容Summary of the invention
本申请的目的是提供一种地址映射方法,其能在一定程度上解决如何提高现有的一种确定物理内存所对应的状态寄存器的方法的适用性的技术问题。本申请还提供了一种地址映射系统、设备及计算机可读存储介质。The purpose of this application is to provide an address mapping method, which can solve the technical problem of how to improve the applicability of an existing method for determining a status register corresponding to a physical memory to a certain extent. The application also provides an address mapping system, device, and computer-readable storage medium.
为了实现上述目的,本申请提供如下技术方案:In order to achieve the above objective, this application provides the following technical solutions:
一种地址映射方法,包括:An address mapping method includes:
获取目标物理内存的物理内存位置信息;Obtain the physical memory location information of the target physical memory;
在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址。In the correspondence between the preset physical memory location information and the status register address, a target status register address corresponding to the physical memory location information of the target physical memory is searched.
优选的,所述在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址,包括:Preferably, the searching for a target status register address corresponding to the physical memory location information of the target physical memory in the preset correspondence between the physical memory location information and the status register address includes:
在预设的物理内存位置信息与状态寄存器地址间的对应关系表中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器。In the preset correspondence table between the physical memory location information and the status register address, a target status register corresponding to the physical memory location information of the target physical memory is searched.
优选的,所述在预设的物理内存位置信息与状态寄存器地址间的对应关系表中,查找与所述目标物理内存的物理内存位置信息对应的目标状态寄存器,包括:Preferably, the searching a target status register corresponding to the physical memory location information of the target physical memory in the preset correspondence table between the physical memory location information and the status register address includes:
输入所述目标物理内存的物理内存位置信息至Excel表,所述Excel表中存储有预设的物理内存位置信息与状态寄存器地址间的对应关系;Inputting physical memory location information of the target physical memory into an Excel table, where the Excel table stores a correspondence between preset physical memory location information and a status register address;
获取所述Excel表调用自身的LOOKUP函数、IF函数后在所述对应关系中查找到的所述目标状态寄存器地址。Obtain the target state register address found in the Excel table by calling its own LOOKUP function and IF function in the corresponding relationship.
优选的,所述查找与所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,还包括:Preferably, after searching for a target status register address corresponding to the physical memory location information of the target physical memory, the method further includes:
判断是否接收到传输端口传输的所述目标物理内存的物理内存位置信息对应的实时状态寄存器地址,若是,则建立并保存所述目标物理内存的物理内存位置信息及所述实时状态寄存器地址间的对应关系。Determine whether a real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received, and if so, establish and save the physical memory location information of the target physical memory and the real-time status register address Correspondence.
优选的,获取目标物理内存的物理内存位置信息,包括:Preferably, obtaining the physical memory location information of the target physical memory includes:
获取目标物理内存的物理内存位置信息,所述物理内存位置信息包括Socket值、iMC值、Channel值、Dimm值、Rank值;Acquiring physical memory location information of a target physical memory, where the physical memory location information includes a Socket value, an iMC value, a Channel value, a Dimm value, and a Rank value;
所述查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址,包括:The searching the target status register address corresponding to the physical memory location information of the target physical memory includes:
查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址,所述目标状态寄存器地址包括Bus号、Device号、Function号、Offset号。Find a target status register address corresponding to the physical memory location information of the target physical memory, where the target status register address includes a Bus number, a Device number, a Function number, and an Offset number.
优选的,所述在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址之前,还包括:Preferably, in the preset correspondence between the physical memory location information and the status register address, before searching for the target status register address corresponding to the physical memory location information of the target physical memory, the method further includes:
获取所述目标物理内存的标识信息;Obtaining identification information of the target physical memory;
所述在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址,包括:The searching for a target status register address corresponding to the physical memory location information of the target physical memory in the preset correspondence between the physical memory location information and the status register address includes:
在预设的与所述目标物理内存的标识信息对应的,物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址。In a preset correspondence between the physical memory location information and the status register address, which corresponds to the identification information of the target physical memory, a target status register address corresponding to the physical memory location information of the target physical memory is searched.
优选的,所述查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,还包括:Preferably, after the searching the target status register address corresponding to the physical memory location information of the target physical memory, the method further includes:
发送所述目标状态寄存器地址至用户客户端。Sending the target status register address to a user client.
一种地址映射系统,包括:An address mapping system includes:
获取模块,用于获取目标物理内存的物理内存位置信息;An acquisition module for acquiring physical memory location information of a target physical memory;
查找模块,用于在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址。The searching module is configured to find a target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence between the physical memory location information and the status register address.
一种地址映射设备,包括:An address mapping device includes:
存储器,用于存储计算机程序;Memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上任一所述的地址映射方法的步骤。A processor, configured to implement the steps of the address mapping method according to any one of the foregoing when executing the computer program.
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述的地址映射方法的步骤。A computer-readable storage medium stores a computer program in the computer-readable storage medium. When the computer program is executed by a processor, the steps of the address mapping method as described above are implemented.
本申请提供的一种地址映射方法,获取目标物理内存的物理内存位置信息;在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。也即在获取目标物理内存的物理内存位置信息后,便可以直接查找到目标物理内存的物理内存位置信息对应的目标状态寄存器地址,与现有技术相比,不需要专业工作人员根据自身累积的知识或者根据现有的与物理内存相关的技术文档,计算确定物理内存位置对应的状态寄存器地址,在一定程度上摆脱了专业工作人员自身累积的知识或技术文档对计算状态寄存器地址的局限性,提高了适用性。本申请提供的一种地址映射系统、设备及计算机可读存储介质也解决了相应技术问题。An address mapping method provided in the present application is to obtain the physical memory location information of the target physical memory; and to find the target corresponding to the physical memory location information of the target physical memory in the correspondence between the preset physical memory location information and the status register address. Status register address. That is, after obtaining the physical memory location information of the target physical memory, the target status register address corresponding to the physical memory location information of the target physical memory can be directly found. Compared with the prior art, no professional staff is required to accumulate the Knowledge or according to the existing technical documents related to physical memory, calculate and determine the status register address corresponding to the physical memory location, to a certain extent, get rid of the limitations of the knowledge or technical documents accumulated by the professional staff on the calculation of the status register address, Improved applicability. An address mapping system, device, and computer-readable storage medium provided by the present application also solve the corresponding technical problems.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely It is an embodiment of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without paying creative labor.
图1为本申请实施例提供的一种地址映射方法的第一流程图;FIG. 1 is a first flowchart of an address mapping method according to an embodiment of the present application; FIG.
图2为本申请实施例提供的一种地址映射方法的第二流程图;2 is a second flowchart of an address mapping method according to an embodiment of the present application;
图3为本申请实施例提供的一种地址映射方法的第三流程图;3 is a third flowchart of an address mapping method according to an embodiment of the present application;
图4为借助Excel表查找HSX及IVB处理器中的物理内存的状态寄存器地址的输入与输出值;Figure 4 shows the input and output values of the status register address of the physical memory in the HSX and IVB processors with the help of an Excel table;
图5为本申请实施例提供的一种地址映射方法的第四流程图;5 is a fourth flowchart of an address mapping method according to an embodiment of the present application;
图6为本申请实施例提供的一种地址映射系统的结构示意图;6 is a schematic structural diagram of an address mapping system according to an embodiment of the present application;
图7为本申请实施例提供的一种地址映射设备的结构示意图;7 is a schematic structural diagram of an address mapping device according to an embodiment of the present application;
图8为本申请实施例提供的一种地址映射设备的另一结构示意图。FIG. 8 is another schematic structural diagram of an address mapping device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
现有的一种确定物理内存所对应的状态寄存器的方法是:专业工作人员获取物理内存位置,然后根据自身累积的知识或者根据现有的与物理内存相关的技术文档,计算确定物理内存位置对应的状态寄存器地址,进而确定物理内存对应的状态寄存器。然而,现有的一种确定物理内存所对应的状态寄存器的方法中,只能由专业工作人员来确定物理内存对应的状态寄存器,而且在专业工作人员自身累积的知识不足以确定物理内存对应的状态寄存器时,还需要查找与物理内存相关的技术文档,使得现有的一种确定物理内存所对应的状态寄存器的方法的适应性较低。而本申请提供的一种地址映射方法的适用性较好。An existing method for determining the status register corresponding to physical memory is: a professional staff member obtains the physical memory location, and then calculates and determines the physical memory location corresponding to the accumulated knowledge or according to existing technical documents related to physical memory Address of the status register to determine the status register corresponding to the physical memory. However, in the existing method for determining the status register corresponding to physical memory, only professional staff can determine the status register corresponding to physical memory, and the knowledge accumulated by the professional staff themselves is insufficient to determine the corresponding physical memory. When the status register is used, it is also necessary to find technical documents related to the physical memory, so that the existing method for determining the status register corresponding to the physical memory has low adaptability. The applicability of the address mapping method provided in this application is better.
请参阅图1,图1为本申请实施例提供的一种地址映射方法的第一流程图。Please refer to FIG. 1, which is a first flowchart of an address mapping method according to an embodiment of the present application.
本申请实施例提供的一种地址映射方法,可以包括以下步骤:An address mapping method provided by an embodiment of the present application may include the following steps:
步骤S101:获取目标物理内存的物理内存位置信息。Step S101: Acquire physical memory location information of a target physical memory.
实际应用中,可以借助传输端口获取目标物理内存的物理内存位置信息,具体的,外界通过传输端口输入目标物理内存的物理内存位置信息,当然,还可以设置人机交互界面,用户通过人机交互界面输入目标物理内存的物理内存位置信息。具体应用场景中,物理内存位置信息可以包括Socket(处理器)值、iMC(integrated memory controller,内存控制器)值、Channel(通道)值、Dimm(Dual-Inline-Memory-Modules,双列直插式存储模块)值、Rank(内存芯片)值,物理内存位置信息的具体内容可以根据实际情况中目标物理内存的信息来确定。In actual applications, the physical memory location information of the target physical memory can be obtained through the transmission port. Specifically, the outside world inputs the physical memory location information of the target physical memory through the transmission port. Of course, a human-computer interaction interface can also be set up, and the user can interact through the human-computer The interface enters the physical memory location information of the target physical memory. In specific application scenarios, physical memory location information can include socket (processor) values, iMC (integrated memory controller) values, Channel (channel) values, and Dimm (Dual-Inline-Memory-Modules) Specific storage module) value, Rank (memory chip) value, the specific content of the physical memory location information can be determined based on the actual physical memory information of the target.
步骤S102:在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。Step S102: In the correspondence between the preset physical memory location information and the status register address, find the target status register address corresponding to the physical memory location information of the target physical memory.
实际应用中,物理内存位置信息与状态寄存器地址间的对应关系可以直接包括:各种物理内存位置信息及其相对应的状态寄存器地址;具体应用场景中,为了提高查找目标状态寄存器地址的查找效率,可以按照物理内存的标识信息,将不同类物理内存的物理内存位置信息与其相应的状态寄存器间的对应关系分开保存,比如有两类物理内存,则一个对应关系中只保存第一类物理内存的物理内存位置信息与其对应的状态寄存器地址间的对应关系,而另一个对应关系中只保存第二类物理内存的物理内存位置信息及其对应的状态寄存器间的对应关系,此时,步骤S102可以具体为:在预设的与目标物理内存的标识信息对应的,物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。本申请所描述的目标状态寄存器地址可以包括Bus(总线)号、Device号、Function号、Offset号。此外,在查找到目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,还可以发送目标状态寄存器地址至用户客户端。In actual applications, the correspondence between physical memory location information and status register addresses can directly include: various physical memory location information and their corresponding status register addresses; in specific application scenarios, in order to improve the search efficiency of the target status register address , According to the identification information of the physical memory, the physical memory location information of different types of physical memory and their corresponding status registers are stored separately. For example, if there are two types of physical memory, only the first type of physical memory is saved in a correspondence relationship. The corresponding relationship between the physical memory location information and the corresponding status register address, and the other correspondence relationship only stores the physical memory location information of the second type of physical memory and the corresponding relationship between the corresponding status registers. At this time, step S102 It may be specifically: finding a target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence between the physical memory location information and the status register address corresponding to the identification information of the target physical memory. The target status register address described in this application may include a Bus (bus) number, a Device number, a Function number, and an Offset number. In addition, after finding the target status register address corresponding to the physical memory location information of the target physical memory, the target status register address can also be sent to the user client.
本申请提供的一种地址映射方法,获取目标物理内存的物理内存位置信息;在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。也即在获取目标物理内存的物理内存位置信息后,便可以直接查找到目标物理内存的物理内存位置信息对应的目标状态寄存器地址,与现有技术相比,不需要专业工作人员根据自身累积的知识或者根据现有的与物理内存相关的技术文档,计算确定物理内存位置对应的状态寄存器地址,在一定程度上摆脱了专业工作人员自身累积的知识或技术文档对计算状态寄存器地址的局限性,提高了适用性。An address mapping method provided in the present application is to obtain the physical memory location information of the target physical memory; and to find the target corresponding to the physical memory location information of the target physical memory in the correspondence between the preset physical memory location information and the status register address. Status register address. That is, after obtaining the physical memory location information of the target physical memory, the target status register address corresponding to the physical memory location information of the target physical memory can be directly found. Compared with the prior art, no professional staff is required to accumulate the Knowledge or according to the existing technical documents related to physical memory, calculate and determine the status register address corresponding to the physical memory location, to a certain extent, get rid of the limitations of the knowledge or technical documents accumulated by the professional staff on the calculation of the status register address, Improved applicability.
请参阅图2,图2为本申请实施例提供的一种地址映射方法的第二流程图。Please refer to FIG. 2, which is a second flowchart of an address mapping method according to an embodiment of the present application.
为了便于管理物理内存位置信息与状态寄存器地址间的对应关系,本 申请实施例提供的一种地址映射方法可以包括以下步骤:In order to facilitate the management of the correspondence between the location information of the physical memory and the address of the status register, an address mapping method provided in this embodiment of the present application may include the following steps:
步骤S201:获取目标物理内存的物理内存位置信息。Step S201: Acquire physical memory location information of the target physical memory.
步骤S202:在预设的物理内存位置信息与状态寄存器地址间的对应关系表中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器。Step S202: In the correspondence table between the preset physical memory location information and the status register address, find the target status register corresponding to the physical memory location information of the target physical memory.
实际应用中,可以借助表格保存物理内存位置信息与状态寄存器地址间的对应关系,这样可以方便的对物理内存位置信息与状态寄存器地址间的对应关系进行修改等操作。In practical applications, the correspondence between the physical memory location information and the status register address can be saved with the help of a table, which can conveniently modify the correspondence between the physical memory location information and the status register address.
请参阅图3,图3为本申请实施例提供的一种地址映射方法的第三流程图。Please refer to FIG. 3, which is a third flowchart of an address mapping method according to an embodiment of the present application.
实际应用中,为了快速根据物理内存位置信息与状态寄存器地址间的对应关系,查找到与目标物理内存的物理内存位置信息对应的目标状态寄存器,本申请实施例提供的一种地址映射方法可以包括:In actual application, in order to quickly find the target status register corresponding to the physical memory location information of the target physical memory according to the correspondence between the physical memory location information and the status register address, an address mapping method provided in this embodiment of the present application may include :
步骤S301:获取目标物理内存的物理内存位置信息。Step S301: Acquire physical memory location information of the target physical memory.
步骤S302:输入目标物理内存的物理内存位置信息至Excel表,Excel表中存储有预设的物理内存位置信息与状态寄存器地址间的对应关系。Step S302: Enter the physical memory location information of the target physical memory into an Excel table. The Excel table stores the correspondence between the preset physical memory location information and the status register address.
步骤S303:获取Excel表调用自身的LOOKUP函数、IF函数后在对应关系中查找到的目标状态寄存器地址。Step S303: Obtain the target status register address found in the corresponding relationship after calling the LOOKUP function and the IF function of the Excel table.
具体应用场景中,由于Excel表具有可选择性的输入所需的变量,且可以自动查询输入的变量对应的值的功能,所以可以借助Excel表来查询目标状态寄存器地址,具体的,借助Excel表中的LOOKUP函数及IF函数来查找目标状态寄存器地址。以物理内存位置信息包括Socket值、iMC值、Channel值、Dimm值、Rank值;状态寄存器地址包括Bus号、Device号、Function号、Offset号为例,Excel表借助LOOKUP函数、IF函数查找状态寄存器地址的函数可以为:In a specific application scenario, since the Excel table has a function of selectively inputting required variables, and can automatically query the corresponding value of the input variable, an Excel table can be used to query the target status register address. Specifically, the Excel table LOOKUP function and IF function to find the target status register address. Taking physical memory location information including Socket value, iMC value, Channel value, Dimm value, Rank value; status register address includes Bus number, Device number, Function number, Offset number as examples, Excel table uses LOOKUP function, IF function to find the status register The function of the address can be:
Bus=LOOKUP(A3,{0,1,2,3},{3,7,"B","F"})&"F";其中A3指的是Socket的值;Bus = LOOKUP (A3, {0,1,2,3}, {3,7, "B", "F"}) &"F"; where A3 refers to the value of the socket;
Device=IF(B3=0),则LOOKUP(C3,{0,1,2,3},{14,14,15,15});IF(B3=1),则LOOKUP(C3,{0,1,2,3},{17,17,18,18}); 其中B3指的是iMC的值,C3指的是Channel的值;Device = IF (B3 = 0), then LOOKUP (C3, {0, 1, 2, 3}, {14, 14, 15, 15}); IF (B3 = 1), then LOOKUP (C3, {0, 1, 2, 3}, {17, 17, 18, 18}); where B3 refers to the value of iMC and C3 refers to the value of Channel;
Function=LOOKUP(C3,{0,1,2,3},{2,3,2,3});其中C3指的是Channel的值;Function = LOOKUP (C3, {0,1,2,3}, {2,3,2,3}); where C3 refers to the value of Channel;
Offset=IF(D3=0),则LOOKUP(E3,{0,1,2,3};{104,106,108,"10A"});IF(D3=1),则LOOKUP(E3,{0,1,2,3},{"10C","10E","False","False"}),IF(D3=2),则LOOKUP(E3,{0,1,2,3},{110,112,"False","False"});其中D3指的是Dimm的值,E3指的是Rank的值。Offset = IF (D3 = 0), then LOOKUP (E3, {0,1,2,3}; {104,106,108, "10A"}); IF (D3 = 1), then LOOKUP (E3, { 0,1,2,3}, {"10C", "10E", "False", "False"}), IF (D3 = 2), then LOOKUP (E3, {0,1,2,3}, {110, 112, "False", "False"}); where D3 refers to the value of Dimm and E3 refers to the value of Rank.
请参阅图4,图4为借助Excel表查找HSX及IVB处理器中的物理内存的状态寄存器地址的输入与输出值。Please refer to FIG. 4. FIG. 4 shows the input and output values of the status register address of the physical memory in the HSX and IVB processors by using an Excel table.
请参阅图5,图5为本申请实施例提供的一种地址映射方法的第四流程图。Please refer to FIG. 5, which is a fourth flowchart of an address mapping method according to an embodiment of the present application.
实际应用中,为了保证物理内存位置信息与状态寄存器地址间的对应关系的准确性及有效性,本申请实施例提供的一种地址映射方法可以包括:In actual application, in order to ensure the accuracy and validity of the correspondence between the physical memory location information and the status register address, an address mapping method provided in this embodiment of the present application may include:
步骤S501:获取目标物理内存的物理内存位置信息。Step S501: Acquire physical memory location information of a target physical memory.
步骤S502:在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。Step S502: In the corresponding relationship between the preset physical memory location information and the status register address, find a target status register address corresponding to the physical memory location information of the target physical memory.
步骤S503:判断是否接收到传输端口传输的目标物理内存的物理内存位置信息对应的实时状态寄存器地址,若是,则执行步骤S504。Step S503: Determine whether a real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received, and if so, perform step S504.
具体应用场景中,在为查找到目标物理内存对应的目标状态寄存器地址时,传输端口传输外界输入的实时状态寄存器地址;也可以是在外界判断查找到的目标状态寄存器地址与目标物理内存不对应时,传输端口传输外界输入的实时状态寄存器地址;传输端口传输实时状态寄存器地址的条件可以根据实际需要灵活确定。In the specific application scenario, when the target status register address corresponding to the target physical memory is found, the transmission port transmits the real-time status register address input from the outside; it can also be determined from the outside that the target status register address found does not correspond to the target physical memory. When transmitting, the transmission port transmits the real-time status register address input from the outside; the conditions under which the transmission port transmits the real-time status register address can be flexibly determined according to actual needs.
步骤S504:建立并保存目标物理内存的物理内存位置信息及实时状态寄存器地址间的对应关系。Step S504: Establish and save the correspondence between the physical memory location information of the target physical memory and the real-time status register address.
当传输端口传输了实时状态寄存器地址后,便可以建立并保存目标物理内存的物理内存位置信息及实时状态寄存器地址间的对应关系,这样在下次查找该目标物理内存的状态寄存器地址时,便可以直接将该实时状态 寄存器地址作为目标状态寄存器地址。应当指出,在保存目标物理内存的物理内存位置信息及实时状态寄存器地址间的对应关系时,需要将原对应关系中目标物理内存对应的状态寄存器地址替换为实时状态寄存器地址。After the transmission port transmits the real-time status register address, the correspondence between the physical memory location information of the target physical memory and the real-time status register address can be established and saved, so that the next time you look up the status register address of the target physical memory, you can This real-time status register address is directly used as the target status register address. It should be noted that when saving the correspondence between the physical memory location information of the target physical memory and the real-time status register address, it is necessary to replace the status register address corresponding to the target physical memory in the original correspondence with the real-time status register address.
本申请还提供了一种地址映射系统,其具有本申请实施例提供的一种地址映射方法具有的对应效果。请参阅图5,图5为本申请实施例提供的一种地址映射系统的结构示意图。This application also provides an address mapping system, which has the corresponding effect of an address mapping method provided in the embodiments of the present application. Please refer to FIG. 5, which is a schematic structural diagram of an address mapping system according to an embodiment of the present application.
本申请实施例提供的一种地址映射系统,可以包括:An address mapping system provided in an embodiment of the present application may include:
获取模块101,用于获取目标物理内存的物理内存位置信息;An obtaining module 101, configured to obtain physical memory location information of a target physical memory;
查找模块102,用于在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。The searching module 102 is configured to search a target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence relationship between the physical memory location information and the status register address.
本申请实施例提供的一种地址映射系统中,查找模块可以包括:In an address mapping system provided by the embodiment of the present application, the search module may include:
第一查找单元,用于在预设的物理内存位置信息与状态寄存器地址间的对应关系表中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器。The first searching unit is configured to search a target status register corresponding to the physical memory location information of the target physical memory in a preset correspondence table between the physical memory location information and the status register address.
本申请实施例提供的一种地址映射系统中,查找模块可以包括:In an address mapping system provided by the embodiment of the present application, the search module may include:
第一输入单元,用于输入目标物理内存的物理内存位置信息至Excel表,Excel表中存储有预设的物理内存位置信息与状态寄存器地址间的对应关系;The first input unit is used to input the physical memory location information of the target physical memory into an Excel table, and the Excel table stores the correspondence between the preset physical memory location information and the status register address;
第一获取单元,用于获取Excel表调用自身的LOOKUP函数、IF函数后在对应关系中查找到的目标状态寄存器地址。The first obtaining unit is configured to obtain an address of a target status register found in the corresponding relationship after calling the LOOKUP function and the IF function of the Excel table.
本申请实施例提供的一种地址映射系统中,还可以包括:The address mapping system provided in the embodiment of the present application may further include:
判断模块,用于在查找模块查找与目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,判断是否接收到传输端口传输的目标物理内存的物理内存位置信息对应的实时状态寄存器地址,若是,则建立并保存目标物理内存的物理内存位置信息及实时状态寄存器地址间的对应关系。A judging module, configured to determine whether the real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received after the search module searches the target status register address corresponding to the physical memory location information of the target physical memory; , The correspondence between the physical memory location information of the target physical memory and the real-time status register address is established and saved.
本申请实施例提供的一种地址映射系统中,获取模块可以包括:In an address mapping system provided by the embodiment of the present application, the obtaining module may include:
第二获取单元,用于获取目标物理内存的物理内存位置信息,物理内存位置信息包括Socket值、iMC值、Channel值、Dimm值、Rank值;The second obtaining unit is configured to obtain physical memory location information of the target physical memory, and the physical memory location information includes a socket value, an iMC value, a Channel value, a Dimm value, and a Rank value;
相应的,查找模块可以包括:Accordingly, the search module may include:
第二查找单元,用于查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址,目标状态寄存器地址包括Bus号、Device号、Function号、Offset号。The second searching unit is configured to search a target status register address corresponding to the physical memory location information of the target physical memory, and the target status register address includes a Bus number, a Device number, a Function number, and an Offset number.
本申请实施例提供的一种地址映射系统中,还可以包括:The address mapping system provided in the embodiment of the present application may further include:
标识信息模块,用于在查找模块在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址之前,获取目标物理内存的标识信息;The identification information module is used for obtaining the identification of the target physical memory before the search module finds the target status register address corresponding to the physical memory location information of the target physical memory in the correspondence between the preset physical memory location information and the status register address. information;
相应的,查找模块可以包括:Accordingly, the search module may include:
第三查找单元,用于在预设的与目标物理内存的标识信息对应的,物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。The third searching unit is configured to find the target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence between the physical memory location information and the status register address corresponding to the identification information of the target physical memory. .
本申请实施例提供的一种地址映射系统中,还可以包括:The address mapping system provided in the embodiment of the present application may further include:
发送模块,用于在查找模块查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,发送目标状态寄存器地址至用户客户端。The sending module is configured to send the target status register address to the user client after the search module searches the target status register address corresponding to the physical memory location information of the target physical memory.
本申请还提供了一种地址映射设备及计算机可读存储介质,其均具有本申请实施例提供的一种地址映射方法具有的对应效果。请参阅图7,图7为本申请实施例提供的一种地址映射设备的结构示意图。The present application also provides an address mapping device and a computer-readable storage medium, both of which have the corresponding effects of an address mapping method provided by the embodiments of the present application. Please refer to FIG. 7, which is a schematic structural diagram of an address mapping device according to an embodiment of the present application.
本申请实施例提供的一种地址映射设备,包括存储器201及处理器202,存储器201中存储有计算机程序,处理器202执行存储器201中存储的计算机程序时实现如下步骤:An address mapping device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program stored in the memory 201, the following steps are implemented:
获取目标物理内存的物理内存位置信息;Obtain the physical memory location information of the target physical memory;
在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。In the correspondence between the preset physical memory location information and the status register address, a target status register address corresponding to the physical memory location information of the target physical memory is searched.
本申请实施例提供的一种地址映射设备,包括存储器201及处理器202,存储器201中存储有计算机子程序,处理器202执行存储器201中存储的计算 机子程序时具体实现:在预设的物理内存位置信息与状态寄存器地址间的对应关系表中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器。An address mapping device provided in the embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer subprogram, and the processor 202 specifically implements the computer subprogram stored in the memory 201: in a preset physical In the correspondence table between the memory location information and the status register address, look up the target status register corresponding to the physical memory location information of the target physical memory.
本申请实施例提供的一种地址映射设备,包括存储器201及处理器202,存储器201中存储有计算机子程序,处理器202执行存储器201中存储的计算机子程序时具体实现:输入目标物理内存的物理内存位置信息至Excel表,Excel表中存储有预设的物理内存位置信息与状态寄存器地址间的对应关系;获取Excel表调用自身的LOOKUP函数、IF函数后在对应关系中查找到的目标状态寄存器地址。An address mapping device provided by an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer subprogram, and the processor 202 specifically implements the computer subprogram stored in the memory 201 when the processor 202 inputs the target physical memory. The physical memory location information is stored in the Excel table. The Excel table stores the correspondence between the preset physical memory location information and the status register address. Get the Excel table and call the LOOKUP function and IF function to find the target state in the correspondence. Register address.
本申请实施例提供的一种地址映射设备,包括存储器201及处理器202,存储器201中存储有计算机子程序,处理器202执行存储器201中存储的计算机子程序时具体实现:查找与目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,判断是否接收到传输端口传输的目标物理内存的物理内存位置信息对应的实时状态寄存器地址,若是,则建立并保存目标物理内存的物理内存位置信息及实时状态寄存器地址间的对应关系。An address mapping device provided in the embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer subprogram, and the processor 202 specifically implements the computer subprogram stored in the memory 201: search and target physical memory After determining the target status register address corresponding to the physical memory location information of the device, determine whether a real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received. If so, establish and save the physical memory location information of the target physical memory. And real-time status register addresses.
本申请实施例提供的一种地址映射设备,包括存储器201及处理器202,存储器201中存储有计算机子程序,处理器202执行存储器201中存储的计算机子程序时具体实现:获取目标物理内存的物理内存位置信息,物理内存位置信息包括Socket值、iMC值、Channel值、Dimm值、Rank值;查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址,目标状态寄存器地址包括Bus号、Device号、Function号、Offset号。An address mapping device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer subprogram, and the processor 202 specifically implements the computer subprogram stored in the memory 201 to obtain the target physical memory. Physical memory location information. The physical memory location information includes Socket value, iMC value, Channel value, Dimm value, and Rank value. Find the target status register address corresponding to the physical memory location information of the target physical memory. The target status register address includes the Bus number, Device. Number, Function number, Offset number.
本申请实施例提供的一种地址映射设备,包括存储器201及处理器202,存储器201中存储有计算机子程序,处理器202执行存储器201中存储的计算机子程序时具体实现:在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址之前,获取目标物理内存的标识信息;相应的,在预设的与目标物理内存的标识信息对应的,物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。An address mapping device provided in the embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer subprogram, and the processor 202 specifically implements the computer subprogram stored in the memory 201: in a preset physical In the correspondence between the memory location information and the status register address, before the target status register address corresponding to the physical memory location information of the target physical memory is found, the identification information of the target physical memory is obtained; correspondingly, the preset physical address of the target physical memory In the correspondence between the identification information and the physical memory location information and the status register address, find the target status register address corresponding to the physical memory location information of the target physical memory.
本申请实施例提供的一种地址映射设备,包括存储器201及处理器202,存储器201中存储有计算机子程序,处理器202执行存储器201中存储的计算机子程序时具体实现:查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,发送目标状态寄存器地址至用户客户端。An address mapping device provided by an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer subprogram. The processor 202 executes the computer subprogram stored in the memory 201 and specifically implements: searching for a target physical memory. After the target status register address corresponding to the physical memory location information, the target status register address is sent to the user client.
请参阅图8,本申请实施例提供的另一种地址映射设备中还可以包括:与处理器202连接的输入端口203,用于传输外界输入的命令至处理器202;与处理器202连接的显示单元204,用于显示处理器202的处理结果至外界;与处理器202连接的通信模块205,用于实现地址映射设备与外界的通信。显示单元202可以为显示面板、激光扫描使显示器等;通信模块205所采用的通信方式包括但不局限于移动高清链接技术(HML)、通用串行总线(USB)、高清多媒体接口(HDMI)、无线连接:无线保真技术(WiFi)、蓝牙通信技术、低功耗蓝牙通信技术、基于IEEE802.11s的通信技术。Referring to FIG. 8, another address mapping device provided by an embodiment of the present application may further include: an input port 203 connected to the processor 202 for transmitting externally input commands to the processor 202; The display unit 204 is configured to display the processing result of the processor 202 to the outside world; the communication module 205 connected to the processor 202 is configured to implement communication between the address mapping device and the outside world. The display unit 202 may be a display panel, a laser scanning display, etc .; the communication methods used by the communication module 205 include, but are not limited to, mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), Wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, Bluetooth low energy communication technology, communication technology based on IEEE802.11s.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium provided in the embodiments of the present application. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
获取目标物理内存的物理内存位置信息;Obtain the physical memory location information of the target physical memory;
在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。In the correspondence between the preset physical memory location information and the status register address, a target status register address corresponding to the physical memory location information of the target physical memory is searched.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机子程序,计算机子程序被处理器执行时具体实现:在预设的物理内存位置信息与状态寄存器地址间的对应关系表中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器。A computer-readable storage medium provided in the embodiment of the present application. The computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when the computer subprogram is executed by the processor: between the preset physical memory location information and the status register address In the correspondence table, find the target status register corresponding to the physical memory location information of the target physical memory.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机子程序,计算机子程序被处理器执行时具体实现:输入目标物理内存的物理内存位置信息至Excel表,Excel表中存储有预设的物理内存位置信息与状态寄存器地址间的对应关系;获取Excel表调用自身的LOOKUP函数、IF函数后在对应关系中查找到的目标状态寄存器地址。A computer-readable storage medium provided in the embodiment of the present application. The computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when the computer subprogram is executed by: inputting physical memory location information of a target physical memory into an Excel table, The Excel table stores the correspondence between the preset physical memory location information and the status register address; it obtains the target status register address found in the correspondence after the Excel table calls its own LOOKUP function and IF function.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机子程序,计算机子程序被处理器执行时具体实现:查找与 目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,判断是否接收到传输端口传输的目标物理内存的物理内存位置信息对应的实时状态寄存器地址,若是,则建立并保存目标物理内存的物理内存位置信息及实时状态寄存器地址间的对应关系。A computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when executed by the processor: finding a target corresponding to the physical memory location information of the target physical memory After the status register address, determine whether the real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received, and if so, establish and save the correspondence between the physical memory location information of the target physical memory and the real-time status register address relationship.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机子程序,计算机子程序被处理器执行时具体实现:获取目标物理内存的物理内存位置信息,物理内存位置信息包括Socket值、iMC值、Channel值、Dimm值、Rank值;查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址,目标状态寄存器地址包括Bus号、Device号、Function号、Offset号。A computer-readable storage medium provided in the embodiments of the present application. The computer-readable storage medium stores a computer subprogram, and the computer subprogram is implemented by the processor when the computer subprogram is specifically implemented: obtaining physical memory location information of the target physical memory, and physical memory location The information includes Socket value, iMC value, Channel value, Dimm value, and Rank value. Find the target status register address corresponding to the physical memory location information of the target physical memory. The target status register address includes the Bus number, Device number, Function number, and Offset number.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机子程序,计算机子程序被处理器执行时具体实现:在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址之前,获取目标物理内存的标识信息;相应的,在预设的与目标物理内存的标识信息对应的,物理内存位置信息与状态寄存器地址间的对应关系中,查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址。A computer-readable storage medium provided in the embodiment of the present application. The computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when the computer subprogram is executed by the processor: between the preset physical memory location information and the status register address In the corresponding relationship, before identifying the target state register address corresponding to the physical memory location information of the target physical memory, obtain the identification information of the target physical memory; correspondingly, the physical memory location corresponding to the preset identification information of the target physical memory In the correspondence between the information and the status register address, find the target status register address corresponding to the physical memory location information of the target physical memory.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机子程序,计算机子程序被处理器执行时具体实现:查找目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,发送目标状态寄存器地址至用户客户端。A computer-readable storage medium provided in the embodiment of the present application. The computer-readable storage medium stores a computer subprogram, and the computer subprogram is specifically implemented when executed by a processor: finding a target state corresponding to physical memory location information of a target physical memory. After the register address, the target status register address is sent to the user client.
本申请所述的计算机可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。The computer-readable storage medium described in this application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, and CD-ROM Or any other form of storage medium known in the art.
本申请实施例提供的一种地址映射系统、设备及计算机可读存储介质中相关部分的说明请参见本申请实施例提供的一种地址映射方法中对应部分的详细说明,在此不再赘述。另外,本申请实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过 多赘述。For descriptions of related parts in an address mapping system, device, and computer-readable storage medium provided in the embodiments of the present application, refer to detailed descriptions of corresponding parts in an address mapping method provided in the embodiments of the present application, and details are not described herein again. In addition, parts of the foregoing technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of corresponding technical solutions in the prior art are not described in detail, so as not to repeat them too much.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations There is any such actual relationship or order among them. Moreover, the terms "including", "comprising", or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article, or equipment that includes the elements.
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, this application will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

  1. 一种地址映射方法,其特征在于,包括:An address mapping method, comprising:
    获取目标物理内存的物理内存位置信息;Obtain the physical memory location information of the target physical memory;
    在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址。In the correspondence between the preset physical memory location information and the status register address, a target status register address corresponding to the physical memory location information of the target physical memory is searched.
  2. 根据权利要求1所述的方法,其特征在于,所述在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址,包括:The method according to claim 1, wherein, in the correspondence between the preset physical memory location information and the status register address, the target state register address corresponding to the physical memory location information of the target physical memory is searched. ,include:
    在预设的物理内存位置信息与状态寄存器地址间的对应关系表中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器。In the preset correspondence table between the physical memory location information and the status register address, a target status register corresponding to the physical memory location information of the target physical memory is searched.
  3. 根据权利要求2所述的方法,其特征在于,所述在预设的物理内存位置信息与状态寄存器地址间的对应关系表中,查找与所述目标物理内存的物理内存位置信息对应的目标状态寄存器,包括:The method according to claim 2, wherein the target state corresponding to the physical memory location information of the target physical memory is searched in the preset correspondence table between the physical memory location information and the status register address. Registers, including:
    输入所述目标物理内存的物理内存位置信息至Excel表,所述Excel表中存储有预设的物理内存位置信息与状态寄存器地址间的对应关系;Inputting physical memory location information of the target physical memory into an Excel table, where the Excel table stores a correspondence between preset physical memory location information and a status register address;
    获取所述Excel表调用自身的LOOKUP函数、IF函数后在所述对应关系中查找到的所述目标状态寄存器地址。Obtain the target state register address found in the Excel table by calling its own LOOKUP function and IF function in the corresponding relationship.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述查找与所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,还包括:The method according to any one of claims 1 to 3, wherein after the searching for a target status register address corresponding to the physical memory location information of the target physical memory, further comprising:
    判断是否接收到传输端口传输的所述目标物理内存的物理内存位置信息对应的实时状态寄存器地址,若是,则建立并保存所述目标物理内存的物理内存位置信息及所述实时状态寄存器地址间的对应关系。Determine whether a real-time status register address corresponding to the physical memory location information of the target physical memory transmitted by the transmission port is received, and if so, establish and save the physical memory location information of the target physical memory and the real-time status register address Correspondence.
  5. 根据权利要求4所述的方法,其特征在于,获取目标物理内存的物理内存位置信息,包括:The method according to claim 4, wherein obtaining the physical memory location information of the target physical memory comprises:
    获取目标物理内存的物理内存位置信息,所述物理内存位置信息包括Socket值、iMC值、Channel值、Dimm值、Rank值;Acquiring physical memory location information of a target physical memory, where the physical memory location information includes a Socket value, an iMC value, a Channel value, a Dimm value, and a Rank value;
    所述查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址,包括:The searching the target status register address corresponding to the physical memory location information of the target physical memory includes:
    查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址,所述目标状态寄存器地址包括Bus号、Device号、Function号、Offset号。Find a target status register address corresponding to the physical memory location information of the target physical memory, where the target status register address includes a Bus number, a Device number, a Function number, and an Offset number.
  6. 根据权利要求4所述的方法,其特征在于,所述在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址之前,还包括:The method according to claim 4, wherein the target state register address corresponding to the physical memory location information of the target physical memory is found in the correspondence between the preset physical memory location information and the status register address. Before, it also included:
    获取所述目标物理内存的标识信息;Obtaining identification information of the target physical memory;
    所述在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址,包括:The searching for a target status register address corresponding to the physical memory location information of the target physical memory in the preset correspondence between the physical memory location information and the status register address includes:
    在预设的与所述目标物理内存的标识信息对应的,物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址。In a preset correspondence between the physical memory location information and the status register address, which corresponds to the identification information of the target physical memory, a target status register address corresponding to the physical memory location information of the target physical memory is searched.
  7. 根据权利要求4所述的方法,其特征在于,所述查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址之后,还包括:The method according to claim 4, wherein after the searching for a target status register address corresponding to physical memory location information of the target physical memory, further comprising:
    发送所述目标状态寄存器地址至用户客户端。Sending the target status register address to a user client.
  8. 一种地址映射系统,其特征在于,包括:An address mapping system, comprising:
    获取模块,用于获取目标物理内存的物理内存位置信息;An acquisition module for acquiring physical memory location information of a target physical memory;
    查找模块,用于在预设的物理内存位置信息与状态寄存器地址间的对应关系中,查找所述目标物理内存的物理内存位置信息对应的目标状态寄存器地址。The searching module is configured to find a target status register address corresponding to the physical memory location information of the target physical memory in a preset correspondence between the physical memory location information and the status register address.
  9. 一种地址映射设备,其特征在于,包括:An address mapping device, comprising:
    存储器,用于存储计算机程序;Memory for storing computer programs;
    处理器,用于执行所述计算机程序时实现如权利要求1至7任一项所述的地址映射方法的步骤。A processor, configured to implement the steps of the address mapping method according to any one of claims 1 to 7 when executing the computer program.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的地址映射方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the address mapping method according to any one of claims 1 to 7 is implemented A step of.
PCT/CN2018/123676 2018-06-29 2018-12-26 Address mapping method, system and device and computer readable storage medium WO2020000954A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810699011.1A CN108829612A (en) 2018-06-29 2018-06-29 A kind of address mapping method, system, equipment and computer readable storage medium
CN201810699011.1 2018-06-29

Publications (1)

Publication Number Publication Date
WO2020000954A1 true WO2020000954A1 (en) 2020-01-02

Family

ID=64134908

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/123676 WO2020000954A1 (en) 2018-06-29 2018-12-26 Address mapping method, system and device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108829612A (en)
WO (1) WO2020000954A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829612A (en) * 2018-06-29 2018-11-16 郑州云海信息技术有限公司 A kind of address mapping method, system, equipment and computer readable storage medium
CN110718262B (en) * 2019-08-21 2021-04-27 深圳市金泰克半导体有限公司 Method, device and storage medium for positioning rank where fault memory particles are located
CN111124828B (en) * 2019-12-22 2023-04-25 苏州浪潮智能科技有限公司 Data processing method, device, equipment and storage medium
CN114153779B (en) * 2021-10-31 2023-07-14 郑州云海信息技术有限公司 I2C communication method, system, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499314A (en) * 2008-01-29 2009-08-05 财团法人工业技术研究院 Memory device and its updating method
CN101609397A (en) * 2008-06-16 2009-12-23 安凯(广州)软件技术有限公司 Memory exchange invalidation method for micro memory system based on radio hand-held equipment
US8438363B1 (en) * 2007-02-06 2013-05-07 Parallels IP Holdings GmbH Optimization of paging cache protection in virtual environment
CN107797895A (en) * 2017-05-08 2018-03-13 中国人民解放军国防科学技术大学 A kind of secure virtual machine monitoring method and system
CN108829612A (en) * 2018-06-29 2018-11-16 郑州云海信息技术有限公司 A kind of address mapping method, system, equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8438363B1 (en) * 2007-02-06 2013-05-07 Parallels IP Holdings GmbH Optimization of paging cache protection in virtual environment
CN101499314A (en) * 2008-01-29 2009-08-05 财团法人工业技术研究院 Memory device and its updating method
CN101609397A (en) * 2008-06-16 2009-12-23 安凯(广州)软件技术有限公司 Memory exchange invalidation method for micro memory system based on radio hand-held equipment
CN107797895A (en) * 2017-05-08 2018-03-13 中国人民解放军国防科学技术大学 A kind of secure virtual machine monitoring method and system
CN108829612A (en) * 2018-06-29 2018-11-16 郑州云海信息技术有限公司 A kind of address mapping method, system, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN108829612A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
WO2020000954A1 (en) Address mapping method, system and device and computer readable storage medium
CN108255653B (en) Product testing method and terminal thereof
CN110489391B (en) Data processing method and related equipment
US20170286484A1 (en) Graph Data Search Method and Apparatus
US20160259800A1 (en) Webpage loading method, client and server
US10229208B2 (en) Optimization of query execution
WO2017114206A1 (en) Method and device for processing short link, and short link server
CN110162976B (en) Risk assessment method and device and terminal
US10963888B2 (en) Payment complaint method, device, server and readable storage medium
US11243921B2 (en) Database expansion system, equipment, and method of expanding database
CN105607986A (en) Acquisition method and device of user behavior log data
WO2018145546A1 (en) Authentication method, device and storage medium
CN111061464B (en) Analysis code generation method, device, equipment and storage medium
WO2021135603A1 (en) Intention recognition method, server and storage medium
CN109343983B (en) Information interaction method, device, equipment and storage medium between function modules
US20180196861A1 (en) Method for generating graph database of incident resources and apparatus thereof
CN114676678B (en) Method and device for analyzing structured query language data and electronic equipment
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN111047434A (en) Operation record generation method and device, computer equipment and storage medium
CN110995489B (en) Large data platform server management method, device, server and storage medium
CN112100092B (en) Information caching method, device, equipment and medium
US10936968B2 (en) Ticket routing
CN113900815A (en) High-bandwidth memory access method and device of heterogeneous many-core processor
CN112380411A (en) Sensitive word processing method and device, electronic equipment, system and storage medium
CN111124923B (en) Running state query method and device, server equipment and storage medium

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: 18924043

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: 18924043

Country of ref document: EP

Kind code of ref document: A1