Normalized low-power-consumption processing method and device based on solid state disk and computer equipment

文档序号:1963437 发布日期:2021-12-14 浏览:26次 中文

阅读说明:本技术 基于固态硬盘的归一化低功耗处理方法、装置及计算机设备 (Normalized low-power-consumption processing method and device based on solid state disk and computer equipment ) 是由 李湘锦 张鹏 贾宗铭 于 2021-09-16 设计创作,主要内容包括:本申请涉及一种基于固态硬盘的归一化低功耗处理方法、装置、计算机设备及存储介质,其中该方法包括:获取基于固态硬盘的归一化低功耗处理请求,若所述请求中包括主机发送的PS3或者PS4命令则进入低功耗处理流程;判断获取的命令为PS3命令还是PS4命令;若获取的命令是PS3命令则支持时间可配置的自动唤醒或主机唤醒;若获取的命令是PS4命令则先进入PS4低功耗处理流程,然后再进入等待主机唤醒状态;在所述等待主机唤醒状态中,一旦接收到主机发送PS0、PS1、PS2中的任意一种命令时,则退出所述低功耗处理流程。本发明通过归一化低功耗处理,实现了简化复杂度,易于维护且灵活性高,速度快且读写性能受影响小。(The application relates to a normalized low-power-consumption processing method and device based on a solid state disk, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a normalization low-power consumption processing request based on a solid state disk, and entering a low-power consumption processing flow if the request comprises a PS3 or PS4 command sent by a host; judging whether the acquired command is a PS3 command or a PS4 command; support time configurable auto-wake or host wake if the retrieved command is a PS3 command; if the obtained command is a PS4 command, the low-power consumption processing flow of the PS4 is firstly entered, and then the state of waiting for the host to wake up is entered; in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of commands of PS0, PS1 and PS2 sent by the host. The invention realizes simplified complexity, easy maintenance, high flexibility, high speed and little influence on the read-write performance by normalization and low power consumption processing.)

1. A normalization low-power consumption processing method based on a solid state disk is characterized by comprising the following steps:

acquiring a normalization low-power consumption processing request based on a solid state disk, and entering a low-power consumption processing flow if the request comprises a PS3 or PS4 command sent by a host;

judging whether the acquired command is a PS3 command or a PS4 command;

support time configurable auto-wake or host wake if the retrieved command is a PS3 command;

if the obtained command is a PS4 command, the low-power consumption processing flow of the PS4 is firstly entered, and then the state of waiting for the host to wake up is entered;

in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of commands of PS0, PS1 and PS2 sent by the host.

2. The normalized low-power-consumption solid-state-disk-based processing method according to claim 1, wherein the step of supporting time-configurable auto-wake or host-wake if the retrieved command is a PS3 command comprises:

setting automatic wake-up time;

the device will automatically wake up when the set wake-up time is reached.

3. The normalized low power consumption solid state disk-based processing method according to claim 2, wherein the step of supporting time-configurable auto-wake or host-wake if the retrieved command is a PS3 command further comprises:

if the automatic wake-up is not needed, entering a wait host wake-up state;

in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of the commands of PS0, PS1 and PS2 sent by the host.

4. The normalized low-power-consumption processing method based on the solid state disk of claim 3, wherein in the step of entering the PS4 low-power-consumption processing flow and then entering the wait-for-host-wakeup state if the obtained command is the PS4 command:

the PS4 low power consumption processing flow further includes a DDR shutdown flow and an ISRAM shutdown flow.

5. A normalized low-power processing device based on a solid state disk, the device comprising:

the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a normalized low-power consumption processing request based on a solid state disk, and if the request comprises a PS3 or PS4 command sent by a host, the request enters a low-power consumption processing flow;

the judging module is used for judging whether the acquired command is a PS3 command or a PS4 command;

a first processing module to support time configurable auto-wake or host wake if the retrieved command is a PS3 command;

