




技术领域technical field
本发明实施例涉及服务器内存技术领域,特别是涉及一种服务器内存配置方法、一种服务器内存装置、一种电子设备以及一种计算机可读存储介质。The embodiments of the present invention relate to the technical field of server memory, and in particular, relate to a server memory configuration method, a server memory device, an electronic device, and a computer-readable storage medium.
背景技术Background technique
随着科技的发展,企业对于高性能计算和数据密集型计算越来越重视,对算力的需求也越来越高,为了满足企业的需求,服务器的内存容量也必须随之进行扩展。由于传统的DRAM(Dynamic Random Access Memory,动态随机存取存储器/内存)容量有限、价格较高,且具有数据易失性,已经不能满足日益增长的内存需求。With the development of science and technology, enterprises pay more and more attention to high-performance computing and data-intensive computing, and the demand for computing power is also increasing. In order to meet the needs of enterprises, the memory capacity of servers must also be expanded accordingly. Because the traditional DRAM (Dynamic Random Access Memory, dynamic random access memory/memory) has limited capacity, high price, and data volatility, it can no longer meet the growing demand for memory.
PMem(Persistent Memory,持久内存)采用创新内存技术,弥补了DRAM产品的不足,将高性价比的大容量内存与对数据持久性的支持结合在了一起。PMem同样可以封装在DIMMS(Dual-Inline-Memory-Modules,双列直插式存储模块)中,与DRAM驻留在同一总线/通道上,并且可以采取与DRAM相同的方式来存储易失性数据。除此之外,PMem具有128GB、256GB和512GB三种容量,远远高于通常从16GB到64GB的DRAM,且甚至可以在模块不通电的情况下以持久模式存储数据,通过内置硬件增加安全性来保证数据不受损。从成本/GB的角度以及容量可扩展能力来看,PMem的总体拥有成本相比DRAM有了很大的改善。PMem (Persistent Memory) uses innovative memory technology to make up for the shortcomings of DRAM products, and combines cost-effective large-capacity memory with support for data persistence. PMem can also be packaged in DIMMS (Dual-Inline-Memory-Modules, dual in-line memory module), resides on the same bus/channel as DRAM, and can store volatile data in the same way as DRAM . In addition, PMem has three capacities of 128GB, 256GB and 512GB, much higher than the usual DRAM from 16GB to 64GB, and can even store data in persistent mode when the module is not powered on, increasing security through built-in hardware to ensure that the data is not damaged. From the perspective of cost/GB and capacity scalability, the total cost of ownership of PMem has been greatly improved compared to DRAM.
服务器上每个CPU有16个DIMMS,也就决定了当DRAM和PMem同时存在时,存在多种内存插法,常见的DRAM+PMem内存插法可以包括:8+8(8条DRAM和8条PMem),8+4(8条DRAM和4条PMem),4+4(4条DRAM和4条PMem),12+2(12条DRAM和2条PMem),8+1(8条DRAM和1条PMem),6+1(6条DRAM和1条PMem)等等。不同的内存配置方式在服务器启动时需要使用对应服务质量优化方案进行优化,才能发挥服务器内存的最佳性能,然而,目前服务质量优化方案需要服务器维护人员自行配置,增加了服务器维护人员的工作量。Each CPU on the server has 16 DIMMS, which determines that when DRAM and PMem exist at the same time, there are multiple memory insertion methods. Common DRAM+PMem memory insertion methods can include: 8+8 (8 DRAM and 8 PMem), 8+4 (8 DRAMs and 4 PMems), 4+4 (4 DRAMs and 4 PMems), 12+2 (12 DRAMs and 2 PMems), 8+1 (8 DRAMs and 1 PMem), 6+1 (6 DRAM and 1 PMem) and so on. Different memory configuration methods need to be optimized with the corresponding service quality optimization scheme when the server is started, in order to give full play to the best performance of the server memory. However, the current service quality optimization scheme needs to be configured by the server maintenance personnel, which increases the workload of the server maintenance personnel. .
发明内容Contents of the invention
本发明实施例是提供一种服务器内存配置方法、装置、电子设备以及计算机可读存储介质,以解决服务器维护人员的工作量大的问题。Embodiments of the present invention provide a server memory configuration method, device, electronic equipment, and computer-readable storage medium, so as to solve the problem of heavy workload of server maintenance personnel.
本发明实施例公开了一种服务器内存配置方法,所述方法包括:The embodiment of the present invention discloses a server memory configuration method, the method comprising:
在启动服务器时,获取所述服务器的服务器内存的内存自动配置选项,其中,所述服务器内存包括动态随机存取内存和持久化内存;When the server is started, the memory automatic configuration option of the server memory of the server is obtained, wherein the server memory includes dynamic random access memory and persistent memory;
当所述服务器内存的内存自动配置选项为启动时,检测所述服务器内存的内存配置方式;When the memory automatic configuration option of the server memory is started, detect the memory configuration mode of the server memory;
根据所述内存配置方式配置所述服务器内存的内存服务质量选项的选项值;Configure the option value of the memory quality of service option of the server memory according to the memory configuration mode;
根据所述内存服务质量选项的选项值对应的服务质量优化方案,对所述持久化内存进行处理。The persistent memory is processed according to the service quality optimization scheme corresponding to the option value of the memory quality of service option.
在一示例性实施例中,所述检测所述服务器内存的内存配置方式,包括:In an exemplary embodiment, the detecting the memory configuration mode of the server memory includes:
检测所述服务器中每个中央处理器的双列直插式存储模块中,所述动态随机存取内存的内存数量和所述持久化内存的内存数量。Detecting the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory in the dual in-line memory module of each CPU in the server.
在一示例性实施例中,所述根据所述内存配置方式配置所述服务器内存的内存服务质量选项的选项值,包括:In an exemplary embodiment, configuring the option value of the memory quality of service option of the server memory according to the memory configuration mode includes:
当所述动态随机存取内存的内存数量和所述持久化内存的内存数量满足预设第一内存配置数量时,将所述服务器内存的内存服务质量选项的选项值配置为第一配置数值,所述第一配置数值具有对应的第一服务质量优化方案;When the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory meet the preset first memory configuration quantity, configure the option value of the memory quality of service option of the server memory as the first configuration value, The first configuration value has a corresponding first quality of service optimization scheme;
当所述动态随机存取内存的内存数量和所述持久化内存的内存数量满足预设第二内存配置数量时,将所述服务器内存的内存服务质量选项的选项值配置为第二配置数值,所述第一配置数值具有对应的第二服务质量优化方案。When the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory meet the preset second memory configuration quantity, configuring the option value of the memory quality of service option of the server memory as a second configuration value, The first configuration value has a corresponding second QoS optimization solution.
在一示例性实施例中,所述根据所述内存配置方式配置所述服务器内存的内存服务质量选项的选项值,还包括:In an exemplary embodiment, configuring the option value of the memory quality of service option of the server memory according to the memory configuration method further includes:
当检测到所述中央处理器的双列直插式存储模块中不存在所述持久化内存时,将所述服务器内存的内存服务质量选项的选项值配置为第三配置数值,所述第三配置数值表征跳过对所述服务器内存进行处理。When it is detected that the persistent memory does not exist in the dual in-line memory module of the central processing unit, the option value of the memory quality of service option of the server memory is configured as a third configuration value, and the third Configure the numeric representation to skip processing the server memory.
在一示例性实施例中,所述根据所述内存服务质量选项对应的服务质量优化方案,对所述服务器内存进行处理,包括:In an exemplary embodiment, the processing of the server memory according to the QoS optimization scheme corresponding to the memory QoS option includes:
根据所述内存服务质量选项对应的服务质量优化方案,对每个中央处理器的所述服务器内存中的所述持久化内存进行处理。The persistent memory in the server memory of each CPU is processed according to the service quality optimization solution corresponding to the memory quality of service option.
在一示例性实施例中,所述方法还包括:In an exemplary embodiment, the method also includes:
显示所述内存服务质量选项的选项值,其中,禁止用户对所述内存服务质量选项的选项值进行配置。Displaying the option value of the memory quality of service option, wherein the user is prohibited from configuring the option value of the memory quality of service option.
在一示例性实施例中,所述方法还包括:In an exemplary embodiment, the method also includes:
当所述服务器内存的内存自动配置选项为禁用时,显示所述内存服务质量选项,其中,允许用户对所述内存服务质量选项的选项值进行配置。When the memory automatic configuration option of the server memory is disabled, the memory quality of service option is displayed, wherein the user is allowed to configure the option value of the memory quality of service option.
本发明实施例还公开了一种服务器内存配置装置,所述装置包括:The embodiment of the present invention also discloses a server memory configuration device, which includes:
内存自动配置选项获取模块,用于获取服务器内存的内存自动配置选项;The memory automatic configuration option acquisition module is used to obtain the memory automatic configuration option of the server memory;
内存配置方式检测模块,用于当所述服务器内存自动配置选项为的启动时,检测所述服务器内存的内存配置方式;The memory configuration mode detection module is used to detect the memory configuration mode of the server memory when the automatic configuration option of the server memory is started;
内存服务质量选项配置模块,用于根据所述内存配置方式配置所述服务器内存的内存服务质量选项的选项值;A memory quality of service option configuration module, configured to configure the option value of the memory quality of service option of the server memory according to the memory configuration mode;
服务器内存优化模块,用于根据所述内存服务质量选项的选项值对应的服务质量优化方案,对所述持久化内存进行处理。The server memory optimization module is configured to process the persistent memory according to the service quality optimization scheme corresponding to the option value of the memory service quality option.
在一示例性实施例中,所述内存配置方式检测模块,具体用于:In an exemplary embodiment, the memory configuration detection module is specifically used for:
检测所述服务器中每个中央处理器的双列直插式存储模块中,所述动态随机存取内存的内存数量和所述持久化内存的内存数量。Detecting the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory in the dual in-line memory module of each CPU in the server.
在一示例性实施例中,所述内存服务质量选项配置模块,具体用于:In an exemplary embodiment, the memory quality of service option configuration module is specifically used for:
当所述动态随机存取内存的内存数量和所述持久化内存的内存数量满足预设第一内存配置数量时,将所述服务器内存的内存服务质量选项的选项值配置为第一配置数值,所述第一配置数值具有对应的第一服务质量优化方案;When the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory meet the preset first memory configuration quantity, configure the option value of the memory quality of service option of the server memory as the first configuration value, The first configuration value has a corresponding first quality of service optimization scheme;
当所述动态随机存取内存的内存数量和所述持久化内存的内存数量满足预设第二内存配置数量时,将所述服务器内存的内存服务质量选项的选项值配置为第二配置数值,所述第一配置数值具有对应的第二服务质量优化方案。When the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory meet the preset second memory configuration quantity, configuring the option value of the memory quality of service option of the server memory as a second configuration value, The first configuration value has a corresponding second QoS optimization solution.
在一示例性实施例中,所述内存服务质量选项配置模块,还具体用于:In an exemplary embodiment, the memory quality of service option configuration module is also specifically used for:
当检测到所述中央处理器的双列直插式存储模块中不存在所述持久化内存时,将所述服务器内存的内存服务质量选项的选项值配置为第三配置数值,所述第三配置数值表征跳过对所述服务器内存进行处理。When it is detected that the persistent memory does not exist in the dual in-line memory module of the central processing unit, the option value of the memory quality of service option of the server memory is configured as a third configuration value, and the third Configure the numeric representation to skip processing the server memory.
在一示例性实施例中,所述根服务器内存优化模块,具体用于:In an exemplary embodiment, the root server memory optimization module is specifically used for:
根据所述内存服务质量选项对应的服务质量优化方案,对每个中央处理器的所述服务器内存中的所述持久化内存进行处理。The persistent memory in the server memory of each CPU is processed according to the service quality optimization solution corresponding to the memory quality of service option.
在一示例性实施例中,所述装置还包括:第一显示模块,用于:In an exemplary embodiment, the device further includes: a first display module, configured to:
显示所述内存服务质量选项的选项值,其中,禁止用户对所述内存服务质量选项的选项值进行配置。Displaying the option value of the memory quality of service option, wherein the user is prohibited from configuring the option value of the memory quality of service option.
在一示例性实施例中,所述装置还包括:第二显示模块,用于:In an exemplary embodiment, the device further includes: a second display module, configured to:
当所述服务器内存的内存自动配置选项为禁用时,显示所述内存服务质量选项,其中,允许用户对所述内存服务质量选项的选项值进行配置。When the memory automatic configuration option of the server memory is disabled, the memory quality of service option is displayed, wherein the user is allowed to configure the option value of the memory quality of service option.
本发明实施例还公开了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口以及所述存储器通过所述通信总线完成相互间的通信;The embodiment of the present invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;
所述存储器,用于存放计算机程序;The memory is used to store computer programs;
所述处理器,用于执行存储器上所存放的程序时,实现如本发明实施例所述的方法。The processor is configured to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
本发明实施例还公开了一种计算机程序产品,该程序产品被存储在存储介质中,该计算机程序产品被至少一个处理器执行以实现如本发明实施例所述的方法。The embodiment of the present invention also discloses a computer program product, the program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the method described in the embodiment of the present invention.
本发明实施例还公开了一种计算机可读存储介质,其上存储有指令,当由一个或多个处理器执行时,使得所述处理器执行如本发明实施例所述的方法。The embodiment of the present invention also discloses a computer-readable storage medium, on which instructions are stored, and when executed by one or more processors, the processors execute the method described in the embodiment of the present invention.
本发明实施例包括以下优点:Embodiments of the present invention include the following advantages:
在本发明实施例中,对于包括服务器内存包括动态随机存取内存和持久化内存的服务器,在启动服务器时,获取服务器的服务器内存的内存自动配置选项,其中,当服务器内存的内存自动配置选项为启动时,检测服务器内存的内存配置方式,根据内存配置方式配置服务器内存的内存服务质量选项的选项值,从而使得服务器可以根据内存服务质量选项的选项值对应的服务质量优化方案,对持久化内存进行处理。在具体实现中,在服务器中针对内存服务质量选项的选项值分别设置了对应的服务质量优化方案,基于此,本发明实施例在服务器中添加了内存自动配置选项,在内存自动配置选项为启动时,可以根据服务器内存的内存配置方式,自动配置合适的服务器内存的内存服务质量选项的选项值,从而可以基于内存服务质量选项的选项值对应的服务质量优化方案,对持久化内存进行优化处理,以发挥出服务器内存的最佳性能,进而从整体上增强服务器的性能,同时也减少了服务器维护人员的工作量。In the embodiment of the present invention, for a server that includes server memory including dynamic random access memory and persistent memory, when the server is started, the memory automatic configuration option of the server memory of the server is obtained, wherein, when the memory automatic configuration option of the server memory To detect the memory configuration mode of the server memory at startup, and configure the option value of the memory quality of service option of the server memory according to the memory configuration mode, so that the server can optimize the service quality according to the option value of the memory quality of service option. memory for processing. In a specific implementation, corresponding service quality optimization schemes are respectively set for the option values of the memory quality of service option in the server. Based on this, the embodiment of the present invention adds a memory automatic configuration option in the server, and the memory automatic configuration option is Start , according to the memory configuration method of the server memory, the option value of the memory quality of service option of the server memory can be automatically configured, so that the persistent memory can be optimized based on the service quality optimization scheme corresponding to the option value of the memory quality of service option , so as to bring out the best performance of the server memory, thereby enhancing the performance of the server as a whole, and reducing the workload of server maintenance personnel.
附图说明Description of drawings
图1是本发明实施例中提供的一种服务器内存配置方法的步骤流程图;FIG. 1 is a flow chart of the steps of a server memory configuration method provided in an embodiment of the present invention;
图2是本发明实施例中提供的另一种服务器内存配置方法的步骤流程图;FIG. 2 is a flowchart of steps of another server memory configuration method provided in an embodiment of the present invention;
图3是本发明实施例中提供的一种对服务器内存优化配置的流程图;FIG. 3 is a flow chart of optimizing server memory configuration provided in an embodiment of the present invention;
图4是本发明实施例中提供的一种服务器内存配置装置的结构框图;FIG. 4 is a structural block diagram of a server memory configuration device provided in an embodiment of the present invention;
图5是实现本发明各个实施例的一种电子设备的硬件结构示意图。Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
具体实施方式detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
对本发明实施例涉及的部分术语进行介绍:Some terms involved in the embodiments of the present invention are introduced:
BIOS:基本输入输出系统,Basic Input Output System。BIOS: Basic Input Output System, Basic Input Output System.
PMem:持久内存,Persistent Memory。PMem: persistent memory, Persistent Memory.
BPS:持久内存模块,代号“Barlow Pass”。BPS: Persistent memory module, codenamed "Barlow Pass".
Qos:服务质量,Quality of Service。Qos: Quality of Service, Quality of Service.
参照图1,示出了本发明实施例中提供的一种服务器内存配置方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of a server memory configuration method provided in an embodiment of the present invention, which may specifically include the following steps:
步骤101、在启动服务器时,获取所述服务器的服务器内存的内存自动配置选项,其中,所述服务器内存包括动态随机存取内存和持久化内存。
在具体实现中,服务器中通常会针对服务器内存设置服务质量选项,服务器维护人员通过对服务质量选项选择合适的选项值,可以在服务器启动时根据选项值对应的服务质量优化方案,对持久化内存进行优化处理,从而可以发挥出服务器内存的最佳性能。In the specific implementation, the server usually sets the service quality option for the server memory. By selecting the appropriate option value for the service quality option, the server maintenance personnel can optimize the service quality according to the option value when the server starts, and optimize the persistent memory. Optimize the processing so that the best performance of the server memory can be brought into play.
作为一个具体示例,服务器内存可以包括持久内存PMem和动态随机存取内存DRAM,对于包括持久内存PMem的模块,通常也被称为持久内存模块BPS。其中,PMem是新一代的存储介质,具备高存储密度、高速读写性能、低静态功耗等优点,弥补了DRAM产品的不足,且成本低于DRAM,实现高性价比的大容量内存与对数据持久性的结合。可以理解,将PMem和DRAM相结合,合理利用服务器硬件资源,并充分发挥两种模块的优势,将大幅提升服务器性能。As a specific example, the server memory may include a persistent memory PMem and a dynamic random access memory DRAM, and a module including the persistent memory PMem is also generally called a persistent memory module BPS. Among them, PMem is a new generation of storage media, which has the advantages of high storage density, high-speed read and write performance, and low static power consumption. It makes up for the shortcomings of DRAM products, and its cost is lower than that of DRAM. The combination of persistence. It can be understood that combining PMem and DRAM, rationally using server hardware resources, and giving full play to the advantages of the two modules will greatly improve server performance.
PMem和DRAM都可以封装在服务器的双列直插式存储模块DIMMS中,PMem与DRAM驻留在同一总线/通道上,并且PMem可以采取与DRAM相同的方式来存储易失性数据。其中,服务器中预先设置了针对PMem的内存服务质量选项,即,PMem Qos(Module Quality ofService,持久内存服务质量)选项,通过设置PMem Qos选项可以防止DRAM和整个系统的带宽在同时使用了PMem的情况下下降,不同的PMem Qos选项的选项值具有对应的服务质量优化方案。Both PMem and DRAM can be packaged in the server's dual in-line memory module DIMMS, PMem resides on the same bus/channel as DRAM, and PMem can store volatile data in the same way as DRAM. Among them, the memory quality of service option for PMem is preset in the server, that is, the PMem Qos (Module Quality of Service, persistent memory quality of service) option, by setting the PMem Qos option can prevent DRAM and the bandwidth of the entire system from using the PMem at the same time. The case falls, and the option values of different PMem Qos options have corresponding QoS optimization schemes.
BIOS(Basic Input Output System,基本输入输出系统),作为服务器主板最底层的、最直接的硬件设置和控制的管理者,BIOS功能的优化,能够提高服务器的易用性,可以针对不同的配置情况,通过设置相关选项从而提高服务器的性能。BIOS (Basic Input Output System), as the bottom layer of the server motherboard, the most direct hardware setting and control manager, the optimization of BIOS functions can improve the usability of the server, and can be used for different configurations , to improve server performance by setting related options.
在本发明实施例中,在服务器中在BIOS系统添加内存自动配置选项,基于该内存自动配置选项是启动(Enabled)或者禁用(Disabled),来确定是否需要自动配置服务质量选项的选项值。作为一个具体示例,对于包括PMem的服务器,在服务器中可以添加PMem QosAuto Configuration选项(内存自动配置选项),用来设置是否开启自动配置PMem Qos选项,其中,PMem Qos Auto Configuration选项的默认值为启Enabled,具体地,当PMem QosAuto Configuration选项的选项值为Enabled时,服务器会在开机时根据内存配置方式按照预设规则自动配置PMem Qos选项,且在BIOS setup界面(基本输入输出系统启动界面)下PMem Qos选项变灰色,表示此时无法由用户对PMem Qos选项进行手动设置;当PMem QosAuto Configuration选项的选项值为Disable时,服务器开机时不会自动配置PMem Qos选项,此时,BIOS setup界面下的PMem Qos选项不是灰色,表示此时允许用户在BIOS setup界面下对PMem Qos选项进行设置。In the embodiment of the present invention, the memory automatic configuration option is added in the BIOS system in the server, and based on whether the memory automatic configuration option is enabled (Enabled) or disabled (Disabled), it is determined whether to automatically configure the option value of the quality of service option. As a specific example, for a server including PMem, the PMem QosAuto Configuration option (memory automatic configuration option) can be added to the server to set whether to enable the automatic configuration of the PMem Qos option, wherein the default value of the PMem Qos Auto Configuration option is enabled Enabled, specifically, when the option value of the PMem QosAuto Configuration option is Enabled, the server will automatically configure the PMem Qos option according to the preset rules according to the memory configuration mode when the server is turned on, and the BIOS setup interface (basic input and output system startup interface) will automatically configure the PMem Qos option. The PMem Qos option turns gray, indicating that the user cannot manually set the PMem Qos option at this time; when the option value of the PMem QosAuto Configuration option is Disabled, the server will not automatically configure the PMem Qos option when it is powered on. At this time, the BIOS setup interface The PMem Qos option is not gray, which means that the user is allowed to set the PMem Qos option in the BIOS setup interface.
步骤102、当所述服务器内存的内存自动配置选项为启动时,检测所述服务器内存的内存配置方式。
步骤103、根据所述内存配置方式配置所述服务器内存的内存服务质量选项的选项值。
当服务器内存的内存自动配置选项为启动(Enabled)时,将检测服务器内存的内存配置方式,从而可以根据内存配置方式,来自动配置服务器内存的内存服务质量选项的选项值。具体地,内存配置方式是指的服务器内存的内存插法,即指的是在服务器中DIMMS上PMem和DRAM插入的数量,举例来说,服务器可以是双CPU(central processing unit,中央处理器)的结构,每个CPU有16个DIMMS,因此服务器上可以共有32个内存插槽位,即每台服务器可插入32根服务器内存,也就决定了当服务器中DRAM和PMem同时存在时,服务器存在多种内存插法,常见的DRAM+PMem内存插法可以包括:8+8(8条DRAM和8条PMem),8+4(8条DRAM和4条PMem),4+4(4条DRAM和4条PMem),12+2(12条DRAM和2条PMem),8+1(8条DRAM和1条PMem),6+1(6条DRAM和1条PMem)等等。When the memory automatic configuration option of the server memory is Enabled, the memory configuration mode of the server memory will be detected, so that the option value of the memory quality of service option of the server memory can be automatically configured according to the memory configuration mode. Specifically, the memory configuration method refers to the memory insertion method of the server memory, which refers to the number of PMem and DRAM inserted on the DIMMS in the server. For example, the server can be a dual CPU (central processing unit, central processing unit) The structure, each CPU has 16 DIMMS, so there can be 32 memory slots on the server, that is, each server can be inserted into 32 server memory, which also determines that when DRAM and PMem exist in the server at the same time, the server exists A variety of memory insertion methods, common DRAM+PMem memory insertion methods can include: 8+8 (8 DRAM and 8 PMem), 8+4 (8 DRAM and 4 PMem), 4+4 (4 DRAM and 4 PMems), 12+2 (12 DRAMs and 2 PMems), 8+1 (8 DRAMs and 1 PMem), 6+1 (6 DRAMs and 1 PMem) and so on.
步骤104、根据所述内存服务质量选项的选项值对应的服务质量优化方案,对所述持久化内存进行处理。Step 104: Process the persistent memory according to the QoS optimization scheme corresponding to the option value of the memory QoS option.
在本发明实施例中,在自动根据内存配置方式配置服务器内存的内存服务质量选项的选项值时,就可以根据内存服务质量选项的选项值所对应的服务质量优化方案,对持久化内存进行优化处理,以发挥出服务器内存的最佳性能。需要注意的是,本发明实施例是自动基于服务器内存的内存配置方式,来对内存服务质量选项的选项值进行配置,进而采用选项值对应的服务质量优化方案对持久化内存进行优化处理,因此可以无需服务器维护人员配置,减少了服务器维护人员的工作量。In the embodiment of the present invention, when the option value of the memory quality of service option of the server memory is automatically configured according to the memory configuration mode, the persistent memory can be optimized according to the service quality optimization scheme corresponding to the option value of the memory quality of service option processing to get the best performance out of the server memory. It should be noted that the embodiment of the present invention automatically configures the option value of the memory quality of service option based on the memory configuration method of the server memory, and then uses the service quality optimization scheme corresponding to the option value to optimize the persistent memory. Therefore There is no need for server maintenance personnel to configure, which reduces the workload of server maintenance personnel.
在上述服务器内存配置方法中,对于包括服务器内存包括动态随机存取内存和持久化内存的服务器,在启动服务器时,获取服务器的服务器内存的内存自动配置选项,其中,当服务器内存的内存自动配置选项为启动时,检测服务器内存的内存配置方式,根据内存配置方式配置服务器内存的内存服务质量选项的选项值,从而使得服务器可以根据内存服务质量选项的选项值对应的服务质量优化方案,对持久化内存进行处理。在具体实现中,在服务器中针对内存服务质量选项的选项值分别设置了对应的服务质量优化方案,基于此,本发明实施例在服务器中添加了内存自动配置选项,在内存自动配置选项为启动时,可以根据服务器内存的内存配置方式,自动配置合适的服务器内存的内存服务质量选项的选项值,从而可以基于内存服务质量选项的选项值对应的服务质量优化方案,对持久化内存进行优化处理,以发挥出服务器内存的最佳性能,进而从整体上增强服务器的性能,同时也减少了服务器维护人员的工作量。In the above server memory configuration method, for a server including server memory including dynamic random access memory and persistent memory, when the server is started, the memory automatic configuration option of the server memory of the server is obtained, wherein, when the memory of the server memory is automatically configured The option is to detect the memory configuration mode of the server memory at startup, and configure the option value of the memory quality of service option of the server memory according to the memory configuration mode, so that the server can optimize the service quality according to the option value of the memory quality of service option. memory for processing. In a specific implementation, corresponding service quality optimization schemes are respectively set for the option values of the memory quality of service option in the server. Based on this, the embodiment of the present invention adds a memory automatic configuration option in the server, and the memory automatic configuration option is Start , according to the memory configuration method of the server memory, the option value of the memory quality of service option of the server memory can be automatically configured, so that the persistent memory can be optimized based on the service quality optimization scheme corresponding to the option value of the memory quality of service option , so as to bring out the best performance of the server memory, thereby enhancing the performance of the server as a whole, and reducing the workload of server maintenance personnel.
参照图2,示出了本发明实施例中提供的另一种服务器内存配置方法的步骤流程图,所具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of steps of another server memory configuration method provided in an embodiment of the present invention, which may specifically include the following steps:
步骤201、在启动服务器时,获取所述服务器的服务器内存的内存自动配置选项,其中,所述服务器内存包括动态随机存取内存和持久化内存。
步骤202、当所述服务器内存的内存自动配置选项为启动时,检测所述服务器中每个中央处理器的双列直插式存储模块中,所述动态随机存取内存的内存数量和所述持久化内存的内存数量。
在本发明实施例中,若PMem Qos Auto Configuration选项的选项值为Enabled时,服务器开机后在BIOS运行过程中的PEI阶段检测当前系统中单个CPU的DIMMS上所存在的内存配置方式,即,单个CPU的DIMMS上的DRAM与PMem分别对应的内存数量,从而可以根据DRAM与PMem内存数量自动配置PMem Qos选项的选项值。In the embodiment of the present invention, if the option value of the PMem Qos Auto Configuration option is Enabled, the server detects the memory configuration mode existing on the DIMMS of a single CPU in the current system at the PEI stage in the BIOS running process after the server is powered on, that is, a single The DRAM and PMem on the DIMMS of the CPU correspond to the memory quantities respectively, so that the option value of the PMem Qos option can be automatically configured according to the DRAM and PMem memory quantities.
步骤203、当所述动态随机存取内存的内存数量和所述持久化内存的内存数量满足预设第一内存配置数量时,将所述服务器内存的内存服务质量选项的选项值配置为第一配置数值,所述第一配置数值具有对应的第一服务质量优化方案。
步骤204、当所述动态随机存取内存的内存数量和所述持久化内存的内存数量满足预设第二内存配置数量时,将所述服务器内存的内存服务质量选项的选项值配置为第二配置数值,所述第一配置数值具有对应的第二服务质量优化方案。
在本发明实施例中,当检测到单个CPU的DIMMS中DRAM+PMem为8+8的内存配置方式时,即内存数量满足第一内存配置数量时,自动将PMem Qos选项的选项值设置为:Profile1-Optimized for 8PMem modules per socket(第一配置数值),该选项值表示可以使用对应的第一服务质量优化方案对PMem进行优化;当检测到单个CPU的DIMMS中DRAM+PMem为8+4、4+4、12+2、8+1、6+1的内存配置方式时,即内存数量满足第二内存配置数量时,自动将PMem Qos选项的选项值设置为Profile 2-Optimized for4/2/1PMem modules per socket(第二配置数值),该选项值表示可以使用对应的第二服务质量优化方案对PMem进行优化。In the embodiment of the present invention, when it is detected that DRAM+PMem is the memory configuration mode of 8+8 in the DIMMS of a single CPU, that is, when the memory quantity satisfies the first memory configuration quantity, the option value of the PMem Qos option is automatically set to: Profile1-Optimized for 8PMem modules per socket (the first configuration value), this option value indicates that PMem can be optimized using the corresponding first service quality optimization scheme; when it is detected that DRAM+PMem in the DIMMS of a single CPU is 8+4, 4+4, 12+2, 8+1, 6+1 memory configuration mode, that is, when the amount of memory meets the second memory configuration amount, the option value of the PMem Qos option is automatically set to Profile 2-Optimized for4/2/ 1PMem modules per socket (second configuration value), this option value indicates that the corresponding second service quality optimization scheme can be used to optimize PMem.
步骤205、当检测到所述中央处理器的双列直插式存储模块中不存在所述持久化内存时,将所述服务器内存的内存服务质量选项的选项值配置为第三配置数值,所述第三配置数值表征跳过对所述服务器内存进行处理。
在本发明实施例中,当检测到CPU的DIMMS中不存在PMem时,自动将PMem Qos选项的选项值设置为Pmem Qos Disabled(第三配置数值),该选项值表示不需要对持久化内存进行优化处理。In the embodiment of the present invention, when detecting that there is no PMem in the DIMMS of the CPU, the option value of the PMem Qos option is automatically set to Pmem Qos Disabled (the third configuration value), and this option value represents that the persistent memory does not need to be Optimized processing.
在一示例性实施例中,所述方法还可以包括如下步骤:显示所述内存服务质量选项的选项值,其中,禁止用户对所述内存服务质量选项的选项值进行配置。In an exemplary embodiment, the method may further include the following step: displaying the option value of the memory quality of service option, wherein the user is prohibited from configuring the option value of the memory quality of service option.
在本发明实施例中,在服务器的开机过程进入在BIOS运行过程中的DXE阶段后,将在BIOS运行过程中的PEI阶段配置的PMem Qos选项的选项值的当前至同步到BIOS setup界面的PMem Qos选项中,并在BIOS setup界面下进行显示,可以用于提示服务器测试人员该服务器使用了何种服务质量优化方案。In the embodiment of the present invention, after the boot process of the server enters the DXE stage in the BIOS running process, the current to the option value of the PMem Qos option configured in the PEI stage in the BIOS running process is synchronized to the PMem of the BIOS setup interface In the Qos option, and displayed under the BIOS setup interface, it can be used to prompt the server tester which service quality optimization solution the server uses.
步骤206、根据所述内存服务质量选项对应的服务质量优化方案,对每个中央处理器的所述服务器内存中的所述持久化内存进行处理。Step 206: Process the persistent memory in the server memory of each central processing unit according to the QoS optimization scheme corresponding to the memory QoS option.
在本发明实施例中,对于有包括PMem的服务器,在自动根据内存配置方式配置服务器内存的内存服务质量选项的选项值时,就可以根据内存服务质量选项的选项值所对应的服务质量优化方案,对PMem进行优化处理,以发挥出服务器内存的最佳性能。In the embodiment of the present invention, for a server including PMem, when the option value of the memory quality of service option of the server memory is automatically configured according to the memory configuration mode, the service quality optimization scheme corresponding to the option value of the memory quality of service option can be , to optimize the PMem to maximize the performance of the server memory.
具体地,当PMem Qos选项的选项值设置为Profile 1-Optimized for 8PMemmodules per socket时,服务器每个CPU会对8个PMem模块进行Qos方面的优化;当PMem Qos选项的选项值设置为Profile 2-Optimized for 4/2/1PMem modules per socket时,服务器每个CPU会对4个、2个或1个PMem模块进行Qos方面的优化。Specifically, when the option value of the PMem Qos option is set to Profile 1-Optimized for 8PMemmodules per socket, each CPU of the server will perform Qos optimization on 8 PMem modules; when the option value of the PMem Qos option is set to Profile 2- When Optimized for 4/2/1PMem modules per socket, each CPU of the server will optimize Qos for 4, 2 or 1 PMem modules.
在一示例性实施例中,所述方法还可以包括如下步骤:当所述服务器内存的内存自动配置选项为禁用时,显示所述内存服务质量选项,其中,允许用户对所述内存服务质量选项的选项值进行配置。In an exemplary embodiment, the method may further include the following steps: when the memory automatic configuration option of the server memory is disabled, displaying the memory quality of service option, wherein the user is allowed to configure the memory quality of service option The option value is configured.
在本发明实施例中,若PMem Qos Auto Configuration选项的选项值为Disabled且服务器存在PMem时,BIOS setup界面中显示PMem Qos选项,可供用户根据需求手动设置PMem Qos选项的选项值,可选地,用户可设置的选项值分别包括“PMem Qos Disabled”、“Profile 1-Optimized for 8PMem modules per socket”和“Profile 2-Optimized for4/2/1PMem modules per socket”等等。In the embodiment of the present invention, if the option value of the PMem Qos Auto Configuration option is Disabled and there is PMem in the server, the PMem Qos option is displayed in the BIOS setup interface, and the option value of the PMem Qos option can be manually set by the user according to requirements, optionally , the user-settable option values include "PMem Qos Disabled", "Profile 1-Optimized for 8PMem modules per socket" and "Profile 2-Optimized for 4/2/1PMem modules per socket" and so on.
综上可知,本发明实施例通过检测当前服务器内存不同的内存配置方式,从而自动配置PMem Qos选项的选项值,解决了服务器在同时使用了DRAM和PMem内存时,DRAM和整个系统的带宽下降的情况,防止开发人员和维护人员因不了解BPS内存的内存配置方法而导致的服务器降带宽问题,可以有效的减少开发和维护人员的工作量,在服务器后期更改内存配置方式时也能够自动进行配置,避免再次设置BIOS系统中的选项。In summary, the embodiment of the present invention automatically configures the option value of the PMem Qos option by detecting different memory configuration modes of the current server memory, and solves the problem that the bandwidth of the DRAM and the entire system decreases when the server uses DRAM and PMem memory at the same time. In this case, it can prevent developers and maintenance personnel from reducing the bandwidth of the server caused by ignorance of the memory configuration method of BPS memory, which can effectively reduce the workload of development and maintenance personnel, and can also automatically configure when the memory configuration method is changed in the later stage of the server , to avoid setting the options in the BIOS system again.
为了使本领域技术人员更好地理解本发明实施例,以下采用一个具体示例进行说明。参照图3,是本发明实施例的一种对服务器内存优化配置的流程图,具体说明如下:In order to enable those skilled in the art to better understand the embodiment of the present invention, a specific example is used below for description. With reference to Fig. 3, it is a kind of flow chart of server memory optimization configuration according to the embodiment of the present invention, specifically as follows:
1、添加PMem Qos Auto Configuration选项,用来设置是否开启自动配置PMemQos选项的选项值,默认值为Enabled。当PMem Qos Auto Configuration选项的选项值为Enabled时,服务器会在开机时根据内存配置信息按照预设规则自动配置PMem Qos选项的选项值,且在BIOS setup界面下显示PMem Qos选项变灰色,表示无法由用户进行手动设置;当PMem Qos Auto Configuration选项的选项值设置为Disable时,服务器开机时不会自动配置PMem Qos选项的选项值,允许用户在BIOS setup界面下对PMem Qos选项的选项值进行设置。1. Add the PMem Qos Auto Configuration option, which is used to set whether to enable the option value of the automatic configuration PMemQos option. The default value is Enabled. When the option value of the PMem Qos Auto Configuration option is Enabled, the server will automatically configure the option value of the PMem Qos option according to the preset rules according to the memory configuration information at startup, and the PMem Qos option will be grayed out in the BIOS setup interface, indicating that it cannot Manually set by the user; when the option value of the PMem Qos Auto Configuration option is set to Disable, the option value of the PMem Qos option will not be automatically configured when the server is powered on, allowing the user to set the option value of the PMem Qos option in the BIOS setup interface .
2、若PMem Qos Auto Configuration选项的选项值为Enabled时,服务器开机后在PEI阶段检测当前系统中单个CPU的DIMMS上所存在的内存配置方式,即,可以根据DRAM与PMem内存数量自动配置PMem Qos选项的选项值。具体地,当检测到单个CPU的DIMMS上DRAM+PMem的内存配置方式为8+8配置时,自动将PMem Qos选项的选项值设置为Profile 1-Optimized for 8PMem modules per socket;当检测到单个CPU的DIMMS上DRAM+PMem的内存配置方式为8+4、4+4、12+2、8+1、6+1配置时,自动将PMem Qos选项的选项值设置为Profile 2-Optimized for 4/2/1PMem modules per socket;当检测到单个CPU的DIMMS上不存在PMem时,自动将PMem Qos选项的选项值设置为Pmem Qos Disabled。在服务器的开机过程进入DXE阶段后,将上述的PMem Qos选项的选项值同步到BIOS setup界面的PMem Qos选项的选项值中,并在BIOS setup界面下进行显示。2. If the option value of the PMem Qos Auto Configuration option is Enabled, the server will detect the memory configuration mode existing on the DIMMS of a single CPU in the current system at the PEI stage after the server is powered on, that is, the PMem Qos can be automatically configured according to the amount of DRAM and PMem memory The option value for the option. Specifically, when it is detected that the memory configuration mode of DRAM+PMem on the DIMMS of a single CPU is 8+8 configuration, the option value of the PMem Qos option is automatically set to Profile 1-Optimized for 8PMem modules per socket; when a single CPU is detected When the DRAM+PMem memory configuration mode on the DIMMS is 8+4, 4+4, 12+2, 8+1, 6+1 configuration, the option value of the PMem Qos option is automatically set to Profile 2-Optimized for 4/ 2/1PMem modules per socket; when it is detected that there is no PMem on the DIMMS of a single CPU, the option value of the PMem Qos option is automatically set to Pmem Qos Disabled. After the booting process of the server enters the DXE stage, the option value of the above-mentioned PMem Qos option is synchronized to the option value of the PMem Qos option on the BIOS setup interface, and displayed on the BIOS setup interface.
3、若PMem Qos Auto Configuration选项的选项值为Disabled、且单个CPU的DIMMS上存在PMem时,BIOS setup界面中显示PMem Qos选项的选项值可供用户根据需求手动设置,可设置的选项值分别为“PMem Qos Disabled”、“Profile 1-Optimized for 8PMemmodules per socket”和“Profile2-Optimized for 4/2/1PMem modules per socket”等等。3. If the option value of the PMem Qos Auto Configuration option is Disabled, and PMem exists on the DIMMS of a single CPU, the option value of the PMem Qos option displayed on the BIOS setup interface can be manually set by the user according to the requirement. The option values that can be set are respectively "PMem Qos Disabled", "Profile 1-Optimized for 8PMemmodules per socket" and "Profile2-Optimized for 4/2/1PMem modules per socket" and so on.
本发明实施例提出一种对BPS内存优化配置的方法,设置PMem Qos AutoConfiguration选项来确定是否开启自动配置PMem Qos选项,该PMem Qos选项在服务完全开启时,可以通过开机时检测到的内存配置方式对PMem Qos选项的选项值进行自动配置,使服务器在不同数量BPS内存配置方式下自动配置为PMem Qos选项最适合的选项值,以发挥出BPS内存的最佳性能,进而从整体上增强服务器的性能,同时也减少了服务器维护人员的工作量。The embodiment of the present invention proposes a method for optimizing the configuration of BPS memory, setting the PMem Qos AutoConfiguration option to determine whether to enable the automatic configuration of the PMem Qos option, the PMem Qos option can be detected through the memory configuration mode when the service is fully enabled Automatically configure the option value of the PMem Qos option, so that the server automatically configures the most suitable option value for the PMem Qos option under different BPS memory configuration methods, so as to exert the best performance of the BPS memory, and then enhance the overall performance of the server performance, but also reduces the workload of server maintenance personnel.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action sequence, because According to the embodiment of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图4,示出了本发明实施例中提供的一种服务器内存配置装置的结构框图,具体可以包括如下模块:Referring to FIG. 4, it shows a structural block diagram of a server memory configuration device provided in an embodiment of the present invention, which may specifically include the following modules:
内存自动配置选项获取模块401,用于获取服务器内存的内存自动配置选项;The memory automatic configuration option obtaining module 401 is used to obtain the memory automatic configuration option of the server memory;
内存配置方式检测模块402,用于当所述服务器内存自动配置选项为的启动时,检测所述服务器内存的内存配置方式;The memory configuration mode detection module 402 is used to detect the memory configuration mode of the server memory when the automatic configuration option of the server memory is started;
内存服务质量选项配置模块403,用于根据所述内存配置方式配置所述服务器内存的内存服务质量选项的选项值;A memory quality of service option configuration module 403, configured to configure the option value of the memory quality of service option of the server memory according to the memory configuration mode;
服务器内存优化模块404,用于根据所述内存服务质量选项的选项值对应的服务质量优化方案,对所述持久化内存进行处理。The server memory optimization module 404 is configured to process the persistent memory according to the service quality optimization scheme corresponding to the option value of the memory service quality option.
在一示例性实施例中,所述内存配置方式检测模块402,具体用于:In an exemplary embodiment, the memory configuration detection module 402 is specifically used for:
检测所述服务器中每个中央处理器的双列直插式存储模块中,所述动态随机存取内存的内存数量和所述持久化内存的内存数量。Detecting the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory in the dual in-line memory module of each CPU in the server.
在一示例性实施例中,所述内存服务质量选项配置模块403,具体用于:In an exemplary embodiment, the memory quality of service option configuration module 403 is specifically used for:
当所述动态随机存取内存的内存数量和所述持久化内存的内存数量满足预设第一内存配置数量时,将所述服务器内存的内存服务质量选项的选项值配置为第一配置数值,所述第一配置数值具有对应的第一服务质量优化方案;When the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory meet the preset first memory configuration quantity, configure the option value of the memory quality of service option of the server memory as the first configuration value, The first configuration value has a corresponding first quality of service optimization scheme;
当所述动态随机存取内存的内存数量和所述持久化内存的内存数量满足预设第二内存配置数量时,将所述服务器内存的内存服务质量选项的选项值配置为第二配置数值,所述第一配置数值具有对应的第二服务质量优化方案。When the memory quantity of the dynamic random access memory and the memory quantity of the persistent memory meet the preset second memory configuration quantity, configuring the option value of the memory quality of service option of the server memory as a second configuration value, The first configuration value has a corresponding second QoS optimization scheme.
在一示例性实施例中,所述内存服务质量选项配置模块403,还具体用于:In an exemplary embodiment, the memory quality of service option configuration module 403 is further specifically configured to:
当检测到所述中央处理器的双列直插式存储模块中不存在所述持久化内存时,将所述服务器内存的内存服务质量选项的选项值配置为第三配置数值,所述第三配置数值表征跳过对所述服务器内存进行处理。When it is detected that the persistent memory does not exist in the dual in-line memory module of the central processing unit, the option value of the memory quality of service option of the server memory is configured as a third configuration value, and the third Configure the numeric representation to skip processing the server memory.
在一示例性实施例中,所述根服务器内存优化模块404,具体用于:In an exemplary embodiment, the root server memory optimization module 404 is specifically used for:
根据所述内存服务质量选项对应的服务质量优化方案,对每个中央处理器的所述服务器内存中的所述持久化内存进行处理。The persistent memory in the server memory of each CPU is processed according to the service quality optimization solution corresponding to the memory quality of service option.
在一示例性实施例中,所述装置还包括:第一显示模块,用于:In an exemplary embodiment, the device further includes: a first display module, configured to:
显示所述内存服务质量选项的选项值,其中,禁止用户对所述内存服务质量选项的选项值进行配置。Displaying the option value of the memory quality of service option, wherein the user is prohibited from configuring the option value of the memory quality of service option.
在一示例性实施例中,所述装置还包括:第二显示模块,用于:In an exemplary embodiment, the device further includes: a second display module, configured to:
当所述服务器内存的内存自动配置选项为禁用时,显示所述内存服务质量选项,其中,允许用户对所述内存服务质量选项的选项值进行配置。When the memory automatic configuration option of the server memory is disabled, the memory quality of service option is displayed, wherein the user is allowed to configure the option value of the memory quality of service option.
本发明实施例在服务器中添加了内存自动配置选项,在内存自动配置选项为启动时,可以根据服务器内存的内存配置方式,自动配置合适的服务器内存的内存服务质量选项的选项值,从而可以基于内存服务质量选项的选项值对应的服务质量优化方案,对持久化内存进行优化处理,以发挥出服务器内存的最佳性能,进而从整体上增强服务器的性能,同时也减少了服务器维护人员的工作量。In the embodiment of the present invention, an automatic memory configuration option is added to the server. When the automatic memory configuration option is enabled, an appropriate option value of the memory quality of service option of the server memory can be automatically configured according to the memory configuration mode of the server memory, so that it can be based on The quality of service optimization scheme corresponding to the option value of the memory quality of service option optimizes the persistent memory to maximize the performance of the server memory, thereby enhancing the performance of the server as a whole and reducing the work of server maintenance personnel quantity.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
另外,本发明实施例还提供了一种电子设备,包括:处理器,存储器,存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述服务器内存配置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。In addition, an embodiment of the present invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and operable on the processor. When the computer program is executed by the processor, the above server memory configuration method is implemented. The various processes of the embodiment can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述服务器内存配置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above embodiment of the server memory configuration method can be achieved, and the same Technical effects, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
本发明实施例还提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述服务器内存配置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present invention also provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above embodiment of the server memory configuration method, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
图5为实现本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The
应理解的是,本发明实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the
电子设备通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与电子设备500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The
电子设备500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在电子设备500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The
用户输入单元507可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现电子设备的输入和输出功能,具体此处不做限定。Furthermore, the
接口单元508为外部装置与电子设备500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备500内的一个或多个元件或者可以用于在电子设备500和外部装置之间传输数据。The
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器510是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The
电子设备500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,电子设备500包括一些未示出的功能模块,在此不再赘述。In addition, the
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.
本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211214591.3ACN115543459A (en) | 2022-09-30 | 2022-09-30 | Server memory configuration method and device, electronic equipment and readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211214591.3ACN115543459A (en) | 2022-09-30 | 2022-09-30 | Server memory configuration method and device, electronic equipment and readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN115543459Atrue CN115543459A (en) | 2022-12-30 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211214591.3APendingCN115543459A (en) | 2022-09-30 | 2022-09-30 | Server memory configuration method and device, electronic equipment and readable storage medium |
| Country | Link |
|---|---|
| CN (1) | CN115543459A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116048643A (en)* | 2023-03-08 | 2023-05-02 | 苏州浪潮智能科技有限公司 | Device operation method, system, device, storage medium and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116048643A (en)* | 2023-03-08 | 2023-05-02 | 苏州浪潮智能科技有限公司 | Device operation method, system, device, storage medium and electronic device |
| Publication | Publication Date | Title |
|---|---|---|
| CN108108007B (en) | A processing method for reducing power consumption and a mobile terminal | |
| CN109768926B (en) | A data processing method, terminal device and computer-readable storage medium | |
| CN109885257B (en) | Disk file reading and writing method and device | |
| CN109101327B (en) | Switching of light application and mobile terminal | |
| CN109739300B (en) | Antenna control method and terminal | |
| CN111444237A (en) | Server system, data transmission method and electronic equipment | |
| CN110062104A (en) | Application program launching method, device and mobile terminal | |
| CN110442437A (en) | Application switching method and mobile terminal | |
| CN108469968A (en) | A kind of applied program processing method and mobile terminal | |
| CN108228398A (en) | A kind of abnormality eliminating method and mobile terminal | |
| CN109995862A (en) | A kind of resource regulating method and terminal | |
| CN110796438B (en) | Message sending method and mobile terminal | |
| CN110825474B (en) | Interface display method and device and electronic equipment | |
| CN109101151A (en) | A kind of information display processing method and terminal device | |
| CN108196699A (en) | A kind of method and apparatus of page layout switch | |
| CN108429805B (en) | File downloading processing method, sending terminal and receiving terminal | |
| CN115543459A (en) | Server memory configuration method and device, electronic equipment and readable storage medium | |
| CN108540642B (en) | Operation method of mobile terminal and mobile terminal | |
| CN111475141B (en) | Method and device for generating list and electronic equipment | |
| CN107749761A (en) | A kind of anti-interference method and mobile terminal | |
| CN109286414B (en) | A kind of antenna determination method and terminal | |
| CN115905160B (en) | Verification method and device for data storage, electronic equipment and storage medium | |
| CN115167764B (en) | Data read-write processing method and device, electronic equipment and storage medium | |
| CN107577409B (en) | A kind of processing method of preview image and mobile terminal | |
| CN116244220A (en) | Storage method, device, electronic device and storage medium for cached data |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | Country or region after:China Address after:215000 Jiangsu Province, Suzhou City, Wuzhong District, Wuzhong Economic Development Zone, Guoqiang Street, Guanpu Road No. 1, Building 9 Applicant after:Suzhou Yuannao Intelligent Technology Co.,Ltd. Address before:215000 Jiangsu Province, Suzhou City, Wuzhong District, Wuzhong Economic Development Zone, Guoqiang Street, Guanpu Road No. 1, Building 9 Applicant before:SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before:China |