WO2018086101A1 - Method for determining hotspot address, and device using same - Google Patents

Method for determining hotspot address, and device using same Download PDF

Info

Publication number
WO2018086101A1
WO2018086101A1 PCT/CN2016/105656 CN2016105656W WO2018086101A1 WO 2018086101 A1 WO2018086101 A1 WO 2018086101A1 CN 2016105656 W CN2016105656 W CN 2016105656W WO 2018086101 A1 WO2018086101 A1 WO 2018086101A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
access
segment
matching condition
segment address
Prior art date
Application number
PCT/CN2016/105656
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 华为技术有限公司
Priority to CN201680090767.5A priority Critical patent/CN109923846B/en
Priority to PCT/CN2016/105656 priority patent/WO2018086101A1/en
Publication of WO2018086101A1 publication Critical patent/WO2018086101A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • Embodiments of the present invention relate to the field of information processing, and, more particularly, to a method of determining a hotspot address and an apparatus therefor.
  • the shared address field where the shared storage variable is located refers to the field with a relatively high number of accesses in a period of time, that is, the hotspot address. Only after determining the hotspot address can the system be better optimized.
  • One of the methods for determining a hotspot address in the prior art is: a method of checking by a manual code, which is a method for checking the hotspot address by the whole artificial party, which is inefficient, incomplete, and inaccurate; another way of determining the hotspot address is: The instruction tracking record of the chip simulation environment, while the simulation environment runs slower and less efficient, and the statistics on access to shared variables can only be inferred by the statistics of other modules, which is inaccurate.
  • Embodiments of the present invention provide a method for determining a hotspot address, which can efficiently determine an access address.
  • the first method provides a method for determining a hotspot address, and the method is applied to a multi-core processor system, including: obtaining access in the i-th segment address according to an access matching condition of an i-th segment address in a target time period The number of accesses in the matching condition, wherein the access matching condition of the i-th segment address includes an address field of the i-th segment address, and the i-th segment address is an segment of the N-segment address, 1 ⁇ i ⁇ N And N is a positive integer; determining a hotspot address in the N segment address according to the number of accesses of each of the N segments of addresses under the corresponding access matching condition.
  • the hotspot address includes: determining, as a hotspot address, an address field in which each of the N segments of addresses has the most access times under the corresponding access matching condition.
  • the access matching condition of the i th segment address further includes at least one of: accessing the i th segment address Source processor identifier and destination processor identifier; access type of access to the i-th segment address.
  • the access matching condition of the i-th segment address includes a source processor identifier and a target processor of the i-th segment address
  • the method further includes: determining, according to the number of accesses of each of the N segments of addresses in the corresponding access matching condition, the source processor and the target processor with the most access times of the i th segment address.
  • the access matching condition of the i-th segment address includes an access type of the i-th segment address
  • the method further includes And determining, according to the number of accesses of each of the N segments of addresses in the corresponding access matching condition, the access type with the most access times of the i th segment address.
  • determining the type of access with the most access times or determining the source and target processors with the most access times can facilitate subsequent system optimization.
  • the embodiment of the present invention provides a method for determining an access hotspot address, which can detect the access situation of the multi-core shared variable accurately, efficiently, and at low cost, and provide a basis for system performance optimization.
  • a network device for performing the method of any of the above first aspect or any of the possible implementations of the first aspect.
  • the apparatus comprises means for performing the method of any of the above-described first aspect or any of the possible implementations of the first aspect.
  • a network device comprising: a transceiver, a memory, a processor, and a bus system.
  • the transceiver, the memory and the processor are connected by the bus system
  • the memory is for storing instructions for executing instructions stored by the memory to control the transceiver to receive and/or transmit signals
  • the processor executes the instructions stored by the memory The execution causes the processor to perform the method of the first aspect or any possible implementation of the first aspect.
  • a computer readable medium for storing a computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.
  • FIG. 1 is a schematic flow chart of a method in accordance with an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a method in accordance with another embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a network device 300 according to an embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of an apparatus 400 in accordance with one embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention.
  • the method is applied to a multi-core processor system.
  • the execution body of the method may be a physical machine.
  • the method may be applied to a system on chip (English System on Chip, abbreviated: In SOC), as shown in FIG. 1, the method includes:
  • step 110 the number of accesses under the access matching condition of the i-th segment address is obtained according to the access matching condition of the i-th segment address, wherein the access matching condition of the i-th segment address includes the i-th
  • the address field of the segment address, the address of the i-th segment is an address in the N-segment address, 1 ⁇ i ⁇ N, and N is a positive integer.
  • Step 120 Determine a hotspot address in the N segment address according to the number of accesses of each segment of the N segment address under the corresponding access matching condition.
  • the target time period may be a preset period of time, for example, may be 100 milliseconds, 1 second, etc., which is not limited in the embodiment of the present invention.
  • the N-segment address may be an N-segment address divided into a target address to be inspected, for example, the target address is [a1, a12], then the N-segment address may be the following three segments [a1, a3] ], [a4, a9], [a10, a12], the i-th address can be one of the three-segment addresses.
  • the access matching condition of the i-th segment address includes at least the specific address field of the i-th segment address; further, the access matching condition may further include accessing the identifier of the source processor and the identifier of the destination processor to be accessed.
  • the above access matching condition It can also include specific access types for access, such as read operation access types, write operation access types, and the like.
  • the monitoring logic of the shared access integrated in the chip may be recorded for the shared access initiated by each access component, for example, For systems that support caching (English: CACHE) consistency, there will be a module similar to the snoop filter (English: SNOOP-FILTER), which can monitor all shared accesses and save the accessed records to the backup state. Directory, which determines the destination storage address for a particular visit.
  • the hotspot address in the N-segment address can be determined according to the number of accesses of each pair of addresses under the corresponding access matching condition.
  • the number of accesses satisfying the access matching condition of the first segment address is 3, the number of accesses satisfying the access matching condition of the second segment address is 5, and the number of accesses satisfying the access matching condition of the third segment address is 1 time.
  • the second segment of the address may be a hot address.
  • the hotspot address may be one address with the most number of accesses, or may be the address with the most number of accesses, which is not limited in the embodiment of the present invention.
  • the embodiment of the present invention provides a method for determining an access hotspot address, which can accurately and efficiently detect the access situation of the multi-core shared variable, and provide a basis for system performance optimization.
  • the method only records the number of shared accesses of a certain address. Therefore, the system can dynamically configure the monitoring address, obtain the number of shared accesses of each address segment, and analyze the data to the precise shared access hotspot.
  • determining a hotspot address in the N segment address according to the number of accesses of each segment of the N segment address under the corresponding access matching condition including: The address field with the most access times under the corresponding access matching condition is determined as the hotspot address.
  • the hotspot address is the address field that has the most access times to satisfy the access condition.
  • the access matching condition of the i-th segment address further includes at least one of the following: accessing the source processor identifier and the destination processor identifier of the i-th segment address; accessing the i-th segment address Access type.
  • the access matching condition of the first segment address [a1:a3] is: address [a1: a3], access type [read], source processor identifier, and destination processor identifier [processor 1, processor 2];
  • the number of visits is 2.
  • the access matching condition of the first segment address [a1:a3] is: address [a1:a3], access type [read],
  • the source processor ID and destination processor ID are [Processor 1, Processor 3]; the number of accesses is 5.
  • the access matching condition of the first segment address [a1:a3] is: address [a1: a3], access type [write], source processor identifier, and destination processor identifier [processor 1, processor 3];
  • the number of visits is 3.
  • the access matching condition of the second segment address [a4:a9] is: address [a4:a9], access type [read], source processor identifier, and destination processor identifier [processor 1, processor 3];
  • the number of visits is 6.
  • the access matching condition of the third segment address [a10:a12] is: [a10:a12], access type [write], source processor identifier, and destination processor identifier [processor 2, processor 3]; access The number of times is 1.
  • the access matching condition of the i-th segment address includes a source processor identifier and a target processor identifier of the i-th segment address
  • the method further includes: according to the N-segment address The number of accesses of each segment of the address under the corresponding access matching condition determines the source processor and the target processor with the most access times of the i-th segment address.
  • the access matching condition of the i-th segment address includes an access type of the i-th segment address
  • the method further includes: accessing each segment of the N-segment address under a corresponding access matching condition. The number of times to determine the access type with the most access times of the i-th segment address.
  • determining the type of access with the most access times or determining the source and target processors with the most access times can facilitate subsequent system optimization.
  • the embodiment of the present invention provides a method for determining an access hotspot address, which can detect the access situation of the multi-core shared variable accurately, efficiently, and at low cost, and provide a basis for system performance optimization.
  • FIG. 2 is a schematic diagram of a method in accordance with another embodiment of the present invention.
  • the figure includes a processor core core1, a core core2, ..., a core core N, and each core accesses or accesses a memory.
  • Memory is monitored by SNOOP-FILTER, and the component can monitor all the shares.
  • Access save the backup status directory of each CACHE LINE, determine the destination address of a visit, that is, the purpose of the access is to which CACHE or subordinate storage.
  • the system configures the SNOOP FILTER parameter, specifically including access matching conditions [CORE-source, CORE-dest]+[A1:A2]+[access type ⁇ read-write>] and time period T1, and SNOOP FILTER records according to configuration parameters. The number of times that the matching condition is met within T1 in a time period.
  • Matching condition 1 shared access times N a ;
  • Matching condition 2 number of shared accesses N b ;
  • Matching condition x number of shared accesses N x ; where N a , N b , and N x are all non-negative integers.
  • the most visited address segment [Ax-Ay] is the hotspot address of the shared data
  • the hotspot address of the shared data After obtaining the hotspot address of the shared data, find the function that shares the data access by disassembling the analysis software code image, that is, finding the point to be optimized, optimizing, or, further, configuring the part by integrating the TRACE function inside the CPU.
  • the [Ax-Ay] occurs, the current PC pointer and stack information are recorded.
  • the TRACE information is read by the software, and the function information related to the hotspot data can be obtained to find an optimization point.
  • the embodiment of the present invention provides a method for determining an access hotspot address, which can accurately and efficiently detect the access situation of the multi-core shared variable, and provide a basis for system performance optimization.
  • FIGS. 3 and 4 illustrate in detail the flow of the method of the embodiment of the present invention, and the apparatus and apparatus of the embodiment of the present invention are described below with reference to FIGS. 3 and 4.
  • FIG. 3 is a schematic structural diagram of a network device 300 according to an embodiment of the present invention. It should be understood that the network device 300 is capable of performing the various steps in the method of FIG. 1 or FIG. 2, and to avoid repetition, it will not be described in detail herein.
  • Network device 200 includes:
  • An obtaining unit 310 configured to acquire, according to an access matching condition of the i-th segment address, an access number under an access matching condition of the i-th segment address, where the i-th segment
  • the access matching condition of the address includes an address field of the i-th segment address, and the i-th segment address is an segment of the N-segment address, 1 ⁇ i ⁇ N, and N is a positive integer.
  • the determining unit 320 is configured to determine a hotspot address in the N-segment address according to the number of accesses of each of the N-segment addresses under the corresponding access matching condition.
  • the embodiment of the present invention provides a method for determining an access hotspot address, which can accurately and efficiently detect the access situation of the multi-core shared variable, and provide a basis for system performance optimization.
  • the determining unit 320 is specifically configured to: determine, as a hotspot address, an address field in which each of the N segments of addresses has the most access times under the corresponding access matching condition.
  • the access matching condition of the i-th segment address further includes at least one of the following: a source processor identifier and a destination processor identifier that access the i-th segment address Knowledge; access to the access type of the i-th segment address.
  • the access matching condition of the i-th segment address includes a source processor identifier and a target processor identifier of the i-th segment address
  • the determining unit 320 is further configured to: The number of accesses of each of the N segments of addresses in the corresponding access matching condition is determined, and the source processor and the target processor with the most access times of the i th segment address are determined.
  • the access matching condition of the ith segment address includes an access type of the ith segment address
  • the determining unit 320 is further configured to: according to each segment of the N segment address The number of accesses of the address under the corresponding access matching condition determines the access type with the most access times of the i-th segment address.
  • FIG. 4 is a schematic block diagram of an apparatus 400 in accordance with one embodiment of the present invention.
  • FIG. 4 shows an apparatus 400 provided by an embodiment of the present invention. It should be understood that apparatus 400 is capable of performing the various steps of the method of FIG. 1 or FIG. 2, and to avoid repetition, details are not described herein.
  • Apparatus 400 includes:
  • a memory 410 configured to store a program
  • the transceiver 420 is configured to communicate with other devices;
  • processor 430 configured to execute a program in the memory 410
  • the processor 430 is coupled to the memory 410 and the transceiver 420, respectively, for executing the instructions stored by the memory 410 to execute the instruction Perform the following steps:
  • the processor 430 is configured to obtain, by the transceiver 420, the number of accesses under the access matching condition of the i-th segment address according to an access matching condition of the i-th segment address in the target time period, where the i-th segment
  • the access matching condition of the address includes an address field of the i-th segment address, the i-th segment address is an segment of the N-segment address, 1 ⁇ i ⁇ N, and N is a positive integer; according to each of the N-segment addresses The number of accesses of the segment address under the corresponding access matching condition determines the hotspot address in the N segment address.
  • the embodiment of the present invention provides a method for determining an access hotspot address, which can accurately and efficiently detect the access situation of the multi-core shared variable, and provide a basis for system performance optimization.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the device is only a logical function division, and the actual implementation may have another division manner, for example, multiple devices or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or device, and may be in an electrical, mechanical or other form.
  • each functional device in various embodiments of the present invention may be integrated in one processing device, or each device may exist physically separately, or two or more devices may be integrated in one device.
  • the functions, if implemented in the form of software functional devices and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