the second processing module is used for entering a PS4 low-power consumption processing flow and then entering a host waiting wakeup state if the acquired command is a PS4 command;

a wait wakeup module, configured to, in the wait host wakeup state, exit the low power consumption processing flow upon receiving a command sent by the host from any one of PS0, PS1, and PS 2.

6. The normalized low-power consumption solid-state disk-based processing device according to claim 5, wherein the first processing module is configured to:

setting automatic wake-up time;

the device will automatically wake up when the set wake-up time is reached.

7. The normalized low-power consumption solid state disk-based processing device according to claim 6, wherein the first processing module is further configured to:

if the automatic wake-up is not needed, entering a wait host wake-up state;

in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of the commands of PS0, PS1 and PS2 sent by the host.

8. The solid state disk-based normalized low power consumption processing device according to claim 7, wherein in the second processing module:

the PS4 low power consumption processing flow further includes a DDR shutdown flow and an ISRAM shutdown flow.

9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.

Technical Field

The invention relates to the technical field of solid state disks, in particular to a method and a device for processing normalized low power consumption based on a solid state disk, computer equipment and a storage medium.

Background

With the development of computer technology, computer equipment has become the most powerful utility tool for people today, and the safety and stability of computer equipment are necessary guarantees when people work with computers. Nowadays, the solid state disk is also more and more widely applied due to the characteristics of quick reading and writing, light weight, low energy consumption, small size and the like. The host manages the Power of the SSD through a Power State (PS for short) command of NVME (nonvolatile memory host controller interface), wherein the command mainly comprises a PS0/PS1/PS2/PS3/PS 4.

Currently, in the conventional technology, PS1/2/3 generally refers to CPU processing, and PS4 needs to use a separate power management module to power off the CPU for the purpose of minimum power consumption because of minimum power consumption, which results in high power consumption of PS3 and the CPU processing is not required to power off the CPU. Obviously, the low-power-consumption operation flow in the conventional technology is not normalized, the operation is complex, and the maintainability is relatively poor.

Disclosure of Invention

In view of the foregoing, it is desirable to provide a normalized low power consumption processing method and apparatus based on a solid state disk, a computer device, and a storage medium.

A normalization low-power consumption processing method based on a solid state disk comprises the following steps:

acquiring a normalization low-power consumption processing request based on a solid state disk, and entering a low-power consumption processing flow if the request comprises a PS3 or PS4 command sent by a host;

judging whether the acquired command is a PS3 command or a PS4 command;

support time configurable auto-wake or host wake if the retrieved command is a PS3 command;

if the obtained command is a PS4 command, the low-power consumption processing flow of the PS4 is firstly entered, and then the state of waiting for the host to wake up is entered;

in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of commands of PS0, PS1 and PS2 sent by the host.

In one embodiment, the step of supporting time-configurable auto-wake or host-wake if the retrieved command is a PS3 command comprises:

setting automatic wake-up time;

the device will automatically wake up when the set wake-up time is reached.

In one embodiment, the step of supporting time-configurable auto-wake or host-wake if the retrieved command is a PS3 command further comprises:

if the automatic wake-up is not needed, entering a wait host wake-up state;

in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of the commands of PS0, PS1 and PS2 sent by the host.

In one embodiment, if the obtained command is the PS4 command, the PS4 low power consumption processing procedure is entered first, and then the step of waiting for the host to wake up is entered:

the PS4 low power consumption processing flow further includes a DDR shutdown flow and an ISRAM shutdown flow.

A normalized low power consumption processing apparatus based on a solid state disk, the apparatus comprising:

the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a normalized low-power consumption processing request based on a solid state disk, and if the request comprises a PS3 or PS4 command sent by a host, the request enters a low-power consumption processing flow;

the judging module is used for judging whether the acquired command is a PS3 command or a PS4 command;

a first processing module to support time configurable auto-wake or host wake if the retrieved command is a PS3 command;

the second processing module is used for entering a PS4 low-power consumption processing flow and then entering a host waiting wakeup state if the acquired command is a PS4 command;

