CN103201723A - Memory configuration method and memory configuration management server - Google Patents

Memory configuration method and memory configuration management server Download PDF

Info

Publication number
CN103201723A
CN103201723A CN2012800023996A CN201280002399A CN103201723A CN 103201723 A CN103201723 A CN 103201723A CN 2012800023996 A CN2012800023996 A CN 2012800023996A CN 201280002399 A CN201280002399 A CN 201280002399A CN 103201723 A CN103201723 A CN 103201723A
Authority
CN
China
Prior art keywords
memory configurations
scheme
configurations scheme
memory
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012800023996A
Other languages
Chinese (zh)
Other versions
CN103201723B (en
Inventor
蔡幼明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103201723A publication Critical patent/CN103201723A/en
Application granted granted Critical
Publication of CN103201723B publication Critical patent/CN103201723B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment

Abstract

The present invention provides a memory configuration method and a memory configuration management server. The method comprises receiving a memory configuration scheme test result acquisition request carrying identification information of a hardware system to be detected from a client side; according to the memory configuration scheme test result acquisition request, acquiring hardware configuration information of the hardware system to be detected, and according to CPU configuration information contained in the hardware configuration information, acquiring at least one memory configuration scheme corresponding to the current CPU configuration and test results of every memory configuration scheme in the at least one meory configuration schemes from the memory configuration baseline library; and transmitting the memory configuration scheme test result acquisition request to the client side to aquire response. The memory configuration method and the memory configuration management server can provide visualized memory configuration schemes.

Description

The method and the memory configurations management server that are used for allocate memory
Technical field
The present invention relates to electronic information field, and more specifically, relate to a kind of method for allocate memory and memory configurations management server.
Background technology
Along with development of computer, the different configurations of different model internal memory and same model are increasing to the influence of system performance, therefore, how the internal memory of different model disposes, how the internal memory of same model disposes, and can make that system performance the best all is the problem that the user need face.The manufacturer server of main flow has the guidance of memory configurations aspect by the technical support website of product at present, but does not embody concrete performance parameter, and is directly perceived inadequately.
Summary of the invention
The embodiment of the invention provides a kind of method for allocate memory and memory configurations management server, can provide memory configurations scheme intuitively.
First aspect provides a kind of method for allocate memory, and this method comprises: the memory configurations scheme test result that receives the client transmission is obtained request;
Obtain the identification information of the hardware system to be measured that carries in the request according to described memory configurations scheme test result, obtain the hardware configuration information of described hardware system to be measured, and according to the configuration information that the current central processing unit CPU in the described hardware configuration information disposes, from the memory configurations baseline library, obtain at least one memory configurations scheme corresponding with described current C PU configuration and the test result of each the memory configurations scheme in described at least one memory configurations scheme;
Send memory configurations scheme test result to described client and obtain response, described memory configurations scheme test result is obtained the test result that response comprises each the memory configurations scheme in described at least one memory configurations scheme and described at least one memory configurations scheme.
In conjunction with first aspect, in first kind of first aspect possible implementation, this method also comprises:
Receive the current memory configurations scheme retrieval request that described client sends;
According to the current memory configurations scheme in the described hardware configuration information, from disposing with described current C PU whether retrieval exists the memory configurations scheme identical with described current memory configurations scheme corresponding described at least one memory configurations scheme;
If when having the memory configurations scheme identical with described current memory configurations scheme in described at least one memory configurations scheme, send the first current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described first current memory configurations scheme retrieval response;
If when not having the memory configurations scheme identical with described current memory configurations scheme in described at least one memory configurations scheme, carry out test operation, to obtain the test result of described current memory configurations scheme, and send second current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described second current memory configurations scheme retrieval response.
In conjunction with first kind of first aspect possible implementation, in second kind of first aspect possible implementation, described execution test operation to obtain the test result of described current memory configurations scheme, comprising:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains; Or comprise:
The register of the power module by reading described hardware system to be measured obtains the system power dissipation of described current memory configurations scheme; Or comprise:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains, and the register of the power module by reading described hardware system to be measured, obtain the system power dissipation of described current memory configurations scheme, and according to the internal memory performance of described current memory configurations scheme and the system power dissipation of described current memory configurations scheme, obtain the energy loss-rate of described current memory configurations scheme.
In conjunction with in second kind of possible implementation of first kind of first aspect, first aspect possible implementation and first aspect any, in the third possible implementation of first aspect, described method also comprises:
The best memory configurations scheme that receives described client transmission is obtained request;
According to the test result of each the memory configurations scheme in corresponding described at least one memory configurations of described current C PU configuration, from described at least one memory configurations scheme, obtain best memory configurations scheme set;
When the current memory configurations scheme in the described hardware configuration information belongs to described best memory configurations scheme set, send best memory configurations scheme to described client and obtain response, described best memory configurations scheme is obtained response and is used for indicating described current memory configurations scheme to belong to described best memory configurations scheme set to described client.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, when described current memory configurations scheme belonged to described best memory configurations scheme set, described method also comprised:
Send the first hardware system memory configurations demand to be measured to described client and obtain request;
The first hardware system memory configurations demand to be measured that receives described client transmission is obtained response;
Obtain the first memory configurations demand of the described hardware system to be measured that comprises in the response according to the described first hardware system memory configurations demand to be measured, determine whether described current memory configurations scheme meets the described first memory configurations demand;
When described current memory configurations scheme does not meet the described first memory configurations demand, determine the memory configurations scheme of the described first memory configurations demand correspondence, and send the first memory configurations demand scheme to described client and obtain response, the described first memory configurations demand scheme is obtained all or part of memory configurations scheme that carries the described first memory configurations demand correspondence in the response.
In conjunction with the third possible implementation of first aspect or the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, described method also comprises:
When the current memory configurations scheme in described hardware configuration information does not belong to described best memory configurations scheme set, send the second hardware system memory configurations demand to be measured to described client and obtain request;
The second hardware system memory configurations demand to be measured that receives described client transmission is obtained response;
Obtain the second memory configurations demand that responds included described hardware system to be measured according to the described second hardware system memory configurations demand to be measured, obtain all or part of memory configurations scheme of the described second memory configurations demand correspondence;
Send the second memory configurations demand scheme to described client and obtain response, the described second memory configurations demand scheme is obtained all or part of memory configurations scheme that response carries the described second memory configurations demand correspondence.
In conjunction with first kind of first aspect possible implementation, in the 6th kind of possible implementation of first aspect, described method also comprises:
At described execution test operation, obtain after the test result of described current memory configurations scheme, the test result of described current memory configurations scheme is stored to described memory configurations baseline library.
In conjunction with first aspect, in the 5th kind of possible implementation of the third possible implementation of first kind of possible implementation of first aspect, second kind of possible implementation of first aspect, first aspect, the 4th kind of possible implementation of first aspect, first aspect, the 6th kind of possible implementation of first aspect any, in the 7th kind of possible implementation of first aspect, described test result comprise internal memory performance, system power dissipation and can loss-rate at least a.
Second aspect provides a kind of memory configurations management server, and this memory configurations management server comprises: receiving element, and the memory configurations scheme test result that is used for the transmission of reception client is obtained request;
Acquiring unit, the identification information that is used for the hardware system to be measured that the request of obtaining is carried according to described memory configurations scheme test result, obtain the hardware configuration information of described hardware system to be measured, and according to the configuration information that the current central processing unit CPU in the described hardware configuration information disposes, from the memory configurations baseline library, obtain at least one memory configurations scheme corresponding with described current C PU configuration and the test result of each the memory configurations scheme in described at least one memory configurations scheme;
Transmitting element, be used for sending memory configurations scheme test result to described client and obtain response, described memory configurations scheme test result is obtained the test result that response comprises each the memory configurations scheme in described at least one memory configurations scheme and described at least one memory configurations scheme.
In conjunction with second aspect, in first kind of second aspect possible implementation, described receiving element also is used for receiving the current memory configurations scheme retrieval request that described client sends;
Described memory configurations management server also comprises:
Retrieval unit, be used for after described receiving element receives described current memory configurations scheme retrieval request, according to the current memory configurations scheme in the described hardware configuration information, from described at least one memory configurations scheme of described current C PU configuration retrieval whether have the memory configurations scheme identical with described current memory configurations scheme;
Described transmitting element also is used for:
If when having the memory configurations scheme identical with described current memory configurations scheme in described at least one memory configurations scheme, send the first current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described first current memory configurations scheme retrieval response;
Described memory configurations management server also comprises:
Test cell, if when not having the memory configurations scheme identical with described current memory configurations scheme for described at least one memory configurations scheme, carry out test operation, to obtain the test result of described current memory configurations scheme, and described transmitting element, also be used for sending the second current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described second current memory configurations scheme retrieval response.
In conjunction with first kind of second aspect possible implementation, in second kind of second aspect possible implementation, described test cell specifically is used for:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains; Or specifically be used for:
The register of the power module by reading described hardware system to be measured obtains the system power dissipation of described current memory configurations scheme; Or specifically be used for:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains, and the register of the power module by reading described hardware system to be measured, obtain the system power dissipation of described current memory configurations scheme, and according to the internal memory performance of described current memory configurations scheme and the system power dissipation of described current memory configurations scheme, obtain the energy loss-rate of described current memory configurations scheme.
In conjunction with in second kind of possible implementation of first kind of second aspect, second aspect possible implementation and second aspect any, in the third possible implementation of second aspect, described receiving element, the best memory configurations scheme that also is used for the described client transmission of reception is obtained request;
Described memory configurations management server also comprises:
First determining unit, be used for receiving after described best memory configurations scheme obtains request at described receiving element, according to the test result of each the memory configurations scheme in corresponding described at least one memory configurations of described current C PU configuration, from described at least one memory configurations scheme, determine best memory configurations scheme set;
Second determining unit is used for determining whether described current memory configurations scheme belongs to described best memory configurations scheme set;
Described transmitting element, also be used for when described current memory configurations scheme belongs to described best memory configurations scheme set, send best memory configurations scheme to described client and obtain response, described best memory configurations scheme is obtained response and is used for indicating described current memory configurations scheme to belong to described best memory configurations scheme set to described client.
The third possible implementation in conjunction with second aspect, in the 4th kind of possible implementation of second aspect, when the current memory configurations scheme in described hardware configuration information belonged to described best memory configurations scheme set, described transmitting element also was used for sending the first hardware system memory configurations demand to be measured to described client and obtains request;
Described receiving element, the first hardware system memory configurations demand to be measured that also is used for the described client transmission of reception is obtained response; Described memory configurations management server also comprises:
The 3rd determining unit is used for obtaining according to the described first hardware system memory configurations demand to be measured the first memory configurations demand of the described hardware system to be measured that response comprises, determines whether described current memory configurations scheme meets the described first memory configurations demand;
The 4th determining unit, be used for when described current memory configurations scheme does not meet the memory configurations scheme of memory configurations demand correspondence of described hardware system to be measured, determine the memory configurations scheme of the described first memory configurations demand correspondence, and send the first memory configurations demand scheme to described client and obtain response, the described first memory configurations demand scheme is obtained all or part of memory configurations scheme that carries the described first memory configurations demand correspondence in the response.
In conjunction with the third possible implementation of second aspect or the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect,
Described transmitting element also is used for sending the second hardware system memory configurations demand to be measured to described client and obtaining request when described current memory configurations scheme does not belong to described best memory configurations scheme set;
Described receiving element, the second hardware system memory configurations demand to be measured that also is used for the described client transmission of reception is obtained response;
Described memory configurations management server also comprises:
The 5th determining unit is used for obtaining the second memory configurations demand that responds included described hardware system to be measured according to the described second hardware system memory configurations demand to be measured, obtains all or part of memory configurations scheme of the described second memory configurations demand correspondence;
Described transmitting element also is used for sending the second memory configurations demand scheme to described client and obtains response, and the described second memory configurations demand scheme is obtained all or part of memory configurations scheme that response carries the described second memory configurations demand correspondence.
In conjunction with first kind of second aspect possible implementation, in the 6th kind of possible implementation of second aspect, described memory configurations management server also comprises:
Storage unit is used for carrying out test operation at described test cell, after the test result of obtaining described current memory configurations scheme, the test result of described current memory configurations scheme is stored to described memory configurations baseline library.
In conjunction with second aspect, in the 5th kind of possible implementation of the third possible implementation of first kind of possible implementation of second aspect, second kind of possible implementation of second aspect, second aspect, the 4th kind of possible implementation of second aspect, second aspect, the 6th kind of possible implementation of second aspect any, in the 7th kind of possible implementation of second aspect, described test result comprise internal memory performance, system power dissipation and can loss-rate at least a.
Based on above technical scheme, the method and the memory configurations management server that are used for allocate memory of the embodiment of the invention, at least one memory configurations scheme of current C PU configuration by from the memory configurations baseline library, obtaining and send to client hardware system to be measured and the test result of each the memory configurations scheme in this at least one memory configurations scheme, can provide memory configurations scheme intuitively to the user, make memory configurations become simple.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the indicative flowchart according to the method that is used for allocate memory of the embodiment of the invention.
Fig. 2 is the indicative flowchart that is used for the method for allocate memory according to another embodiment of the present invention.
Fig. 3 is the indicative flowchart that is used for the method for allocate memory according to another embodiment of the present invention.
Fig. 4 is the schematic block diagram according to the memory configurations management server of the embodiment of the invention.
Fig. 5 is the schematic block diagram of memory configurations management server according to another embodiment of the present invention.
Fig. 6 is the schematic block diagram of memory configurations management server according to another embodiment of the present invention.
Fig. 7 is the schematic block diagram of memory configurations management server according to another embodiment of the present invention.
Fig. 8 is the schematic block diagram of memory configurations management server according to another embodiment of the present invention.
Fig. 9 is the schematic block diagram of memory configurations management server according to another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is the indicative flowchart according to the method 100 that is used for allocate memory of the embodiment of the invention.As shown in Figure 1, this method 100 comprises:
S110, the memory configurations scheme test result that receives the client transmission is obtained request;
S120, obtain the identification information of the hardware system to be measured that carries in the request according to this memory configurations scheme test result, obtain the hardware configuration information of this hardware system to be measured, and according to (the Center Processing unit of the current CPU (central processing unit) in this hardware configuration information, abbreviation " CPU ") configuration information of configuration obtains at least one corresponding memory configurations scheme of this current CPU configuration and the test result of each the memory configurations scheme in this at least one memory configurations scheme from the memory configurations baseline library;
S130, send memory configurations scheme test result to this client and obtain response, this memory configurations scheme test result is obtained response and is comprised that deserving preceding CPU disposes at least one corresponding memory configurations scheme and the test result of each the memory configurations scheme in this at least one memory configurations scheme.
Specifically, when the user need optimize the memory configurations of hardware system to be measured, can send memory configurations scheme test result to the internal memory configuration management server by client and obtain request, wherein, this memory configurations scheme test result is obtained the identification information that can carry hardware system to be measured in the request, for example, the IP address, ID etc., and the request of obtaining of this memory configurations scheme test result is used for to the request of internal memory configuration management server under the current C PU of hardware system to be measured, the memory configurations scheme that can adopt and the test result of each memory configurations scheme.Wherein, client can send this memory configurations scheme test result to the internal memory configuration management server by the web interface and obtain request; The memory configurations management server is after this memory configurations scheme test result that receives the client transmission is obtained request, can obtain definite this hardware system to be measured of identification information of this hardware system to be measured that carries in the request according to this memory configurations test result, and obtain the hardware configuration information of this hardware system to be measured, for example, the memory configurations management server can pass through showing veneer Management Controller (Baseboard Management Controller, be called for short " BMC ") obtain the hardware configuration information of hardware system to be measured, BMC can pass through mainboard twin wire universal serial bus (the Inter-Integrated Circuit of hardware system to be measured according to the indication of memory configurations management server, be called for short " I2C ") read processor information read-only memory (the Processor Information Read-Only Memory of CPU, abbreviation " PIROM ") obtains the configuration information that current C PU disposes, for example, the model of current C PU and/or quantity, and can read dual inline type memory module (Dual-Inline-Memory-Modules by mainboard I2C bus, be called for short " DIMM) serial of bar detects (Serial Presence Detect; be called for short " SPD ") data and obtains current memory configurations information (in the embodiment of the invention, also can be referred to as the memory configurations scheme); After obtaining the hardware configuration information of this hardware system to be measured, the memory configurations management server can obtain at least one memory configurations scheme corresponding with this current CPU configuration and the corresponding test result of each the memory configurations scheme in this at least one memory configurations scheme from the memory configurations baseline library.After the current C PU that gets access to hardware system to be measured disposes the test result of corresponding memory configurations scheme and each memory configurations scheme, the memory configurations management server can send memory configurations scheme test result to this client and obtain response, and this memory configurations scheme test result is obtained response and comprised at least one memory configurations scheme corresponding with this current CPU configuration and the test result of each the memory configurations scheme in this at least one memory configurations scheme.
Therefore, the method that is used for allocate memory of the embodiment of the invention, by from the memory configurations baseline library, obtaining and sending at least one memory configurations scheme corresponding with the current C PU configuration of hardware system to be measured and each the memory configurations scheme test result in this at least one memory configurations scheme to client, can provide memory configurations scheme intuitively to the user, make memory configurations become simple.
Should understand, in embodiments of the present invention, obtain the hardware configuration information of hardware system to be measured except memory configurations management server indication BMC, also can be obtained the hardware configuration information of hardware system to be measured by client computer indication BMC, and the memory configurations management server can receive after memory configurations scheme test result obtains request, detects the hardware configuration information of the hardware system to be measured that BMC obtains.
In embodiments of the present invention, the memory configurations baseline database can be directly installed in the memory configurations management server, can be installed in another server different with this memory configurations management server yet, should decide as the case may be, the embodiment of the invention does not limit this.
In embodiments of the present invention, the memory configurations baseline library can comprise the memory configurations scheme of various model C PU correspondences, and the memory configurations scheme of each model C PU correspondence can comprise the memory configurations scheme of various quantity CPU correspondences under this kind model.
In embodiments of the present invention, the memory configurations scheme can comprise main memory access, memory size size, clocked memory, RANK type (referring to be connected on the internal memory quantity of the dynamic RAM of given data bus pin pin), Double Data Rate synchronous DRAM (Double Data Rate is called for short " DDR ") type etc.
In embodiments of the present invention, test result can comprise internal memory performance, system power dissipation and can loss-rate at least a, and can loss-rate refer to the ratio of internal memory performance and system power dissipation, internal memory performance can be bandwidth and time-delay.
In embodiments of the present invention, the test result of the memory configurations scheme that comprises in the memory configurations baseline library can obtain by test, for example, by different testing tools, instrument as stream(test bandwidth), the instrument of lmbench(test time-delay) etc., bandwidth and time-delay to hardware system to be measured under different memory configurations schemes are tested, BMC obtains system power dissipation by the power module register that the I2C bus reads hardware system to be measured, calculates Energy Efficiency Ratio by performance and power consumption ratio.
In embodiments of the present invention, except S110, S120 and S130, this method 100 can also comprise:
Receive the current memory configurations scheme retrieval request that this client sends;
According to the current memory configurations scheme in this hardware configuration information, from disposing with the current C PU of hardware system to be measured whether retrieval exists the memory configurations scheme identical with this current memory configurations scheme this corresponding at least one memory configurations scheme;
If when having the memory configurations scheme identical with this current memory configurations scheme in this at least one memory configurations scheme, send the first current memory configurations scheme retrieval response to this client, carry the test result of this current memory configurations scheme in this first current memory configurations scheme retrieval response;
If when not having the memory configurations scheme identical with this current memory configurations scheme in this at least one memory configurations scheme, carry out test operation, to obtain the test result of this current memory configurations scheme, and send second current memory configurations scheme retrieval response to this client, carry the test result of this current memory configurations scheme in this second current memory configurations scheme retrieval response.
Specifically, when the user has got access to the test result of each memory configurations scheme at least one corresponding memory configurations scheme of the current C PU configuration of hardware system to be measured and at least one memory configurations scheme from the memory configurations management server, when needing to understand the test result of current memory configurations scheme, can send current memory configurations scheme retrieval request to client, the memory configurations management server is after the current memory configurations scheme retrieval request that receives the client transmission, can be according to the information of carrying in the current memory configurations scheme retrieval request, for example, the session(session) ID, the perhaps identification information of hardware system to be measured, know the information of the current memory configurations scheme that needs retrieval, and according to this current memory configurations scheme, this at least one memory configurations scheme corresponding with the current C PU configuration of hardware system to be measured mated, and determines that the current C PU of this hardware system to be measured disposes the current memory configurations scheme whether this corresponding at least one memory configurations scheme comprises this hardware system to be measured.
If comprise, then obtain the test result of this memory configurations scheme, and the test result that responds this memory configurations scheme by current memory configurations scheme retrieval is sent to client.Should understand, when this corresponding at least one memory configurations scheme of the current C PU of this hardware system to be measured configuration comprises the current memory configurations scheme of this hardware system to be measured, though the test result of current memory configurations scheme is obtained response by memory configurations scheme test result and is sent to client, the test result of this memory configurations scheme is sent to client by current memory configurations scheme retrieval response again, can be so that the user under the situation of not understanding current memory configurations scheme, gets access to the test result of current memory configurations scheme intuitively.Certainly, the memory configurations management server also can send the current memory configurations scheme retrieval response that includes only current memory configurations scheme and do not comprise the test result of this memory configurations scheme to client, and the embodiment of the invention does not limit this.
If do not comprise, then carry out test operation, to obtain the test result of this current memory configurations scheme, and send second current memory configurations scheme retrieval response to this client, and will carry out the test result that test operation obtains and be sent to client by the test result that current memory configurations scheme retrieval responds this memory configurations scheme.
In embodiments of the present invention, if when not having the memory configurations scheme identical with this current memory configurations scheme in this corresponding at least one memory configurations scheme of the current C PU of hardware system to be measured configuration, carry out test operation, to obtain the test result of this current memory configurations scheme, can comprise:
Testing tool is transferred to this hardware system to be measured, and receive the internal memory performance that this hardware system to be measured utilizes this current memory configurations scheme that this testing tool obtains; Or comprise:
The register of the power module by reading this hardware system to be measured obtains the system power dissipation of this current memory configurations scheme; Or comprise:
Testing tool is transferred to this hardware system to be measured, and receive the internal memory performance that this hardware system to be measured utilizes this current memory configurations scheme that this testing tool obtains, and the register of the power module by reading this hardware system to be measured, obtain the system power dissipation of this current memory configurations scheme, and according to the internal memory performance of this current memory configurations scheme and the system power dissipation of this current memory configurations scheme, obtain the energy loss-rate of this current memory configurations scheme.
Should understand, in embodiments of the present invention, when there be not the memory configurations scheme identical with this current memory configurations scheme in the memory configurations management server in determining this at least one memory configurations scheme, can initiatively carry out test operation mentioned above, also can send announcement information to client, there be not the memory configurations scheme identical with this current memory configurations scheme in this at least one memory configurations scheme of notice client, and when receiving the test operation indication information of client transmission, just carry out test operation.Should decide as the case may be, the embodiment of the invention does not limit this.
Will also be understood that, in embodiments of the present invention, after carrying out test operation, the memory configurations management server can be directly be stored to the memory configurations baseline database with the test result of this current memory configurations scheme of obtaining, also can by client will this current memory configurations scheme test result be stored in the memory configurations baseline library, should decide as the case may be, the embodiment of the invention does not limit this.
In embodiments of the present invention, this method 100 can also comprise:
The best memory configurations scheme that receives this client transmission is obtained request;
According to the test result of each the memory configurations scheme in this corresponding at least one memory configurations of the current C PU configuration of hardware system to be measured, from this at least one memory configurations scheme, obtain best memory configurations scheme set;
When the current memory configurations scheme in this hardware configuration information belongs to this best memory configurations scheme collection, send best memory configurations scheme to this client and obtain response, this best memory configurations scheme is obtained response and is used for belonging to this best memory configurations scheme set to this this current memory configurations scheme of client indication.
Specifically, when the user need understand best memory configurations scheme under current C PU configuration, then can send best memory configurations scheme to the internal memory configuration management server by client and obtain request; The memory configurations management server is after the best memory configurations scheme that receives the client transmission is obtained request, can obtain the information of carrying in the request according to this best memory configurations scheme, for example, the session(session) ID, the perhaps identification information of hardware system to be measured, know the configuration information of current C PU and the information of current memory configurations scheme, and according to the test result of the configuration information of current C PU each the memory configurations scheme from least one corresponding memory configurations of current C PU configuration, obtain best memory configurations set, for example, this memory configurations scheme set can comprise the memory configurations scheme of performance the best, the memory configurations scheme of memory configurations scheme least in power-consuming and energy loss-rate the best, perhaps can comprise performance, power consumption and energy loss-rate all satisfy all best internal memory schemes of certain threshold value, perhaps comprise the memory configurations scheme that possesses other conditions, should decide as the case may be, the embodiment of the invention does not limit this; The memory configurations management server can determine whether current memory configurations scheme belongs to the set of best memory configurations scheme, if belong to, then can indicate this current memory configurations scheme to belong to a kind of in the best memory configurations scheme to client.
In embodiments of the present invention, when this current memory configurations scheme belonged to this best memory configurations scheme set, this method 100 can also comprise:
Send the first hardware system memory configurations demand to be measured to this client and obtain request;
The first hardware system memory configurations demand to be measured that receives this client transmission is obtained response;
Obtain the first memory configurations demand of this hardware system to be measured that comprises in the response according to this first hardware system memory configurations demand to be measured, determine whether this current memory configurations scheme meets this first memory configurations demand;
When this current memory configurations scheme does not meet this first memory configurations demand, determine the memory configurations scheme of the first memory configurations demand correspondence, and send the first memory configurations demand scheme to this client and obtain response, the described first memory configurations demand scheme is obtained all or part of memory configurations scheme that carries the described first memory configurations demand correspondence in the response.
Specifically, when this current memory configurations scheme belongs to the set of best memory configurations scheme, indicate this current memory configurations scheme to belong to a kind of in the best memory configurations scheme to client after, the memory configurations management server can also send hardware system memory configurations demand to be measured to client and obtain request, to be used for the memory configurations demand of request hardware system to be measured; Client is after the hardware system memory configurations demand to be measured that receives the transmission of memory configurations management server is obtained request, can be based on user's input, the hardware system memory configurations demand to be measured that sends the memory configurations demand of carrying hardware system to be measured to the internal memory configuration management server is obtained response, for example, the memory configurations demand of this hardware system to be measured can be internal memory performance the best, least in power-consuming or can loss-rate the highest; The memory configurations management server is after the memory configurations demand of the hardware system to be measured that receives the client transmission, determine whether this current memory configurations scheme meets the memory configurations demand of this hardware system to be measured, for example, the memory configurations demand of hardware system to be measured is internal memory performance the best, the memory configurations management server can judge whether current memory configurations scheme belongs to the memory configurations scheme of internal memory performance the best, if belong to, the memory configurations management server indicates current internal memory scheme to satisfy the memory configurations demand of hardware system to be measured, for example, the memory configurations scheme that has belonged to internal memory performance the best, if do not belong to, then the memory configurations management server determines to satisfy the memory configurations scheme of the memory configurations demand of hardware system to be measured from the memory configurations scheme of the current C PU correspondence of hardware system to be measured, for example, the memory configurations scheme of internal memory performance the best, and send the memory configurations scheme of this internal memory performance the best to client.
In embodiments of the present invention, this method 100 can also comprise:
When the current memory configurations scheme in this hardware configuration information does not belong to this best memory configurations scheme set, send the second hardware system memory configurations demand to be measured to this client and obtain request;
The second hardware system memory configurations demand to be measured that receives this client transmission is obtained response;
Obtain the second memory configurations demand that responds this included hardware system to be measured according to this second hardware system memory configurations demand to be measured, obtain the memory configurations scheme of this second memory configurations demand correspondence;
Send the second memory configurations demand scheme of carrying to this client and obtain response, this second memory configurations demand scheme is obtained all or part of memory configurations scheme that response carries this second memory configurations demand correspondence.
Specifically, when this current memory configurations does not belong to the set of best memory configurations scheme, the memory configurations management server can be to the memory configurations demand of client-requested hardware system to be measured, for example, the energy loss-rate is higher than the memory configurations scheme of certain threshold value, suppose that the memory configurations scheme that can loss-rate be higher than certain threshold value has a plurality of, then these a plurality of memory configurations schemes can be sent to client simultaneously to client, select for the user, also can will be able to the highest memory configurations scheme of loss-rate be sent to client.
Should understand, when this current memory configurations does not belong to the set of best memory configurations scheme, the memory configurations management server can be directly with should the set of the best memory configurations scheme and corresponding test result send to client, also can be sent to client by the hardware system memory configurations demand to be measured request of obtaining, if the user thinks that the memory configurations scheme in the best memory configurations scheme set can satisfy the demands, obtain request even received hardware system memory configurations demand to be measured, also can not carry out subsequent operation.
Should understand, in embodiments of the present invention, best memory configurations scheme set can comprise memory configurations scheme optimum under the various means of testing, for example, and the memory configurations scheme of internal memory performance optimum, memory configurations scheme least in power-consuming, the highest memory configurations scheme of energy loss-rate; Perhaps, comprise that the test result under the various means of testing reaches the memory configurations scheme of certain threshold value, for example, internal memory performance reaches the memory configurations scheme of certain threshold value, the memory configurations scheme that power consumption reaches certain threshold value, the memory configurations scheme that the energy loss-rate reaches certain threshold value.
In embodiments of the present invention, the memory configurations demand of hardware system to be measured can be internal memory performance the best, least in power-consuming or can loss-rate the highest, also can for internal memory performance, power consumption than and can loss-rate all satisfy certain threshold value, perhaps other; When existing a plurality of memory configurations schemes to satisfy the memory configurations demand of hardware system to be measured, these a plurality of memory configurations schemes can be sent to client, the partial memory allocation plan can be sent to client, should decide as the case may be, the embodiment of the invention does not limit this.
For the ease of understanding the present invention, be example with a 4P server that is configured to 4 Intel E7-4870 below, when needs were diagnosed server memory configuration and optimized, the user can send memory configurations scheme test result to the internal memory configuration management server by client obtain request; After the memory configurations scheme test result that receives the client transmission is obtained request, the memory configurations management server can be according to the identification information of the hardware system to be measured that carries in this request, the current C PU of knowing hardware system to be measured is configured to Intel E7-48704P, then, memory configurations project management server can read out the test results such as performance, power consumption and Energy Efficiency Ratio of the different memory configurations schemes of Intel E7-48704P server from the memory configurations baseline library, specifically can be as shown in table 1:
Table 1
Figure BDA00002831766900141
Figure BDA00002831766900151
As can be seen from the table above, be E7-4870 for the CPU model, quantity is 4 server, and the memory configurations baseline database has provided the memory size size that can dispose and has been 48G and 96G, wherein, amount of capacity is that 48G can corresponding two kinds of memory configurations schemes, be respectively three of 16G, and one of 32G, one of 16G, amount of capacity is that 96G can corresponding two kinds of memory configurations schemes, be respectively three of 32G, and four of 16G, one of 32G.And correspondingly provided test result under every kind of memory configurations scheme, that is, and internal memory performance, system power dissipation and can loss-rate, wherein, internal memory performance can comprise bandwidth and time-delay, can loss-rate be the ratio of internal memory performance and system power dissipation.Then, the memory configurations management server sends to client with memory configurations scheme and the test result of Intel E7-48704P correspondence.If the user also needs to understand the current memory configurations scheme of Intel E7-48704P service, then can send current memory configurations scheme retrieval request to the internal memory configuration management server by client, the memory configurations management server is after the current memory configurations scheme retrieval request that receives the client transmission, the current memory configurations scheme that can obtain this server is two of 16G, because current memory configurations scheme does not have corresponding test result in the memory configurations baseline library, then the memory configurations management server can be carried out corresponding test operation (specifically can with reference to above describe), to obtain the test result of current memory configurations scheme, be two of 16G, corresponding internal memory performance, power consumption and can loss-rate, and this test result sent to client by current memory configurations scheme retrieval response.Simultaneously, the memory configurations management server can also be stored to the test result of two correspondences of 16G the Intel E7-48704P corresponding region of memory configurations baseline database.The memory configurations management server can also obtain request by send hardware system memory configurations demand to be measured to client, the hardware system memory configurations demand to be measured that receives the client transmission is obtained response, obtain the memory configurations demand of E7-48704P server, for example, internal memory performance the best, then, from the memory configurations scheme, obtain the memory configurations scheme of internal memory performance the best, be that three of 32G are the memory configurations scheme of internal memory performance the best, then with the memory configurations scheme of this internal memory performance the best, be three of 32G, obtain response by memory configurations demand scheme and send to client.
Should be understood that the specific embodiment that associative list 1 described embodiment just describes for the ease of understanding the present invention, should not constitute any restriction to the embodiment of the invention.
Therefore, the method that is used for allocate memory of the embodiment of the invention, by from the memory configurations baseline library, obtaining and sending at least one memory configurations scheme corresponding with the current C PU configuration of hardware system to be measured and the test result of each the memory configurations scheme in this at least one memory configurations scheme to client, can provide memory configurations scheme intuitively to the user, make memory configurations become simple.
In order to be expressly understood the present invention more, specifically describe indicative flowchart according to the method that is used for allocate memory of the embodiment of the invention below with reference to Fig. 2 and Fig. 3.
Fig. 2 is the indicative flowchart according to the method 200 that is used for allocate memory of the embodiment of the invention.As shown in Figure 2, this method 200 can comprise:
S201, client can send memory configurations scheme test result and obtain request by the web interface to the internal memory configuration management server, wherein, can carry the identification information of hardware system to be measured in this request, for example, and IP address, ID etc.
S202, memory configurations management server send hardware configuration information to BMC and obtain request, can carry the identification information of hardware system to be measured in this request.
S203, BMC read the current hardware configuration information of hardware system to be measured by the mainboard I2C bus of hardware system to be measured, and this current hardware configuration information can comprise current memory configurations scheme and current C PU configuration information.
S204, memory configurations management server read the current hardware configuration information of hardware system to be measured from BMC by the IPMI interface.
S205, memory configurations management server are according to treating current C PU configuration information included in the current hardware configuration information of examining system, from the memory configurations baseline library, obtain at least one memory configurations scheme corresponding with current C PU configuration, and the test result of each the memory configurations scheme in this at least one memory configurations scheme, wherein, this test result can be internal memory performance, system power dissipation and energy loss-rate.
S206, memory configurations management server are sent to client with the test result that gets access to.
S207, client send retrieval command (namely to the internal memory configuration management server, previously described current memory configurations scheme retrieval request), be used to indicate the memory configurations management server and dispose from current C PU whether the current memory configurations scheme that detects hardware system to be measured at least one corresponding memory configurations scheme is that current C PU disposes at least one corresponding memory configurations scheme.
Whether the current memory configurations scheme of S208, memory configurations management server retrieval hardware system to be measured from least one corresponding memory configurations scheme of current C PU configuration is that current C PU disposes at least one corresponding memory configurations scheme; If directly send the testing result of the test result that comprises current memory configurations scheme to client, and then carry out S218;
If not, then send to client and be used to indicate the testing result that current memory configurations scheme does not belong to this at least one memory configurations scheme, and then carry out S209-S218.
S209, when result for retrieval is used to indicate current memory configurations scheme and does not belong to this at least one memory configurations scheme, client sends the testing tool transmitting order to lower levels to the internal memory configuration management server.
S210, memory configurations management server issue testing tool according to the indication of client to hardware system to be measured, for example, and stream, lmbench.
S211, memory configurations management server issue to be finished after the testing tool, can send to issue to client to finish indication.
S212, client receive issue finish indication after, issue test command to hardware system to be measured, wherein, this test command can directly be sent to hardware system to be measured, also can be sent to hardware system to be measured by the memory configurations management server; Thereby hardware system to be measured can be tested according to the testing tool that issues when receiving test command.
S213, memory configurations management server obtain the internal memory performance test result to hardware system to be measured.
S214, memory configurations management server are sent to client with the internal memory performance test result.
S215, client are obtained order to internal memory configuration management server sending power consumption after receiving the internal memory performance test result.
S216, memory configurations management server indication BMC obtain the system power dissipation of hardware system to be measured.
S217, BMC read the power module register of hardware system to be measured by the I2C bus of hardware system to be measured, to obtain the system power dissipation under the current memory configurations.
S218, memory configurations management server read system power dissipation under the current memory configurations that BMC obtains by the IPMI interface.
S219, memory configurations management server calculate the energy loss-rate, and power consumption and energy loss-rate are sent to client.
S220, client are obtained best memory configurations scheme from the memory configurations management server.
How the specific client end obtains best memory configurations scheme from the memory configurations management server, we will be that example specifically describes with Fig. 3.
Fig. 3 is the indicative flowchart according to the method 300 that is used for allocate memory of the embodiment of the invention.As shown in Figure 3, this method 300 comprises:
S301, receiving after best memory configurations scheme that client sends obtains request, the memory configurations management server contrasts current memory configurations scheme and whether belongs in performance the best, least in power-consuming, the memory configurations scheme that Energy Efficiency Ratio is the highest one.If carry out S302; If not, carry out S303.
S302, memory configurations management server confirm whether select other best memory configurations schemes to client, if then carry out S303; If not, then finish.
Whether S303, memory configurations management server confirm that to client selectivity can best memory configurations scheme; If carry out S304; If not, carry out S305.
S304, show the best memory configurations scheme of this performance to client.
S305, if not, the memory configurations management server whether need to confirm memory configurations scheme least in power-consuming to client; If then carry out S306; If not, then carry out S307.
S305, show memory configurations scheme least in power-consuming to client.
S307, showing to client can loss-rate best configuration scheme.
Above described, when if the current memory configurations scheme of system has been a certain preferred plan, can point out the current memory configurations scheme of client has been certain best memory configurations scheme, and whether prompting need to select other best memory configurations schemes, then successively to client whether confirm desirability can best memory configurations scheme, memory configurations scheme least in power-consuming, Energy Efficiency Ratio best configuration scheme.Should understand, in embodiments of the present invention, also can only confirm to client whether other memory configurations schemes except current memory configurations scheme need successively, for example, when current memory configurations scheme is internal memory performance the best memory configurations scheme, only need to confirm whether to select memory configurations scheme least in power-consuming and energy loss-rate best configuration scheme etc. to client.Certainly, also can confirm its needed best memory configurations scheme to client according to other order, for example, whether need memory configurations scheme least in power-consuming, the best memory configurations scheme of performance, Energy Efficiency Ratio best configuration scheme to the client affirmation successively.
Therefore, the method that is used for allocate memory of the embodiment of the invention, by from the memory configurations baseline library, obtaining and sending at least one corresponding memory configurations scheme of the current C PU configuration of hardware system to be measured and the test result of each the memory configurations scheme in this at least one memory configurations scheme to client, can provide memory configurations scheme intuitively to the user, make memory configurations become simple.
Fig. 4 is the schematic block diagram according to the memory configurations management server 400 of the embodiment of the invention.As shown in Figure 4, memory configurations management server 400 comprises:
Receiving element 410, the memory configurations scheme test result that is used for the transmission of reception client is obtained request;
Acquiring unit 420, the identification information that is used for the hardware system to be measured that the request of obtaining is carried according to described memory configurations scheme test result, obtain the hardware configuration information of described hardware system to be measured, and according to the configuration information that the current central processing unit CPU in the described hardware configuration information disposes, from the memory configurations baseline library, obtain at least one memory configurations scheme corresponding with described current C PU configuration and the test result of each the memory configurations scheme in described at least one memory configurations scheme;
Transmitting element 430, be used for sending memory configurations scheme test result to described client and obtain response, described memory configurations scheme test result is obtained the test result that response comprises each the memory configurations scheme in described at least one memory configurations scheme and described at least one memory configurations scheme.
Alternatively, described receiving element 410 also is used for receiving the current memory configurations scheme retrieval request that described client sends;
Then as shown in Figure 5, described memory configurations management server 400 also comprises:
Retrieval unit 440, be used for after described receiving element 410 receives described current memory configurations scheme retrieval request, according to the current memory configurations scheme in the described hardware configuration information, from described at least one memory configurations scheme of described current C PU configuration retrieval whether have the memory configurations scheme identical with described current memory configurations scheme;
Described transmitting element 430 also is used for:
If when having the memory configurations scheme identical with described current memory configurations scheme in described at least one memory configurations scheme, send the first current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described first current memory configurations scheme retrieval response;
As shown in Figure 6, described memory configurations management server 400 also comprises:
Test cell 450, if when not having the memory configurations scheme identical with described current memory configurations scheme for described at least one memory configurations scheme, carry out test operation, to obtain the test result of described current memory configurations scheme, and described transmitting element 430, also be used for sending the second current memory configurations scheme retrieval response to described client, carry the right test result of described current memory configurations scheme in the described second current memory configurations scheme retrieval response.
Alternatively, described test cell 450 specifically is used for:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains; Or specifically be used for:
The register of the power module by reading described hardware system to be measured obtains the system power dissipation of described current memory configurations scheme; Or specifically be used for:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains, and the register of the power module by reading described hardware system to be measured, obtain the system power dissipation of described current memory configurations scheme, and according to the internal memory performance of described current memory configurations scheme and the system power dissipation of described current memory configurations scheme, obtain the energy loss-rate of described current memory configurations scheme.
Alternatively, described receiving element 410, the best memory configurations scheme that also is used for the described client transmission of reception is obtained request;
As shown in Figure 7, described memory configurations management server 400 also comprises:
First determining unit 462, be used for receiving after described best memory configurations scheme obtains request at described receiving element 410, according to the test result of each the memory configurations scheme in corresponding described at least one memory configurations of described current C PU configuration, from described at least one memory configurations scheme, determine best memory configurations scheme set;
Second determining unit 464 is used for determining whether described current memory configurations scheme belongs to described best memory configurations scheme set;
Described transmitting element 430, also be used for when described current memory configurations scheme belongs to described best memory configurations scheme set, send best memory configurations scheme to described client and obtain response, described best memory configurations scheme is obtained response and is used for indicating described current memory configurations scheme to belong to described best memory configurations scheme set to described client.
Alternatively, when described current memory configurations scheme belonged to described best memory configurations scheme set, described transmitting element 430 also was used for sending the first hardware system memory configurations demand to be measured to described client and obtains request;
Described receiving element 410, the first hardware system memory configurations demand to be measured that also is used for the described client transmission of reception is obtained response; As shown in Figure 7, described memory configurations management server 400 also comprises:
The 3rd determining unit 466, be used for obtaining according to the described first hardware system memory configurations demand to be measured the first memory configurations demand of the described hardware system to be measured that response comprises, determine whether described current memory configurations scheme meets the described first memory configurations demand;
The 4th determining unit 468, be used for when described current memory configurations scheme does not meet the memory configurations scheme of memory configurations demand correspondence of described hardware system to be measured, determine the memory configurations scheme of the described first memory configurations demand correspondence, and send the first memory configurations demand scheme to described client and obtain response, the described first memory configurations demand scheme is obtained all or part of memory configurations scheme that carries the described first memory configurations demand correspondence in the response.
Alternatively, described transmitting element 430 also is used for sending the second hardware system memory configurations demand to be measured to described client and obtaining request when described current memory configurations scheme does not belong to described best memory configurations scheme set;
Described receiving element 410 also is used for receiving the described client second hardware system memory configurations demand to be measured that the request of obtaining sends according to the described second hardware system memory configurations demand to be measured and obtains response;
As shown in Figure 8, described memory configurations management server 400 also comprises:
The 5th determining unit 470, be used for obtaining according to the described second hardware system memory configurations demand to be measured the second memory configurations demand of the included described hardware system to be measured of response, obtain all or part of memory configurations scheme of the described second memory configurations demand correspondence;
Described transmitting element 430 also is used for sending the second memory configurations demand scheme to described client and obtains response, and the described second memory configurations demand scheme is obtained all or part of memory configurations scheme that response carries the described second memory configurations demand correspondence.
Alternatively, as shown in Figure 6, described memory configurations management server 400 also comprises:
Storage unit 480 is used for carrying out test operations at test cell 450, after the test result of obtaining described current memory configurations scheme, the test result of described current memory configurations scheme is stored to described memory configurations baseline library.
Alternatively, described test result comprise internal memory performance, system power dissipation and can loss-rate at least a.
Should be understood that each unit that above memory configurations management server 400 comprises divides according to function, only is a kind of logical block.Certainly, can also have other dividing mode, for example, first determining unit 462, second determining unit 464, the 3rd determining unit 466, the 4th determining unit 468 and the 5th determining unit 470 can be divided into a determining unit to realize all functions of these five unit, the embodiment of the invention is not carried out any restriction to this.
Therefore, the memory configurations management server of the embodiment of the invention, by from the memory configurations baseline library, obtaining and sending at least one corresponding memory configurations scheme of the current C PU configuration of hardware system to be measured and the test result of each the memory configurations scheme in this at least one memory configurations scheme to client, can provide memory configurations scheme intuitively to the user, make memory configurations become simple.
Below with reference to the schematic block diagram of Fig. 9 description according to the memory configurations management server 500 of the embodiment of the invention.As shown in Figure 9, this memory configurations management server 500 comprises:
Receiver 510, the memory configurations scheme test result that is used for the transmission of reception client is obtained request;
Processor 520, the identification information that is used for the hardware system to be measured that the request of obtaining is carried according to described memory configurations scheme test result, obtain the hardware configuration information of described hardware system to be measured, and according to the configuration information that the current central processing unit CPU in the described hardware configuration information disposes, from the memory configurations baseline library, obtain at least one memory configurations scheme corresponding with described current C PU configuration and the test result of each the memory configurations scheme in described at least one memory configurations scheme;
Transmitter 530, be used for sending memory configurations scheme test result to described client and obtain response, described memory configurations scheme test result is obtained the test result that response comprises each the memory configurations scheme in described at least one memory configurations scheme and described at least one memory configurations scheme.
Alternatively, described receiver 510 also is used for receiving the current memory configurations scheme retrieval request that described client sends;
Described processor 520, also be used for after described receiver 510 receives described current memory configurations scheme retrieval request, according to the current memory configurations scheme in the described hardware configuration information, from described at least one memory configurations scheme of described current C PU configuration retrieval whether have the memory configurations scheme identical with described current memory configurations scheme;
Described transmitter 530 also is used for:
If when having the memory configurations scheme identical with described current memory configurations scheme in described at least one memory configurations scheme, send the first current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described first current memory configurations scheme retrieval response;
Described processor 520, if when also not having the memory configurations scheme identical with described current memory configurations scheme for described at least one memory configurations scheme, carry out test operation, to obtain the test result of described current memory configurations scheme, and described transmitting element, also be used for sending the second current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described second current memory configurations scheme retrieval response.
Alternatively, described processor 520 specifically is used for:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains; Or specifically be used for:
The register of the power module by reading described hardware system to be measured obtains the system power dissipation of described current memory configurations scheme; Or specifically be used for:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains, and the register of the power module by reading described hardware system to be measured, obtain the system power dissipation of described current memory configurations scheme, and according to the internal memory performance of described current memory configurations scheme and the system power dissipation of described current memory configurations scheme, obtain the energy loss-rate of described current memory configurations scheme.
Alternatively, described receiver 510, the best memory configurations scheme that also is used for the described client transmission of reception is obtained request;
Described processor 520, also be used for receiving after described best memory configurations scheme obtains request at described receiver 510, according to the test result of each the memory configurations scheme in corresponding described at least one memory configurations of described current C PU configuration, from described at least one memory configurations scheme, determine best memory configurations scheme set;
Determine whether described current memory configurations scheme belongs to described best memory configurations scheme set;
Described transmitter 530, also be used for when described current memory configurations scheme belongs to described best memory configurations scheme set, send best memory configurations scheme to described client and obtain response, described best memory configurations scheme is obtained response and is used for indicating described current memory configurations scheme to belong to described best memory configurations scheme set to described client.
Alternatively, when the current memory configurations scheme in described hardware configuration information belonged to described best memory configurations scheme set, described transmitter 530 also was used for sending the first hardware system memory configurations demand to be measured to described client and obtains request;
Described receiver 510, the first hardware system memory configurations demand to be measured that also is used for the described client transmission of reception is obtained response;
Described processor 520, also be used for obtaining according to the described first hardware system memory configurations demand to be measured the first memory configurations demand of the described hardware system to be measured that response comprises, determine whether described current memory configurations scheme meets the described first memory configurations demand;
When described current memory configurations scheme does not meet the memory configurations scheme of memory configurations demand correspondence of described hardware system to be measured, determine the memory configurations scheme of the described first memory configurations demand correspondence, and send the first memory configurations demand scheme to described client and obtain response, the described first memory configurations demand scheme is obtained all or part of memory configurations scheme that carries the described first memory configurations demand correspondence in the response.
Alternatively, described transmitter 530 also is used for sending the second hardware system memory configurations demand to be measured to described client and obtaining request when described current memory configurations scheme does not belong to described best memory configurations scheme set;
Described receiver 510, the second hardware system memory configurations demand to be measured that also is used for the described client transmission of reception is obtained response;
Described processor 520, also be used for obtaining according to the described second hardware system memory configurations demand to be measured the second memory configurations demand of the included described hardware system to be measured of response, obtain all or part of memory configurations scheme of the described second memory configurations demand correspondence;
Described transmitter 530 also is used for sending the second memory configurations demand scheme to described client and obtains response, and the described second memory configurations demand scheme is obtained all or part of memory configurations scheme that response carries the described second memory configurations demand correspondence.
Alternatively, described processor 520 also is used for carrying out test operation, after the test result of obtaining described current memory configurations scheme, the test result of described current memory configurations scheme is stored to described memory configurations baseline library.
Alternatively, described test result comprise internal memory performance, system power dissipation and can loss-rate at least a.
Therefore, the memory configurations management server of the embodiment of the invention, by from the memory configurations baseline library, obtaining and sending at least one memory configurations scheme corresponding with the current C PU configuration of hardware system to be measured and the test result of each the memory configurations scheme in this at least one memory configurations scheme to client, can provide memory configurations scheme intuitively to the user, make memory configurations become simple.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions still are that software mode is carried out with hardware actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for using distinct methods to realize described function to each, but this realization should not thought and exceeds scope of the present invention.
The those skilled in the art can be well understood to, and is the convenience described and succinct, and the concrete course of work of the system of foregoing description, device and unit can not repeat them here with reference to the corresponding process among the preceding method embodiment.
In several embodiment that the application provides, should be understood that disclosed system, apparatus and method can realize by other mode.For example, device embodiment described above only is schematic, for example, the division of described unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or directly to be coupled or to communicate to connect can be by some interfaces, the indirect coupling of device or unit or communicate to connect can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of unit to realize the purpose of present embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.
If described function realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection domain with claim.

Claims (16)

1. a method that is used for allocate memory is characterized in that, comprising:
The memory configurations scheme test result that receives the client transmission is obtained request;
Obtain the identification information of the hardware system to be measured that carries in the request according to described memory configurations scheme test result, obtain the hardware configuration information of described hardware system to be measured, and according to the configuration information that the current central processing unit CPU in the described hardware configuration information disposes, from the memory configurations baseline library, obtain at least one memory configurations scheme corresponding with described current C PU configuration and the test result of each the memory configurations scheme in described at least one memory configurations scheme;
Send memory configurations scheme test result to described client and obtain response, described memory configurations scheme test result is obtained the test result that response comprises each the memory configurations scheme in described at least one memory configurations scheme and described at least one memory configurations scheme.
2. method according to claim 1 is characterized in that, described method also comprises:
Receive the current memory configurations scheme retrieval request that described client sends;
According to the current memory configurations scheme in the described hardware configuration information, from disposing with described current C PU whether retrieval exists the memory configurations scheme identical with described current memory configurations scheme corresponding described at least one memory configurations scheme;
If when having the memory configurations scheme identical with described current memory configurations scheme in described at least one memory configurations scheme, send the first current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described first current memory configurations scheme retrieval response;
If when not having the memory configurations scheme identical with described current memory configurations scheme in described at least one memory configurations scheme, carry out test operation, to obtain the test result of described current memory configurations scheme, and send second current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described second current memory configurations scheme retrieval response.
3. method according to claim 2 is characterized in that, described execution test operation to obtain the test result of described current memory configurations scheme, comprising:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains; Or comprise:
The register of the power module by reading described hardware system to be measured obtains the system power dissipation of described current memory configurations scheme; Or comprise:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains, and the register of the power module by reading described hardware system to be measured, obtain the system power dissipation of described current memory configurations scheme, and according to the internal memory performance of described current memory configurations scheme and the system power dissipation of described current memory configurations scheme, obtain the energy loss-rate of described current memory configurations scheme.
4. according to each described method in the claim 1 to 3, it is characterized in that described method also comprises:
The best memory configurations scheme that receives described client transmission is obtained request;
According to the test result of each the memory configurations scheme in corresponding described at least one memory configurations of described current C PU configuration, from described at least one memory configurations scheme, obtain best memory configurations scheme set;
When the current memory configurations scheme in the described hardware configuration information belongs to described best memory configurations scheme set, send best memory configurations scheme to described client and obtain response, described best memory configurations scheme is obtained response and is used for indicating described current memory configurations scheme to belong to described best memory configurations scheme set to described client.
5. method according to claim 4 is characterized in that, when the current memory configurations scheme in the described hardware configuration information belonged to described best memory configurations scheme set, described method also comprised:
Send the first hardware system memory configurations demand to be measured to described client and obtain request;
The first hardware system memory configurations demand to be measured that receives described client transmission is obtained response;
Obtain the first memory configurations demand of the described hardware system to be measured that comprises in the response according to the described first hardware system memory configurations demand to be measured, determine whether described current memory configurations scheme meets the described first memory configurations demand;
When described current memory configurations scheme does not meet the described first memory configurations demand, determine the memory configurations scheme of the described first memory configurations demand correspondence, and send the first memory configurations demand scheme to described client and obtain response, the described first memory configurations demand scheme is obtained all or part of memory configurations scheme that carries the described first memory configurations demand correspondence in the response.
6. according to claim 4 or 5 described methods, it is characterized in that described method also comprises:
When the current memory configurations scheme in described hardware configuration information does not belong to described best memory configurations scheme set, send the second hardware system memory configurations demand to be measured to described client and obtain request;
The second hardware system memory configurations demand to be measured that receives described client transmission is obtained response;
Obtain the second memory configurations demand that responds included described hardware system to be measured according to the described second hardware system memory configurations demand to be measured, obtain all or part of memory configurations scheme of the described second memory configurations demand correspondence;
Send the second memory configurations demand scheme to described client and obtain response, the described second memory configurations demand scheme is obtained all or part of memory configurations scheme that response carries the described second memory configurations demand correspondence.
7. method according to claim 2 is characterized in that, at described execution test operation, after the test result of obtaining described current memory configurations scheme, described method also comprises:
The test result of described current memory configurations scheme is stored to described memory configurations baseline library.
8. according to each described method in the claim 1 to 7, it is characterized in that, described test result comprise internal memory performance, system power dissipation and can loss-rate at least a.
9. a memory configurations management server is characterized in that, comprising:
Receiving element, the memory configurations scheme test result that is used for the transmission of reception client is obtained request;
Acquiring unit, the identification information that is used for the hardware system to be measured that the request of obtaining is carried according to described memory configurations scheme test result, obtain the hardware configuration information of described hardware system to be measured, and according to the configuration information that the current central processing unit CPU in the described hardware configuration information disposes, from the memory configurations baseline library, obtain at least one memory configurations scheme corresponding with described current C PU configuration and the test result of each the memory configurations scheme in described at least one memory configurations scheme;
Transmitting element, be used for sending memory configurations scheme test result to described client and obtain response, described memory configurations scheme test result is obtained the test result that response comprises each the memory configurations scheme in described at least one memory configurations scheme and described at least one memory configurations scheme.
10. memory configurations management server according to claim 9 is characterized in that,
Described receiving element also is used for receiving the current memory configurations scheme retrieval request that described client sends;
Described memory configurations management server also comprises:
Retrieval unit, be used for after described receiving element receives described current memory configurations scheme retrieval request, according to the current memory configurations scheme in the described hardware configuration information, from described at least one memory configurations scheme of described current C PU configuration retrieval whether have the memory configurations scheme identical with described current memory configurations scheme;
Described transmitting element also is used for:
If when having the memory configurations scheme identical with described current memory configurations scheme in described at least one memory configurations scheme, send the first current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described first current memory configurations scheme retrieval response;
Described memory configurations management server also comprises:
Test cell, if when not having the memory configurations scheme identical with described current memory configurations scheme for described at least one memory configurations scheme, carry out test operation, to obtain the test result of described current memory configurations scheme, and described transmitting element, also be used for sending the second current memory configurations scheme retrieval response to described client, carry the test result of described current memory configurations scheme in the described second current memory configurations scheme retrieval response.
11. memory configurations management server according to claim 10 is characterized in that, described test cell specifically is used for:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains; Or specifically be used for:
The register of the power module by reading described hardware system to be measured obtains the system power dissipation of described current memory configurations scheme; Or specifically be used for:
Testing tool is transferred to described hardware system to be measured, and receive the internal memory performance that described hardware system to be measured utilizes the described current memory configurations scheme that described testing tool obtains, and the register of the power module by reading described hardware system to be measured, obtain the system power dissipation of described current memory configurations scheme, and according to the internal memory performance of described current memory configurations scheme and the system power dissipation of described current memory configurations scheme, obtain the energy loss-rate of described current memory configurations scheme.
12. according to each described memory configurations management server in the claim 9 to 11, it is characterized in that,
Described receiving element, the best memory configurations scheme that also is used for the described client transmission of reception is obtained request;
Described memory configurations management server also comprises:
First determining unit, be used for receiving after described best memory configurations scheme obtains request at described receiving element, according to the test result of each the memory configurations scheme in corresponding described at least one memory configurations of described current C PU configuration, from described at least one memory configurations scheme, determine best memory configurations scheme set;
Second determining unit is used for determining whether described current memory configurations scheme belongs to described best memory configurations scheme set;
Described transmitting element, also be used for when described current memory configurations scheme belongs to described best memory configurations scheme set, send best memory configurations scheme to described client and obtain response, described best memory configurations scheme is obtained response and is used for indicating described current memory configurations scheme to belong to described best memory configurations scheme set to described client.
13. memory configurations management server according to claim 12, it is characterized in that, when the current memory configurations scheme in described hardware configuration information belonged to described best memory configurations scheme set, described transmitting element also was used for sending the first hardware system memory configurations demand to be measured to described client and obtains request;
Described receiving element, the first hardware system memory configurations demand to be measured that also is used for the described client transmission of reception is obtained response; Described memory configurations management server also comprises:
The 3rd determining unit is used for obtaining according to the described first hardware system memory configurations demand to be measured the first memory configurations demand of the described hardware system to be measured that response comprises, determines whether described current memory configurations scheme meets the described first memory configurations demand;
The 4th determining unit, be used for when described current memory configurations scheme does not meet the memory configurations scheme of memory configurations demand correspondence of described hardware system to be measured, determine the memory configurations scheme of the described first memory configurations demand correspondence, and send the first memory configurations demand scheme to described client and obtain response, the described first memory configurations demand scheme is obtained all or part of memory configurations scheme that carries the described first memory configurations demand correspondence in the response.
14. according to claim 12 or 13 described memory configurations management servers, it is characterized in that,
Described transmitting element also is used for sending the second hardware system memory configurations demand to be measured to described client and obtaining request when described current memory configurations scheme does not belong to described best memory configurations scheme set;
Described receiving element, the second hardware system memory configurations demand to be measured that also is used for the described client transmission of reception is obtained response;
Described memory configurations management server also comprises:
The 5th determining unit is used for obtaining the second memory configurations demand that responds included described hardware system to be measured according to the described second hardware system memory configurations demand to be measured, obtains all or part of memory configurations scheme of the described second memory configurations demand correspondence;
Described transmitting element also is used for sending the second memory configurations demand scheme to described client and obtains response, and the described second memory configurations demand scheme is obtained all or part of memory configurations scheme that response carries the described second memory configurations demand correspondence.
15. memory configurations management server according to claim 10 is characterized in that, described memory configurations management server also comprises:
Storage unit is used for carrying out test operation at described test cell, after the test result of obtaining described current memory configurations scheme, the test result of described current memory configurations scheme is stored to described memory configurations baseline library.
16. according to each described memory configurations management server in the claim 9 to 15, it is characterized in that, described test result comprise internal memory performance, system power dissipation and can loss-rate at least a.
CN201280002399.6A 2012-08-03 2012-08-03 For configuring method and the memory configurations management server of internal memory Expired - Fee Related CN103201723B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/079676 WO2014019231A1 (en) 2012-08-03 2012-08-03 Memory configuration method and memory configuration management server

Publications (2)

Publication Number Publication Date
CN103201723A true CN103201723A (en) 2013-07-10
CN103201723B CN103201723B (en) 2016-09-28

Family

ID=48723119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280002399.6A Expired - Fee Related CN103201723B (en) 2012-08-03 2012-08-03 For configuring method and the memory configurations management server of internal memory

Country Status (2)

Country Link
CN (1) CN103201723B (en)
WO (1) WO2014019231A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250232A (en) * 2016-07-22 2016-12-21 徐汕 A kind of client based on user behavior analysis optimizes system and method
CN108898230A (en) * 2018-05-24 2018-11-27 华为技术有限公司 A kind of device management method and management server
CN109831777A (en) * 2019-03-14 2019-05-31 维沃移动通信有限公司 Information processing method, hardware mould group, terminal device and server
CN111104220A (en) * 2019-12-06 2020-05-05 北京浪潮数据技术有限公司 Arm architecture-based server configuration method, system and related equipment
CN111831539A (en) * 2019-04-18 2020-10-27 中科寒武纪科技股份有限公司 Test method and related product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117284A1 (en) * 2004-11-30 2006-06-01 Alexandre Andreev RRAM memory timing learning tool
CN101937474A (en) * 2010-10-14 2011-01-05 广州从兴电子开发有限公司 Mass data query method and device
CN102368225A (en) * 2011-06-29 2012-03-07 奇智软件(北京)有限公司 Hardware-detection based upgrade recommendation method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100405320C (en) * 2005-11-25 2008-07-23 环达电脑(上海)有限公司 Method for examining and comparing resource information in bottom of computer system
CN101626576B (en) * 2008-07-07 2011-10-26 中兴通讯股份有限公司 Method for generating parameter configuration template and method for configuring parameters by utilizing template
CN102087604A (en) * 2009-12-07 2011-06-08 鸿富锦精密工业(深圳)有限公司 Computer and method for acquiring hardware configuration information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117284A1 (en) * 2004-11-30 2006-06-01 Alexandre Andreev RRAM memory timing learning tool
CN101937474A (en) * 2010-10-14 2011-01-05 广州从兴电子开发有限公司 Mass data query method and device
CN102368225A (en) * 2011-06-29 2012-03-07 奇智软件(北京)有限公司 Hardware-detection based upgrade recommendation method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250232A (en) * 2016-07-22 2016-12-21 徐汕 A kind of client based on user behavior analysis optimizes system and method
CN108898230A (en) * 2018-05-24 2018-11-27 华为技术有限公司 A kind of device management method and management server
CN108898230B (en) * 2018-05-24 2022-08-16 超聚变数字技术有限公司 Equipment management method and management server
CN109831777A (en) * 2019-03-14 2019-05-31 维沃移动通信有限公司 Information processing method, hardware mould group, terminal device and server
CN111831539A (en) * 2019-04-18 2020-10-27 中科寒武纪科技股份有限公司 Test method and related product
CN111104220A (en) * 2019-12-06 2020-05-05 北京浪潮数据技术有限公司 Arm architecture-based server configuration method, system and related equipment

Also Published As

Publication number Publication date
CN103201723B (en) 2016-09-28
WO2014019231A1 (en) 2014-02-06

Similar Documents

Publication Publication Date Title
US9858238B2 (en) Dual mode USB and serial console port
US7711886B2 (en) Dynamically allocating communication lanes for a plurality of input/output (‘I/O’) adapter sockets in a point-to-point, serial I/O expansion subsystem of a computing system
CN102662898B (en) Host-slave compatibility method, device and system for USB (universal serial bus) device
CN103201723A (en) Memory configuration method and memory configuration management server
US20100035461A1 (en) System and Method for Detecting Module Presence in an Information Handling System
CN111289922B (en) Cable plugging detection method and related equipment
CN103218180A (en) Disk positioning method and device
CN105589776A (en) Fault location method and server
US9806959B2 (en) Baseboard management controller (BMC) to host communication through device independent universal serial bus (USB) interface
CN104021060A (en) BMC serial port debugging system and method
CN112799985B (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN104360921A (en) Method, device and system for monitoring performance of mobile terminal
CN109147861B (en) Hard disk in-place detection device and method
US8386689B2 (en) Interface adapter systems and methods
CN111048138A (en) Hard disk fault detection method and related device
US20090113454A1 (en) System and method of testing bridge sas channels
CN112000535A (en) SAS Expander card-based hard disk abnormity identification method and processing method
CN102546652B (en) System and method for server load balancing
CN102750230B (en) Access control system and method of universal serial bus (USB) storage equipment
JP2011043937A (en) Information processing system and program
CN115543893B (en) Server and interface expansion method, device and system thereof, and storage medium
CN102841836B (en) Testing method and programmable processor
CN115129560A (en) Server and wiring warning system thereof
CN104123257A (en) Universal serial bus devices, communication method, and computer readable storage medium
CN113076270A (en) Protocol configuration device and method of IO interface and related components

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160928

Termination date: 20190803

CF01 Termination of patent right due to non-payment of annual fee