Provided are a method for determining a hotspot address and a device using same. The method is applied to a multi-core processor system and comprises: in a target time period, acquiring the number of times an ith segment of address is accessed in an access matching condition according to the access matching condition of the ith segment of address, wherein the access matching condition of the ith segment of address comprises an address field of the ith segment of address, the ith segment of address is one segment of address in N segments of addresses, wherein 1 ≤ i ≤ N, and N is a positive integer; and determining a hotspot address in the N segments of addresses according to the number of times each segment of address, in the N segments of addresses, is accessed in the corresponding access matching condition. Therefore, the method capable of determining an access hotspot address provided in the embodiments of the present invention can accurately and efficiently detect an access condition of multi-core shared variables and provide a basis for system performance optimization.

Description

确定热点地址的方法及其设备Method and device for determining hotspot address 技术领域Technical field
本发明实施例涉及信息处理领域,并且更具体地,涉及一种确定热点地址的方法及其设备。Embodiments of the present invention relate to the field of information processing, and, more particularly, to a method of determining a hotspot address and an apparatus therefor.
背景技术Background technique
在多核处理器共同存在的场景下,可能会有多核处理器之间共享存储变量的情况,而这种共享存储变量的情况又包括真共享和伪共享,伪共享指的是该共享存储变量实际上是某一个处理器自己的存储变量,而不需要跟别的处理器共享,但是因为变量存放在同一个高速缓存块(英文:CACHE LINE)里,对这些共享变量的操作都会等同于是共享的访问。In the scenario where multi-core processors coexist, there may be cases where shared variables are shared among multi-core processors, and such shared storage variables include true sharing and pseudo-sharing, and pseudo-share refers to the actual shared variable. The above is a processor's own storage variable, and does not need to be shared with other processors, but because the variables are stored in the same cache block (English: CACHE LINE), the operation of these shared variables will be equivalent to shared. access.
共享的存储变量所在的共享地址字段是指在一段时间内访问次数比较高的字段,也就是热点地址,只有在确定热点地址之后,才能够更好对系统进行性能优化。The shared address field where the shared storage variable is located refers to the field with a relatively high number of accesses in a period of time, that is, the hotspot address. Only after determining the hotspot address can the system be better optimized.
现有技术中确定热点地址的方式之一为:通过人工代码检视的方式,该方式为全人工方检查热点地址,效率低、检查不全面,不准确;另外一种确定热点地址的方式为:芯片仿真环境的指令跟踪记录,而仿真环境运行速度较慢,效率较低,并且对于对共享变量的访问统计,只能通过其他模块的统计来推测,不准确。One of the methods for determining a hotspot address in the prior art is: a method of checking by a manual code, which is a method for checking the hotspot address by the whole artificial party, which is inefficient, incomplete, and inaccurate; another way of determining the hotspot address is: The instruction tracking record of the chip simulation environment, while the simulation environment runs slower and less efficient, and the statistics on access to shared variables can only be inferred by the statistics of other modules, which is inaccurate.
因此,如何高效地确定访问热点地址,是一个亟待解决的问题。Therefore, how to efficiently determine the access hotspot address is an urgent problem to be solved.
发明内容Summary of the invention
本发明实施例提供一种确定热点地址的方法,能够高效地确定访问地址。Embodiments of the present invention provide a method for determining a hotspot address, which can efficiently determine an access address.
第一方法,提供一种确定热点地址的方法,所述方法应用于多核处理器系统,包括:在目标时段内,根据第i段地址的访问匹配条件,获取在所述第i段地址的访问匹配条件下的访问次数,其中,所述第i段地址的访问匹配条件包括所述第i段地址的地址字段,所述第i段地址为N段地址中的一段地址,1≤i≤N,N为正整数;根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述N段地址中的热点地址。 The first method provides a method for determining a hotspot address, and the method is applied to a multi-core processor system, including: obtaining access in the i-th segment address according to an access matching condition of an i-th segment address in a target time period The number of accesses in the matching condition, wherein the access matching condition of the i-th segment address includes an address field of the i-th segment address, and the i-th segment address is an segment of the N-segment address, 1≤i≤N And N is a positive integer; determining a hotspot address in the N segment address according to the number of accesses of each of the N segments of addresses under the corresponding access matching condition.
也就是说,通过记录N段地址中每段地址的访问次数,能够比较确定这N段地址中的热点地址。That is to say, by recording the number of accesses of each of the N segments of addresses, it is possible to compare and determine the hotspot addresses in the N segments of addresses.
结合第一方面,在第一方面的第一种可能的实现方式中,所述根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述N段地址中的热点地址,包括:将所述N段地址中每段地址在对应的访问匹配条件下访问次数最多的地址字段,确定为热点地址。With reference to the first aspect, in a first possible implementation manner of the first aspect, the determining, according to the number of accesses of each of the N segments of addresses in a corresponding access matching condition, determining the N segments of addresses The hotspot address includes: determining, as a hotspot address, an address field in which each of the N segments of addresses has the most access times under the corresponding access matching condition.
结合第一方面及其上述实现方式,在第一方面的第二种可能的实现方式中,所述第i段地址的访问匹配条件还包括下列中的至少一项:访问所述第i段地址的源处理器标识和目的处理器标识;访问所述第i段地址的访问类型。With reference to the first aspect and the foregoing implementation manner, in a second possible implementation manner of the first aspect, the access matching condition of the i th segment address further includes at least one of: accessing the i th segment address Source processor identifier and destination processor identifier; access type of access to the i-th segment address.
结合第一方面及其上述实现方式,在第一方面的第三种可能的实现方式中,所述第i段地址的访问匹配条件包括所述第i段地址的源处理器标识和目标处理器标识,所述方法还包括:根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的源处理器和目标处理器。With reference to the first aspect and the foregoing implementation manner, in a third possible implementation manner of the first aspect, the access matching condition of the i-th segment address includes a source processor identifier and a target processor of the i-th segment address And the method further includes: determining, according to the number of accesses of each of the N segments of addresses in the corresponding access matching condition, the source processor and the target processor with the most access times of the i th segment address.
结合第一方面及其上述实现方式,在第一方面的第四种可能的实现方式中,所述第i段地址的访问匹配条件包括所述第i段地址的访问类型,所述方法还包括:根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的访问类型。With reference to the first aspect and the foregoing implementation manner, in a fourth possible implementation manner of the first aspect, the access matching condition of the i-th segment address includes an access type of the i-th segment address, and the method further includes And determining, according to the number of accesses of each of the N segments of addresses in the corresponding access matching condition, the access type with the most access times of the i th segment address.
应理解,确定访问次数最多的访问类型或者确定访问次数最多的源处理器和目标处理器,能够有助于进行后续的系统优化。It should be understood that determining the type of access with the most access times or determining the source and target processors with the most access times can facilitate subsequent system optimization.
因此,本发明实施例提供了一种能够确定访问热点地址的方法,能够准确、高效地、低成本地检测到多核共享变量的访问情况,为系统性能优化提供依据。Therefore, the embodiment of the present invention provides a method for determining an access hotspot address, which can detect the access situation of the multi-core shared variable accurately, efficiently, and at low cost, and provide a basis for system performance optimization.
第二方面,提供了一种网络设备,用于执行上述第一方面或第一方面的任意可能的实现方式中的方法。具体地,该装置包括用于执行上述第一方面或第一方面的任意可能的实现方式中的方法的单元。In a second aspect, a network device is provided for performing the method of any of the above first aspect or any of the possible implementations of the first aspect. In particular, the apparatus comprises means for performing the method of any of the above-described first aspect or any of the possible implementations of the first aspect.
第三方面,提供了一种网络设备,该网络设备包括:收发器、存储器、处理器和总线系统。其中,该收发器、该存储器和该处理器通过该总线系统相连,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制收发器接收和/或发送信号,并且当该处理器执行该存储器存储的指令 时,该执行使得该处理器执行第一方面或第一方面的任意可能的实现方式中的方法。In a third aspect, a network device is provided, the network device comprising: a transceiver, a memory, a processor, and a bus system. Wherein the transceiver, the memory and the processor are connected by the bus system, the memory is for storing instructions for executing instructions stored by the memory to control the transceiver to receive and/or transmit signals, and The processor executes the instructions stored by the memory The execution causes the processor to perform the method of the first aspect or any possible implementation of the first aspect.
第四方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。In a fourth aspect, a computer readable medium is provided for storing a computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.
附图说明DRAWINGS
图1是本发明一个实施例的方法的示意性流程图。1 is a schematic flow chart of a method in accordance with an embodiment of the present invention.
图2是本发明另一实施例的方法的示意图。2 is a schematic diagram of a method in accordance with another embodiment of the present invention.
图3是本发明一个实施例的网络设备300的示意性结构图。FIG. 3 is a schematic structural diagram of a network device 300 according to an embodiment of the present invention.
图4是本发明一个实施例的装置400的示意性结构图。Figure 4 is a schematic block diagram of an apparatus 400 in accordance with one embodiment of the present invention.
具体实施方式detailed description
图1是本发明一个实施例的方法的示意性流程图,该方法应用于多核处理器系统,该方法的执行主体可以为物理机,该方法可以应用于片上系统(英文System on Chip,简写:SOC)中,如图1所示,该方法包括:1 is a schematic flowchart of a method according to an embodiment of the present invention. The method is applied to a multi-core processor system. The execution body of the method may be a physical machine. The method may be applied to a system on chip (English System on Chip, abbreviated: In SOC), as shown in FIG. 1, the method includes:
步骤110,在目标时段内,根据第i段地址的访问匹配条件,获取在第i段地址的访问匹配条件下的访问次数,其中,所述第i段地址的访问匹配条件包括所述第i段地址的地址字段,第i段地址为N段地址中的一段地址,1≤i≤N,N为正整数。In step 110, the number of accesses under the access matching condition of the i-th segment address is obtained according to the access matching condition of the i-th segment address, wherein the access matching condition of the i-th segment address includes the i-th The address field of the segment address, the address of the i-th segment is an address in the N-segment address, 1 ≤ i ≤ N, and N is a positive integer.
步骤120,根据N段地址中每段地址在对应的访问匹配条件下的访问次数,确定N段地址中的热点地址。Step 120: Determine a hotspot address in the N segment address according to the number of accesses of each segment of the N segment address under the corresponding access matching condition.
具体地,目标时段可以为预设的一段时长,例如,可以为100毫秒,1秒等,本发明实施例不做限定。Specifically, the target time period may be a preset period of time, for example, may be 100 milliseconds, 1 second, etc., which is not limited in the embodiment of the present invention.
其中,在步骤110中,上述N段地址可以为一段需要验视的目标地址分成的N段地址,例如目标地址为[a1,a12],那么该N段地址可以为以下三段[a1,a3]、[a4,a9]、[a10,a12],第i段地址可以为该三段地址中的其中一段。Wherein, in step 110, the N-segment address may be an N-segment address divided into a target address to be inspected, for example, the target address is [a1, a12], then the N-segment address may be the following three segments [a1, a3] ], [a4, a9], [a10, a12], the i-th address can be one of the three-segment addresses.
在步骤110中,第i段地址的访问匹配条件至少包括该第i段地址的具体地址字段;进一步地,该访问匹配条件还可以包括访问源处理器的标识和要访问的目的处理器的标识,以确定发起访问请求的源处理是哪个处理器,以及将要访问的目的处理器是哪个处理器;更进一步地,上述访问匹配条件 还可以包括访问的具体访问类型,例如读操作访问类型、写操作访问类型等。In step 110, the access matching condition of the i-th segment address includes at least the specific address field of the i-th segment address; further, the access matching condition may further include accessing the identifier of the source processor and the identifier of the destination processor to be accessed. To determine which processor the source processing to initiate the access request is, and which processor the destination processor to access is; further, the above access matching condition It can also include specific access types for access, such as read operation access types, write operation access types, and the like.
具体地,在步骤110中,对于确定在第i段地址的访问匹配条件下的访问次数,可以为芯片内部集成的共享访问的监控逻辑电路,对于各个访问部件发起的共享访问进行记录,例如,对于支持缓存(英文:CACHE)一致性的系统,会存在一个类似探听过滤器(英文:SNOOP-FILTER)的模块,该模块可以监控到所有的共享访问,并可以将访问的记录保存至备份状态目录,确定某一次访问的目的存储地址。Specifically, in step 110, for determining the number of accesses under the access matching condition of the i-th segment address, the monitoring logic of the shared access integrated in the chip may be recorded for the shared access initiated by each access component, for example, For systems that support caching (English: CACHE) consistency, there will be a module similar to the snoop filter (English: SNOOP-FILTER), which can monitor all shared accesses and save the accessed records to the backup state. Directory, which determines the destination storage address for a particular visit.
在步骤120中,在操作系统的若干次访问操作中,能够根据每对地址在对应的访问匹配条件下的访问次数,确定N段地址中的热点地址。In step 120, in several access operations of the operating system, the hotspot address in the N-segment address can be determined according to the number of accesses of each pair of addresses under the corresponding access matching condition.
例如,满足第一段地址的访问匹配条件的访问次数为3次,满足第二段地址的访问匹配条件的访问次数为5次,满足第三段地址的访问匹配条件的访问次数为1次,那么其中第二段地址就可能为热点地址。For example, the number of accesses satisfying the access matching condition of the first segment address is 3, the number of accesses satisfying the access matching condition of the second segment address is 5, and the number of accesses satisfying the access matching condition of the third segment address is 1 time. Then the second segment of the address may be a hot address.
应理解,热点地址可以为访问次数最多的一个地址,也可以为访问次数最多的几个地址,本发明实施例不做限定。It should be understood that the hotspot address may be one address with the most number of accesses, or may be the address with the most number of accesses, which is not limited in the embodiment of the present invention.
因此,本发明实施例提供了一种能够确定访问热点地址的方法,能够准确、高效地检测到多核共享变量的访问情况,为系统性能优化提供依据。Therefore, the embodiment of the present invention provides a method for determining an access hotspot address, which can accurately and efficiently detect the access situation of the multi-core shared variable, and provide a basis for system performance optimization.
进一步地,考虑到逻辑资源的节约,该方法只记录某段地址的共享访问次数。因此,系统可以动态配置监控地址,得到各个地址段的共享访问次数,通过数据分析的到精确的共享访问热点。Further, considering the saving of logical resources, the method only records the number of shared accesses of a certain address. Therefore, the system can dynamically configure the monitoring address, obtain the number of shared accesses of each address segment, and analyze the data to the precise shared access hotspot.
可选地,作为本发明一个实施例,根据N段地址中每段地址在对应的访问匹配条件下的访问次数,确定N段地址中的热点地址,包括:将N段地址中每段地址在对应的访问匹配条件下访问次数最多的地址字段,确定为热点地址。Optionally, as an embodiment of the present invention, determining a hotspot address in the N segment address according to the number of accesses of each segment of the N segment address under the corresponding access matching condition, including: The address field with the most access times under the corresponding access matching condition is determined as the hotspot address.
也就是说,在这种可选地实施例中,热点地址为满足访问条件的访问次数最多的地址字段。That is, in this alternative embodiment, the hotspot address is the address field that has the most access times to satisfy the access condition.
可选地,作为本发明一个实施例,第i段地址的访问匹配条件还包括下列中的至少一项:访问第i段地址的源处理器标识和目的处理器标识;访问第i段地址的访问类型。Optionally, as an embodiment of the present invention, the access matching condition of the i-th segment address further includes at least one of the following: accessing the source processor identifier and the destination processor identifier of the i-th segment address; accessing the i-th segment address Access type.
例如,第一段地址[a1:a3]的访问匹配条件为:地址[a1:a3]、访问类型[读]、源处理器标识和目的处理器标识为[处理器1,处理器2];访问次数为2。For example, the access matching condition of the first segment address [a1:a3] is: address [a1: a3], access type [read], source processor identifier, and destination processor identifier [processor 1, processor 2]; The number of visits is 2.
例如,第一段地址[a1:a3]的访问匹配条件为:地址[a1:a3]、访问类型[读]、 源处理器标识和目的处理器标识为[处理器1,处理器3];访问次数为5。For example, the access matching condition of the first segment address [a1:a3] is: address [a1:a3], access type [read], The source processor ID and destination processor ID are [Processor 1, Processor 3]; the number of accesses is 5.
例如,第一段地址[a1:a3]的访问匹配条件为:地址[a1:a3]、访问类型[写]、源处理器标识和目的处理器标识为[处理器1,处理器3];访问次数为3。For example, the access matching condition of the first segment address [a1:a3] is: address [a1: a3], access type [write], source processor identifier, and destination processor identifier [processor 1, processor 3]; The number of visits is 3.
例如,第二段地址[a4:a9]的访问匹配条件为:地址[a4:a9]、访问类型[读]、源处理器标识和目的处理器标识为[处理器1,处理器3];访问次数为6。For example, the access matching condition of the second segment address [a4:a9] is: address [a4:a9], access type [read], source processor identifier, and destination processor identifier [processor 1, processor 3]; The number of visits is 6.
例如,第三段地址[a10:a12]的访问匹配条件为:[a10:a12]、访问类型[写]、源处理器标识和目的处理器标识为[处理器2,处理器3];访问次数为1。For example, the access matching condition of the third segment address [a10:a12] is: [a10:a12], access type [write], source processor identifier, and destination processor identifier [processor 2, processor 3]; access The number of times is 1.
可选地,作为本发明一个实施例,第i段地址的访问匹配条件包括所述第i段地址的源处理器标识和目标处理器标识,所述方法还包括:根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的源处理器和目标处理器。Optionally, as an embodiment of the present invention, the access matching condition of the i-th segment address includes a source processor identifier and a target processor identifier of the i-th segment address, and the method further includes: according to the N-segment address The number of accesses of each segment of the address under the corresponding access matching condition determines the source processor and the target processor with the most access times of the i-th segment address.
可选地,所述第i段地址的访问匹配条件包括所述第i段地址的访问类型,所述方法还包括:根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的访问类型。Optionally, the access matching condition of the i-th segment address includes an access type of the i-th segment address, and the method further includes: accessing each segment of the N-segment address under a corresponding access matching condition. The number of times to determine the access type with the most access times of the i-th segment address.
应理解,确定访问次数最多的访问类型或者确定访问次数最多的源处理器和目标处理器,能够有助于进行后续的系统优化。It should be understood that determining the type of access with the most access times or determining the source and target processors with the most access times can facilitate subsequent system optimization.
因此,本发明实施例提供了一种能够确定访问热点地址的方法,能够准确、高效地、低成本地检测到多核共享变量的访问情况,为系统性能优化提供依据。Therefore, the embodiment of the present invention provides a method for determining an access hotspot address, which can detect the access situation of the multi-core shared variable accurately, efficiently, and at low cost, and provide a basis for system performance optimization.
图2是本发明另一实施例的方法的示意图。如图2所示,该图中包括处理器核core1,核core2,……,核core N,各个核之间相互访问或访问存储器Memory会被SNOOP-FILTER监控,该部件可以监控到所有的共享访问,保存各CACHE LINE的备份状态目录,决定一次访问的目的地址,也就是访问的目的是去哪个CACHE或者是下级存储。2 is a schematic diagram of a method in accordance with another embodiment of the present invention. As shown in FIG. 2, the figure includes a processor core core1, a core core2, ..., a core core N, and each core accesses or accesses a memory. Memory is monitored by SNOOP-FILTER, and the component can monitor all the shares. Access, save the backup status directory of each CACHE LINE, determine the destination address of a visit, that is, the purpose of the access is to which CACHE or subordinate storage.
具体地,系统配置SNOOP FILTER参数,具体地包括访问匹配条件[CORE-source,CORE-dest]+[A1:A2]+[访问类型<读写>]以及时间周期T1,SNOOP FILTER按照配置参数记录一个时间周期内T1内,符合匹配条件的次数。Specifically, the system configures the SNOOP FILTER parameter, specifically including access matching conditions [CORE-source, CORE-dest]+[A1:A2]+[access type <read-write>] and time period T1, and SNOOP FILTER records according to configuration parameters. The number of times that the matching condition is met within T1 in a time period.
进一步地,可以通过修改配置参数,最终以下数据:Further, the following data can be finalized by modifying the configuration parameters:
匹配条件1:共享访问次数NaMatching condition 1: shared access times N a ;
匹配条件2:共享访问次数NbMatching condition 2: number of shared accesses N b ;
匹配条件x:共享访问次数Nx;其中,Na、Nb、Nx均为非负整数。Matching condition x: number of shared accesses N x ; where N a , N b , and N x are all non-negative integers.
进一步地,通过对获取的数据进行统计分析,可以得到:Further, by performing statistical analysis on the acquired data, it can be obtained:
访问次数最多的地址段[Ax-Ay],即为共享数据的热点地址;The most visited address segment [Ax-Ay] is the hotspot address of the shared data;
访问次数最多的[源-目的];[source-destination] with the most visits;
访问次数最多的访问类型。The most visited type of access.
在获取共享数据的热点地址之后,通过反汇编分析软件代码映像,找到共享数据访问的函数,即找到需要优化的点,进行优化,或者,进一步地,通过在CPU内部集成TRACE功能,配置该部件监控当发生[Ax-Ay]时,记录当前的PC指针,堆栈信息,通过软件读出该TRACE信息,即可获取热点数据相关的函数信息,找到优化点。After obtaining the hotspot address of the shared data, find the function that shares the data access by disassembling the analysis software code image, that is, finding the point to be optimized, optimizing, or, further, configuring the part by integrating the TRACE function inside the CPU. When the [Ax-Ay] occurs, the current PC pointer and stack information are recorded. The TRACE information is read by the software, and the function information related to the hotspot data can be obtained to find an optimization point.
因此,本发明实施例提供了一种能够确定访问热点地址的方法,能够准确、高效地检测到多核共享变量的访问情况,为系统性能优化提供依据。Therefore, the embodiment of the present invention provides a method for determining an access hotspot address, which can accurately and efficiently detect the access situation of the multi-core shared variable, and provide a basis for system performance optimization.
图1和图2详细描述了本发明实施例的方法的流程,下面结合图3和图4介绍本发明实施例的设备和装置。1 and 2 illustrate in detail the flow of the method of the embodiment of the present invention, and the apparatus and apparatus of the embodiment of the present invention are described below with reference to FIGS. 3 and 4.
图3是本发明一个实施例的网络设备300的示意性结构图。应理解,网络设备300能够执行图1或图2的方法中的各个步骤,为了避免重复,此处不再详述。网络设备200包括:FIG. 3 is a schematic structural diagram of a network device 300 according to an embodiment of the present invention. It should be understood that the network device 300 is capable of performing the various steps in the method of FIG. 1 or FIG. 2, and to avoid repetition, it will not be described in detail herein. Network device 200 includes:
获取单元310,所述获取单元310用于在目标时段内,根据第i段地址的访问匹配条件,获取在所述第i段地址的访问匹配条件下的访问次数,其中,所述第i段地址的访问匹配条件包括所述第i段地址的地址字段,所述第i段地址为N段地址中的一段地址,1≤i≤N,N为正整数。An obtaining unit 310, configured to acquire, according to an access matching condition of the i-th segment address, an access number under an access matching condition of the i-th segment address, where the i-th segment The access matching condition of the address includes an address field of the i-th segment address, and the i-th segment address is an segment of the N-segment address, 1≤i≤N, and N is a positive integer.
确定单元320,所述确定单元320用于根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述N段地址中的热点地址。The determining unit 320 is configured to determine a hotspot address in the N-segment address according to the number of accesses of each of the N-segment addresses under the corresponding access matching condition.
因此,本发明实施例提供了一种能够确定访问热点地址的方法,能够准确、高效地检测到多核共享变量的访问情况,为系统性能优化提供依据。Therefore, the embodiment of the present invention provides a method for determining an access hotspot address, which can accurately and efficiently detect the access situation of the multi-core shared variable, and provide a basis for system performance optimization.
可选地,作为本发明一个实施例,所述确定单元320具体用于:将所述N段地址中每段地址在对应的访问匹配条件下访问次数最多的地址字段,确定为热点地址。Optionally, as an embodiment of the present invention, the determining unit 320 is specifically configured to: determine, as a hotspot address, an address field in which each of the N segments of addresses has the most access times under the corresponding access matching condition.
可选地,作为本发明一个实施例,所述第i段地址的访问匹配条件还包括下列中的至少一项:访问所述第i段地址的源处理器标识和目的处理器标 识;访问所述第i段地址的访问类型。Optionally, as an embodiment of the present invention, the access matching condition of the i-th segment address further includes at least one of the following: a source processor identifier and a destination processor identifier that access the i-th segment address Knowledge; access to the access type of the i-th segment address.
可选地,作为本发明一个实施例,所述第i段地址的访问匹配条件包括所述第i段地址的源处理器标识和目标处理器标识,所述确定单元320还用于:根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的源处理器和目标处理器。Optionally, as an embodiment of the present invention, the access matching condition of the i-th segment address includes a source processor identifier and a target processor identifier of the i-th segment address, and the determining unit 320 is further configured to: The number of accesses of each of the N segments of addresses in the corresponding access matching condition is determined, and the source processor and the target processor with the most access times of the i th segment address are determined.
可选地,作为本发明一个实施例,所述第i段地址的访问匹配条件包括所述第i段地址的访问类型,所述确定单元320还用于:根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的访问类型。Optionally, as an embodiment of the present invention, the access matching condition of the ith segment address includes an access type of the ith segment address, and the determining unit 320 is further configured to: according to each segment of the N segment address The number of accesses of the address under the corresponding access matching condition determines the access type with the most access times of the i-th segment address.
图4是本发明一个实施例的装置400的示意性结构图。图4示出了本发明实施例提供的装置400。应理解,装置400能够执行图1或图2的方法中的各个步骤,为了避免重复,此处不再详述。装置400包括:Figure 4 is a schematic block diagram of an apparatus 400 in accordance with one embodiment of the present invention. FIG. 4 shows an apparatus 400 provided by an embodiment of the present invention. It should be understood that apparatus 400 is capable of performing the various steps of the method of FIG. 1 or FIG. 2, and to avoid repetition, details are not described herein. Apparatus 400 includes:
存储器410,用于存储程序;a memory 410, configured to store a program;
收发器420,用于和其他设备进行通信;The transceiver 420 is configured to communicate with other devices;
处理器430,用于执行存储器410中的程序,处理器430与所述存储器410和所述收发器420分别相连,用于执行所述存储器410存储的所述指令,以在执行所述指令时执行如下步骤:a processor 430, configured to execute a program in the memory 410, the processor 430 is coupled to the memory 410 and the transceiver 420, respectively, for executing the instructions stored by the memory 410 to execute the instruction Perform the following steps:
所述处理器430用于通过收发器420在目标时段内,根据第i段地址的访问匹配条件,获取在所述第i段地址的访问匹配条件下的访问次数,其中,所述第i段地址的访问匹配条件包括所述第i段地址的地址字段,所述第i段地址为N段地址中的一段地址,1≤i≤N,N为正整数;根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述N段地址中的热点地址。The processor 430 is configured to obtain, by the transceiver 420, the number of accesses under the access matching condition of the i-th segment address according to an access matching condition of the i-th segment address in the target time period, where the i-th segment The access matching condition of the address includes an address field of the i-th segment address, the i-th segment address is an segment of the N-segment address, 1≤i≤N, and N is a positive integer; according to each of the N-segment addresses The number of accesses of the segment address under the corresponding access matching condition determines the hotspot address in the N segment address.
因此,本发明实施例提供了一种能够确定访问热点地址的方法,能够准确、高效地检测到多核共享变量的访问情况,为系统性能优化提供依据。Therefore, the embodiment of the present invention provides a method for determining an access hotspot address, which can accurately and efficiently detect the access situation of the multi-core shared variable, and provide a basis for system performance optimization.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的器件或单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。 Those of ordinary skill in the art will appreciate that the devices or elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和器件或单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the device or the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述器件的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个器件或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或器件的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the device is only a logical function division, and the actual implementation may have another division manner, for example, multiple devices or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or device, and may be in an electrical, mechanical or other form.
另外,在本发明各个实施例中的各功能器件可以集成在一个处理器件中,也可以是各个器件单独物理存在,也可以两个或两个以上器件集成在一个器件中。In addition, each functional device in various embodiments of the present invention may be integrated in one processing device, or each device may exist physically separately, or two or more devices may be integrated in one device.
所述功能如果以软件功能器件的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional devices and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (10)

  1. 一种确定热点地址的方法,所述方法应用于多核处理器系统,其特征在于,包括:A method for determining a hotspot address, the method being applied to a multi-core processor system, comprising:
    在目标时段内,根据第i段地址的访问匹配条件,获取在所述第i段地址的访问匹配条件下的访问次数,其中,所述第i段地址的访问匹配条件包括所述第i段地址的地址字段,所述第i段地址为N段地址中的一段地址,1≤i≤N,N为正整数;Obtaining, in the target time period, the number of accesses under the access matching condition of the i-th segment address according to the access matching condition of the i-th segment address, wherein the access matching condition of the i-th segment address includes the i-th segment Address field of the address, the address of the i-th segment is an address in the N-segment address, 1≤i≤N, and N is a positive integer;
    根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述N段地址中的热点地址。Determining a hotspot address in the N-segment address according to the number of accesses of each of the N-segment addresses under the corresponding access matching condition.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述N段地址中的热点地址,包括:The method according to claim 1, wherein the determining the hotspot address in the N segment address according to the number of accesses of each of the N segments of addresses in the corresponding access matching condition comprises:
    将所述N段地址中每段地址在对应的访问匹配条件下访问次数最多的地址字段,确定为热点地址。The address field with the most access times of each of the N segments of addresses in the corresponding access matching condition is determined as a hotspot address.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第i段地址的访问匹配条件还包括下列中的至少一项:The method according to claim 1 or 2, wherein the access matching condition of the i-th segment address further comprises at least one of the following:
    访问所述第i段地址的源处理器标识和目的处理器标识;Accessing the source processor identifier and the destination processor identifier of the i-th segment address;
    访问所述第i段地址的访问类型。Access the access type of the i-th segment address.
  4. 根据权利要求3所述的方法,其特征在于,所述第i段地址的访问匹配条件包括所述第i段地址的源处理器标识和目标处理器标识,所述方法还包括:The method according to claim 3, wherein the access matching condition of the i-th segment address comprises a source processor identifier and a target processor identifier of the i-th segment address, the method further comprising:
    根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的源处理器和目标处理器。Determining, according to the number of accesses of each of the N segments of addresses under the corresponding access matching condition, the source processor and the target processor having the most access times of the i th segment address.
  5. 根据权利要求3或4所述的方法,其特征在于,所述第i段地址的访问匹配条件包括所述第i段地址的访问类型,所述方法还包括:The method according to claim 3 or 4, wherein the access matching condition of the i-th segment address comprises an access type of the i-th segment address, the method further comprising:
    根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的访问类型。And determining, according to the number of accesses of each of the N segments of addresses in the corresponding access matching condition, the access type with the most access times of the i th segment address.
  6. 一种网络设备,其特征在于,包括:A network device, comprising:
    获取单元,所述获取单元用于在目标时段内,根据第i段地址的访问匹配条件,获取在所述第i段地址的访问匹配条件下的访问次数,其中,所述第i段地址的访问匹配条件包括所述第i段地址的地址字段,所述第i段地 址为N段地址中的一段地址,1≤i≤N,N为正整数;An obtaining unit, configured to acquire, according to an access matching condition of the i-th segment address, an access number under an access matching condition of the i-th segment address, where the i-th segment address is The access matching condition includes an address field of the i-th segment address, the i-th segment The address is an address in the N segment address, 1≤i≤N, and N is a positive integer;
    确定单元,所述确定单元用于根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述N段地址中的热点地址。a determining unit, configured to determine a hotspot address in the N segment address according to the number of accesses of each of the N segments of addresses under a corresponding access matching condition.
  7. 根据权利要求6所述的网络设备,其特征在于,所述确定单元具体用于:The network device according to claim 6, wherein the determining unit is specifically configured to:
    将所述N段地址中每段地址在对应的访问匹配条件下访问次数最多的地址字段,确定为热点地址。The address field with the most access times of each of the N segments of addresses in the corresponding access matching condition is determined as a hotspot address.
  8. 根据权利要求6或7所述的网络设备,其特征在于,所述第i段地址的访问匹配条件还包括下列中的至少一项:The network device according to claim 6 or 7, wherein the access matching condition of the i-th segment address further comprises at least one of the following:
    访问所述第i段地址的源处理器标识和目的处理器标识;Accessing the source processor identifier and the destination processor identifier of the i-th segment address;
    访问所述第i段地址的访问类型。Access the access type of the i-th segment address.
  9. 根据权利要求7或8所述的网络设备,其特征在于,所述第i段地址的访问匹配条件包括所述第i段地址的源处理器标识和目标处理器标识,所述确定单元还用于:The network device according to claim 7 or 8, wherein the access matching condition of the i-th segment address comprises a source processor identifier and a target processor identifier of the i-th segment address, and the determining unit further uses to:
    根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的源处理器和目标处理器。Determining, according to the number of accesses of each of the N segments of addresses under the corresponding access matching condition, the source processor and the target processor having the most access times of the i th segment address.
  10. 根据权利要求8或9所述的网络设备,其特征在于,所述第i段地址的访问匹配条件包括所述第i段地址的访问类型,所述确定单元还用于:The network device according to claim 8 or 9, wherein the access matching condition of the i-th segment address includes an access type of the i-th segment address, and the determining unit is further configured to:
    根据所述N段地址中每段地址在对应的访问匹配条件下的访问次数,确定所述第i段地址访问次数最多的访问类型。 And determining, according to the number of accesses of each of the N segments of addresses in the corresponding access matching condition, the access type with the most access times of the i th segment address.