a wait wakeup module, configured to, in the wait host wakeup state, exit the low power consumption processing flow upon receiving a command sent by the host from any one of PS0, PS1, and PS 2.

In one embodiment, the first processing module is configured to:

setting automatic wake-up time;

the device will automatically wake up when the set wake-up time is reached.

In one embodiment, the first processing module is further configured to:

if the automatic wake-up is not needed, entering a wait host wake-up state;

in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of the commands of PS0, PS1 and PS2 sent by the host.

In one embodiment, in the second processing module:

the PS4 low power consumption processing flow further includes a DDR shutdown flow and an ISRAM shutdown flow.

A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above methods when executing the computer program.

A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods described above.

According to the method, the device, the computer equipment and the storage medium for processing the normalized low power consumption based on the solid state disk, the request for processing the normalized low power consumption based on the solid state disk is obtained, and if the request comprises a PS3 or PS4 command sent by a host, a low power consumption processing flow is entered; judging whether the acquired command is a PS3 command or a PS4 command; support time configurable auto-wake or host wake if the retrieved command is a PS3 command; if the obtained command is a PS4 command, the low-power consumption processing flow of the PS4 is firstly entered, and then the state of waiting for the host to wake up is entered; in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of commands of PS0, PS1 and PS2 sent by the host. The invention combines PS3 with a low power consumption processing flow similar to PS4 into a unified flow to obviously reduce the power consumption of PS3, and meets the requirement of supporting the rapid exit of PS3. The invention realizes simplified complexity, easy maintenance, high flexibility, high speed and little influence on the read-write performance by normalization and low power consumption processing.

Drawings

FIG. 1 is a diagram illustrating PS state transition in the prior art;

FIG. 2 is a flowchart illustrating a normalized low power consumption processing method based on a solid state disk according to an embodiment;

FIG. 3 is a flowchart illustrating a normalized low power consumption processing method based on a solid state drive according to another embodiment;

FIG. 4 is a flow diagram that illustrates the normalization of low power processing states in one embodiment;

FIG. 5 is a block diagram illustrating an embodiment of a normalized low power consumption processing apparatus based on a solid state disk;

FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

Currently, referring to the schematic diagram of PS State transition shown in fig. 1, in the conventional Power consumption control method of SSD, PS0/1/2/3/4 is Power State command, specifically:

PS 0: a full speed operating condition. PS 1: and reducing the speed of a CPU (central processing unit) and an NFC (nand flash controller) flash controller in a speed reducing operation state. PS2: and the speed reduction operation state further reduces the speed of a CPU (central processing unit) and an NFC (nand flash controller) flash controller. PS3: next to the low power mode, the CPU0 enters a WFI (wait for interrupt) state and turns off the NFC power supply. PS4: in the lowest power consumption mode, hardware for processing power and PMA (physical layer electric sub-layer) of PCIE (high speed serial computer expansion bus) are in a power-on state, and other power-off states. The English description in the figure is as follows:

device IDLE: the SSD is in an idle state, and the host does not issue commands to the SSD.

Host Mode Set: the host machine enables the SSD to switch the power state by issuing an NVME command.

CLKREQ #0- >1 (host-given signal): the host goes the clock request signal from low to high and if this state is PS3, it indicates that PS4 is to be entered.

CLKREQ #1- >0 (host-supplied signal): the host goes the clock request signal from high to low, which if the state is PS4, indicates that PS3 is to be entered.

PERST #0- >1 (signal from host): a global reset signal for PCIE indicates to enter PS3 if the state is PS 4.

The method comprises the following steps: PS0/PS1/PS2 are switched with each other, and the switching is directly configured in a software mode, because the related operations are less, the host has requirements on speed switching, a power-off module is not generally related, and only the clock is reduced.

PS3 because the configuration involved is not too much, and because the operation is low power consumption in software, the nand flash controller and nand particles are normally shut down and other modules are not powered down. The CPU is adopted, the power consumption is reduced in a software mode, and the defects that the power consumption is effectively reduced and the CPU cannot be closed are overcome.

PS4 adopts a single micro-control unit to reduce power consumption, and has obvious power consumption reduction and good benefit.

Based on this, the invention provides a normalization low-power-consumption processing method based on a solid state disk, and particularly integrates a low-power-consumption processing flow similar to PS4 in PS3 into a unified flow, so that the power consumption of PS3 is obviously reduced. Because the PS3 exit time is much lower than that of PS4, the requirement of supporting PS3 to exit quickly is also considered in the normalized low power consumption processing flow.

In one embodiment, as shown in fig. 2, a normalized low power consumption processing based on solid state disk is provided, the method includes:

step 202, acquiring a normalized low-power-consumption processing request based on the solid state disk, and entering a low-power-consumption processing flow if the request comprises a PS3 or PS4 command sent by a host;

step 204, judging whether the acquired command is a PS3 command or a PS4 command;

step 206, if the obtained command is a PS3 command, supporting configurable automatic wake-up or host wake-up;

step 208, if the obtained command is a PS4 command, entering a PS4 low power consumption processing flow, and then entering a wait host wakeup state;

in step 210, in the waiting host wakeup state, when any one command of PS0, PS1 and PS2 sent by the host is received, the low power consumption processing flow is exited.

In this embodiment, a normalized low power consumption processing method based on a solid state disk is provided, and it is considered that, when the PS3 considers that a fast exit is taken into consideration, it is required to ensure that a DDR is in a self-refresh state or an ISRAM is in a retention state, because mapping table information is stored in the PS4, the PS4 needs to be acquired from a nand flash, and thus, the time is long.

Firstly, a normalized low-power consumption processing request based on the solid state disk is obtained, and if the request comprises a PS3 or PS4 command sent by a host, a low-power consumption processing flow is entered. The low power consumption processing flow here is low power consumption processing common to PS3 and PS 4.

Next, it is determined whether the acquired command is a PS3 command or a PS4 command. The PS3 needs to multiplex as much as possible the PS4 low power consumption processing modes. PS4 SSD lowest power consumption, DDR is in power-down state or ISRAM is in shut down state compared to PS 3.5. And (4) wake-up of Host: waking up is typically done by PS 0/1/2.

Time configurable auto-wake or host wake up is supported if the command fetched is the PS3 command. If the acquired command is the PS4 command, the method enters the PS4 low power consumption processing flow and then enters the wait host wakeup state. The PS4 low power consumption processing flow is added to the low power consumption processing common to PS3 and PS 4.

In one embodiment, if the obtained command is the PS4 command, the PS4 low power consumption processing procedure is first entered, and then the step of entering the wait for host wakeup state is entered, specifically, the PS4 low power consumption processing procedure further includes a DDR shutdown procedure and an ISRAM shutdown procedure.

Finally, in the waiting host wake-up state, when any command of PS0, PS1 and PS2 sent by the host is received, the low-power consumption processing flow is exited, and the normal processing command is executed.

In this embodiment, by obtaining a normalized low power consumption processing request based on a solid state disk, if the request includes a PS3 or PS4 command sent by a host, a low power consumption processing flow is entered; judging whether the acquired command is a PS3 command or a PS4 command; support time configurable auto-wake or host wake if the retrieved command is a PS3 command; if the obtained command is a PS4 command, the low-power consumption processing flow of the PS4 is firstly entered, and then the state of waiting for the host to wake up is entered; in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of commands of PS0, PS1 and PS2 sent by the host. In the scheme, PS3 is combined into a unified flow by going through a low-power-consumption processing flow similar to PS4, so that the power consumption of PS3 is obviously reduced, and the requirement of supporting the rapid exit of PS3 is also met. The scheme realizes simplification of complexity, is easy to maintain, has high flexibility, high speed and small influence on the read-write performance by normalization low-power consumption processing.