PCT/CN2016/105656 2016-11-14 2016-11-14 Method for determining hotspot address, and device using same WO2018086101A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680090767.5A CN109923846B (en) 2016-11-14 2016-11-14 Method and device for determining hot spot address
PCT/CN2016/105656 WO2018086101A1 (en) 2016-11-14 2016-11-14 Method for determining hotspot address, and device using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/105656 WO2018086101A1 (en) 2016-11-14 2016-11-14 Method for determining hotspot address, and device using same

Publications (1)

Publication Number Publication Date
WO2018086101A1 true WO2018086101A1 (en) 2018-05-17

Family

ID=62110027

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105656 WO2018086101A1 (en) 2016-11-14 2016-11-14 Method for determining hotspot address, and device using same

Country Status (2)

Country Link
CN (1) CN109923846B (en)
WO (1) WO2018086101A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081580A (en) * 2011-02-24 2011-06-01 华中科技大学 Magnetic disc data protection method
CN102984234A (en) * 2012-11-19 2013-03-20 北京奇虎科技有限公司 Communication system and access control method of network content
CN103338249A (en) * 2013-06-26 2013-10-02 优视科技有限公司 Cache method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004171177A (en) * 2002-11-19 2004-06-17 Renesas Technology Corp Cache system and cache memory controller
EP2186276B1 (en) * 2007-08-21 2013-10-02 Redknee Inc. Method and system for call routing
CN102137157A (en) * 2011-02-28 2011-07-27 浪潮(北京)电子信息产业有限公司 Cloud memory system and implementation method thereof
EP2856395A4 (en) * 2012-05-29 2015-11-18 Ophio Software Inc Systems and methods involving features of sales force processing and/or productivity
CN103870435B (en) * 2014-03-12 2017-01-18 华为技术有限公司 server and data access method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081580A (en) * 2011-02-24 2011-06-01 华中科技大学 Magnetic disc data protection method
CN102984234A (en) * 2012-11-19 2013-03-20 北京奇虎科技有限公司 Communication system and access control method of network content
CN103338249A (en) * 2013-06-26 2013-10-02 优视科技有限公司 Cache method and device