In one embodiment, as shown in fig. 3, a normalized low power consumption processing based on solid state disk is provided, in which if the obtained command is a PS3 command, the step of supporting time-configurable auto-wake or host-wake further comprises:

step 302, setting automatic wake-up time;

step 304, the device will automatically wake up when the set wake-up time is reached;

step 306, entering a waiting host waking state if the automatic waking is not needed;

and 308, in the waiting host awakening state, when any command of PS0, PS1 and PS2 sent by the host is received, exiting the low-power consumption processing flow.

In this embodiment, referring to fig. 4, a complete method for implementing the normalized low power consumption processing state is provided, and implemented steps are as follows:

s1: receiving PS3 or PS4 commands sent by the host.

S2: low power consumption processing is entered, which is low power consumption processing common to PS3 and PS 4.

S3: judging whether the command is a PS3 command, if so, entering a state S4; if PS4, proceed to S5.

S4: supporting automatic awakening or Host awakening, setting automatic awakening time, if the set time is up, automatically awakening device, if the set time is not needed, entering a waiting Host awakening state S6; once there is a Host wake-up command PS0/1/2, then state S7 is entered, where processing of commands is commenced.

S5: the low power consumption processing of PS4 is entered, and the low power consumption processing of PS4, such as DDR shut down or ISRAM shut down, is added on the basis of S2; and then enters a wait-Host awake state S6.

S6: when the Host sends PS0/1/2, the process goes to S7 to start processing the relevant command.

S7: and exiting low power consumption and processing the command normally.

In the embodiment, the proposed method for normalizing low power consumption processing performs power processing on PS1/PS2/PS3/PS4 (PS0 is in full-speed mode, and does not relate to low power consumption), and the SSD power consumption, especially the PS3 power consumption, is significantly improved without affecting the performance. In addition, the design scheme has the advantages of high switching speed, high flexibility, low power consumption and low cost.

It should be understood that although the various steps in the flow charts of fig. 1-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.

In one embodiment, as shown in fig. 5, there is provided a normalized low power consumption processing apparatus 500 based on solid state disk, the apparatus comprising:

an obtaining module 501, configured to obtain a normalized low power consumption processing request based on a solid state disk, and enter a low power consumption processing procedure if the request includes a PS3 or PS4 command sent by a host;

a judging module 502, configured to judge whether the obtained command is a PS3 command or a PS4 command;

a first processing module 503 for supporting time configurable auto-wake or host wake if the retrieved command is a PS3 command;

a second processing module 504, configured to, if the obtained command is a PS4 command, enter a PS4 low power consumption processing flow, and then enter a wait host wakeup state;

a wait wakeup module 505, configured to, in the wait host wakeup state, exit the low power consumption processing flow upon receiving a command sent by the host from any one of PS0, PS1, and PS 2.

In one embodiment, the first processing module 503 is configured to:

setting automatic wake-up time;

the device will automatically wake up when the set wake-up time is reached.

In one embodiment, the first processing module 503 is further configured to:

if the automatic wake-up is not needed, entering a wait host wake-up state;

in the wait for host wakeup state, the low power consumption processing flow exits upon receiving any one of the commands of PS0, PS1 and PS2 sent by the host.

In one embodiment, in the second processing module 504:

the PS4 low power consumption processing flow further includes a DDR shutdown flow and an ISRAM shutdown flow.

For specific limitations of the normalized low-power-consumption processing apparatus based on the solid state disk, reference may be made to the above limitations of the normalized low-power-consumption processing method based on the solid state disk, and details are not repeated here.

In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 6. The computer apparatus includes a processor, a memory, and a network interface connected by a device bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating device, a computer program, and a database. The internal memory provides an environment for the operation device in the nonvolatile storage medium and the execution of the computer program. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a normalized low power consumption processing method based on a solid state disk.

Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method embodiments when executing the computer program.

In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above respective method embodiments.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据转存方法、系统、电子设备及可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类