Also Published As

Publication number Publication date
CN109923846A (en) 2019-06-21
CN109923846B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
US10031671B2 (en) Method, apparatus, and system for calculating identification threshold to distinguish cold data and hot data
US10846160B2 (en) System and method for remote system recovery
US9245113B2 (en) Out of band vital product data collection
RU2624563C2 (en) Operational performance control of the solid-state storages
US9405575B2 (en) Use of multi-thread hardware for efficient sampling
US10534696B1 (en) Systems and methods for improving comparative performance test results of mobile applications
CN111046072A (en) Data query method, system, heterogeneous computing acceleration platform and storage medium
CN107076797B (en) Testing semiconductor memory power consumption based on executed access commands
US11868631B2 (en) System startup method and related device
US9338057B2 (en) Techniques for searching data associated with devices in a heterogeneous data center
US20170277439A1 (en) Techniques for Path Optimization in Storage Networks
CN114580344A (en) Test excitation generation method, verification system and related equipment
US9183150B2 (en) Memory sharing by processors
US10404676B2 (en) Method and apparatus to coordinate and authenticate requests for data
US20230384979A1 (en) Data processing method, apparatus, and system
CN110727664A (en) Method and device for executing target operation on public cloud data
US20230222080A1 (en) System and method for distributed subscription management
US20170199819A1 (en) Cache Directory Processing Method for Multi-Core Processor System, and Directory Controller
US11397711B1 (en) Proxy-based database scaling
CN103500108A (en) System memory access method, node processor and multi-processor system
US9396145B1 (en) In-chip bus tracer
WO2018086101A1 (en) Method for determining hotspot address, and device using same
CN116089124A (en) Communication method, device and medium of simulation system
US20220334906A1 (en) Multimodal user experience degradation detection
CN114936135A (en) Abnormity detection method and device and readable 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: 16921181

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

Country of ref document: EP

Kind code of ref document: A1