CN110764715A - Bandwidth control method, device and storage medium - Google Patents

Bandwidth control method, device and storage medium Download PDF

Info

Publication number
CN110764715A
CN110764715A CN201911090771.3A CN201911090771A CN110764715A CN 110764715 A CN110764715 A CN 110764715A CN 201911090771 A CN201911090771 A CN 201911090771A CN 110764715 A CN110764715 A CN 110764715A
Authority
CN
China
Prior art keywords
value
register
threshold
temperature
reduction ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911090771.3A
Other languages
Chinese (zh)
Other versions
CN110764715B (en
Inventor
张彬
苏军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201911090771.3A priority Critical patent/CN110764715B/en
Publication of CN110764715A publication Critical patent/CN110764715A/en
Application granted granted Critical
Publication of CN110764715B publication Critical patent/CN110764715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Digital Magnetic Recording (AREA)

Abstract

The invention discloses a bandwidth control method, which comprises the following steps: acquiring the temperature of the hard disk; judging whether the temperature is between a first threshold value and a second threshold value; in response to the temperature being between the first threshold and the second threshold, reducing the value of the register of the hard disk from a default maximum value to a preset value; determining a bandwidth reduction ratio based on a current value of a register of the hard disk; calculating the difference value of the bandwidth reduction ratio and a target reduction ratio corresponding to the temperature; and reducing the current numerical value of the register by a value corresponding to the difference value according to the size of the difference value, and returning to the step of determining the bandwidth reduction ratio until the bandwidth reduction ratio reaches the target reduction ratio. The invention also discloses a computer device and a readable storage medium. The method disclosed by the invention can effectively control the read-write bandwidth of the solid state disk, thereby controlling the temperature rising speed. And the read-write bandwidth of the solid state disk is reduced by reasonably setting the value of the decrement and gradually reducing the value of the register in a grading way, so that the reduction speed and the reduction accuracy of the bandwidth can be considered.

Description

Bandwidth control method, device and storage medium
Technical Field
The invention relates to the field of temperature control, in particular to a bandwidth control method, equipment and a storage medium.
Background
After the solid state disk is powered on, the temperature of the solid state disk can continuously rise due to the need of processing various io requests and the influence of the ambient temperature. In the normal use process of the solid state disk, the heat dissipation fan is kept running all the time. However, if the cooling fan fails due to some reason, after the temperature of the solid state disk reaches a certain threshold, a temperature control strategy in firmware of the solid state disk is usually triggered to delay the temperature rise speed of the solid state disk, so as to strive for time for troubleshooting the failure of the cooling fan. The temperature control strategy generally achieves the purpose of controlling the temperature rising speed by controlling the bandwidth.
At present, most manufacturers control the bandwidth by using a method including, but not limited to, modifying register values, and the specific control method and effect are different. However, there is no compromise between the speed of bandwidth reduction and accuracy reduction.
Therefore, a bandwidth control method is urgently needed.
Disclosure of Invention
In view of the above, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides a bandwidth control method, including:
acquiring the temperature of the hard disk;
judging whether the temperature is between a first threshold value and a second threshold value;
in response to the temperature being between a first threshold and a second threshold, reducing the value of the register of the hard disk from a default maximum value to a preset value;
determining a bandwidth reduction ratio based on a current value of a register of the hard disk;
calculating the difference value of the bandwidth reduction ratio and a target reduction ratio corresponding to the temperature;
and reducing the current value of the register by a value corresponding to the difference value according to the size of the difference value, and returning to the step of determining the bandwidth reduction ratio until the bandwidth reduction ratio reaches the target reduction ratio.
In some embodiments, further comprising:
continuously acquiring the temperature of the hard disk;
judging whether the temperature of the hard disk is not greater than a third threshold value, wherein the third threshold value is smaller than the first threshold value;
and responding to the fact that the temperature of the hard disk is not larger than a third threshold value, and adjusting the current value of the register of the hard disk to be a default maximum value.
In some embodiments, in response to the temperature being between a first threshold and a second threshold, reducing the value of the register of the hard disk from a default maximum value to a preset value, further comprising:
in response to the temperature being greater than a first threshold and less than a fourth threshold, reducing the value of the register of the hard disk from a default maximum value to a first preset value;
and in response to the temperature being greater than a fourth threshold and less than the second threshold, reducing the value of the register of the hard disk from a default maximum value to a second preset value, wherein the second preset value is less than the first preset value.
In some embodiments, in response to the temperature being greater than the first threshold and less than the fourth threshold, decreasing the value of the register of the hard disk from a default maximum value to a first preset value, further comprising:
continuously acquiring the temperature of the hard disk;
in response to the temperature being greater than the fourth threshold and less than the second threshold, comparing the current value of the register with the second preset value;
and reducing the current value of the register to a second preset value in response to the current value of the register being larger than the second preset value.
In some embodiments, determining the bandwidth reduction ratio based on a current value of a register of the hard disk further comprises:
obtaining the IO request number corresponding to the current numerical value and the initial IO request number corresponding to the default maximum value;
and determining a bandwidth reduction ratio according to the IO request number and the initial IO request number.
In some embodiments, decreasing the current value of the register by a value corresponding to the difference value according to the size of the difference value, and returning to the step of determining the bandwidth reduction ratio until the bandwidth reduction ratio reaches the target reduction ratio, further comprising:
judging whether the difference value is larger than a first reference value or not;
in response to the difference being greater than a first reference value, decreasing the current value of the register by a value corresponding to the first reference value.
In some embodiments, further comprising:
and in response to the difference value being less than the first reference value and greater than a second reference value, decreasing the current value of the register by a value corresponding to the second reference value.
In some embodiments, further comprising:
and in response to the difference value being less than the second reference value and greater than a third reference value, decreasing the current value of the register by a value corresponding to the third reference value.
In some embodiments, further comprising:
in response to the temperature being less than the first threshold, adjusting a value of a register of the hard disk to a default maximum value;
obtaining the total number of IO requests in a preset time period;
and calculating the initial IO request number in unit time according to the total IO request number and the length of a preset time period.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:
at least one processor; and
a memory storing a computer program operable on the processor, wherein the processor executes the program to perform any of the steps of the bandwidth control method described above.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of any one of the bandwidth control methods described above.
The invention has one of the following beneficial technical effects: the method disclosed by the invention can effectively control the read-write bandwidth of the solid state disk, thereby controlling the temperature rising speed. And the read-write bandwidth of the solid state disk is reduced by reasonably setting the value of the decrement and gradually reducing the value of the register in a grading way. Meanwhile, the speed and the accuracy of reducing the bandwidth can be considered.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a bandwidth control method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a computer device provided in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
It should be noted that, in the embodiment of the present invention, io: in and out, read and write;
firmware: firmware, i.e. software that is cured into the solid state disk;
main control: a controller in the solid state disk, a CPU;
lun: a basic unit for receiving and executing commands in the solid state disk flash memory chip;
ncm: a nand control manager, a nand control module, which belongs to a part of firmware;
and nand: the flash memory chip is a data storage module in the solid state disk;
FPMPA: a register having a value corresponding to a bandwidth;
fio: a third party io testing tool.
According to an aspect of the present invention, an embodiment of the present invention proposes a bandwidth control method, as shown in fig. 1, which may include the steps of: s1, acquiring the temperature of the hard disk; s2, judging whether the temperature is between a first threshold value and a second threshold value; s3, in response to the temperature being between the first threshold and the second threshold, reducing the value of the register of the hard disk from a default maximum value to a preset value; s4, determining the bandwidth reduction ratio based on the current value of the register of the hard disk; s5, calculating the difference value of the bandwidth reduction ratio and the target reduction ratio corresponding to the temperature; s6, according to the difference value, reducing the current value of the register by the value corresponding to the difference value, and returning to the step of determining the bandwidth reduction ratio until the bandwidth reduction ratio reaches the target reduction ratio.
The method disclosed by the invention can effectively control the read-write bandwidth of the solid state disk, thereby controlling the temperature rising speed. And the read-write bandwidth of the solid state disk is reduced by reasonably setting the value of the decrement and gradually reducing the value of the register in a grading way. Meanwhile, the speed and the accuracy of reducing the bandwidth can be considered.
Specifically, the method disclosed by the invention is that when the temperature of the hard disk is lower than a threshold value T, the value of a register R is kept at a default maximum value, and the bandwidth is also maximum at the moment; when the temperature of the solid state disk rises to a certain threshold value T, the value of the register R is reduced to an empirical value, the reduction ratio of the theoretical bandwidth is larger than the target reduction ratio D2 under the empirical value, the empirical value can be the maximum value meeting the conditions obtained after testing various fio models, then a timer is started, the timer is started at regular intervals T, the current reduction ratio is firstly calculated in the timer, and if the current reduction ratio is larger than the target reduction ratio D1, S2 is subtracted from the value of the register R; if the current reduction ratio is larger than the target reduction ratio by D0, subtracting S1 from the value of the register R; if the current drop ratio is larger than the target drop ratio, subtracting S0 from the value of the register R until the current drop ratio reaches or is lower than the target drop ratio, closing the timer and ending the flow of controlling the bandwidth; when the temperature of the solid state disk is lower than a threshold value T0 and temperature control is triggered, the value of the register R is restored to the default maximum value, and the bandwidth is also maximum at the moment.
For example, when the temperature of the solid state disk rises to a certain threshold, the FPMPA value is reduced to an empirical value, the reduction ratio of the theoretical bandwidth is 15 to 25 larger than the target reduction ratio under the empirical value, then a timer is started, the timer is started at regular intervals, for example, 1S, the current reduction ratio is firstly calculated in the timer, and if the current reduction ratio is more than the target reduction ratio, a larger decrement is subtracted from the FPMPA value; if the current reduction ratio is larger than the target reduction ratio, subtracting a smaller subtraction number from the FPMPA value; if the current drop ratio is smaller than the target drop ratio, subtracting a smaller subtraction number from the FPMPA value until the current drop ratio reaches or is lower than the target drop ratio, closing the timer and ending the flow of controlling the bandwidth; and when the temperature of the solid state disk is lower than a certain threshold value and temperature control is triggered, the FPMPA value is recovered to a default maximum value, and the bandwidth is also maximum at the moment.
In some embodiments, in step S3, in response to the temperature being between the first threshold and the second threshold, decreasing the value of the register of the hard disk from a default maximum value to a preset value, the method may further include:
in response to the temperature being greater than a first threshold and less than a fourth threshold, reducing the value of the register of the hard disk from a default maximum value to a first preset value;
and in response to the temperature being greater than a fourth threshold and less than the second threshold, reducing the value of the register of the hard disk from a default maximum value to a second preset value, wherein the second preset value is less than the first preset value.
Specifically, there are two temperature thresholds that trigger temperature control and start controlling bandwidth: t1 and T2, the temperature threshold for exiting temperature control is T0. When the temperature is T1-T2, the bandwidth is reduced to the previous rate1, and when the temperature is the highest temperature allowed by T2-nand, the bandwidth is reduced to the previous rate2, and the maximum bandwidth is recovered when T0.
The relationship between the above values is as follows, 100> rate1> rate2>0, 0< T0< T1< T2< nand allows the maximum temperature, wherein the maximum temperature allowed by nand is determined by the manufacturing process and technology of nand; 0< D0< D1< D2< 100-target reduction ratio; 0< S0< S1< S2<10, where 10 is also an empirical value after testing.
For example, there are two temperature thresholds that trigger temperature control and begin controlling bandwidth: the temperature thresholds for exiting temperature control were 68 ℃ and 75 ℃. When the temperature is between 70 ℃ and 75 ℃, the value of an FPMPA register is set as a first preset value, the reduction ratio of the bandwidth is larger than a target reduction ratio 1 by D2, when the temperature is between 75 ℃ and 83 ℃, the value of the register is set as a second preset value, and under the second preset value, the reduction ratio of the bandwidth is larger than the target reduction ratio 2 by D2.
In some embodiments, in response to the temperature being greater than the first threshold and less than the fourth threshold, decreasing the value of the register of the hard disk from a default maximum value to a first preset value, further comprising:
continuously acquiring the temperature of the hard disk;
in response to the temperature being greater than the fourth threshold and less than the second threshold, comparing the current value of the register with the second preset value;
and reducing the current value of the register to a second preset value in response to the current value of the register being larger than the second preset value.
Specifically, if the temperature interval does not experience the first threshold value to the fourth threshold value, but directly reaches the range between the fourth threshold value and the second threshold value, the value of the register is reduced from the default maximum value to the second preset value; if the target reduction rate1 is reached through the first bandwidth adjustment, the temperature continues to rise, and reaches a range between the fourth threshold and the second threshold, the current value of the register is compared with the second preset value, if the second preset value is small, the second preset value is set, otherwise, the register value is unchanged.
In some embodiments, step S4, determining the bandwidth reduction ratio based on the current value of the register of the hard disk, further includes:
obtaining the IO request number corresponding to the current numerical value and the initial IO request number corresponding to the default maximum value;
and determining a bandwidth reduction ratio according to the IO request number and the initial IO request number.
Specifically, the method can be implemented by two variables in ncm module in the hard disk firmware: the cur _ req _ cnt and the pre _ req _ cnt calculate a reduction ratio, the cur _ req _ cnt is used for counting the current IO request number in each second, the pre _ req _ cnt is used for counting the IO request number in each second before triggering temperature control (namely the IO request number under the condition of default maximum bandwidth), the two variables can reflect the read-write bandwidth size of the solid state disk, and the variable value is larger when the bandwidth is larger. The formula current _ req _ cnt 100/pre _ req _ cnt can be used to determine the ratio of the current bandwidth to the bandwidth before triggering temperature control.
In some embodiments, in step S6, decreasing the current value of the register by the value corresponding to the difference value according to the magnitude of the difference value, and returning to the step of determining the bandwidth reduction ratio until the bandwidth reduction ratio reaches the target reduction ratio, further comprising:
judging whether the difference value is larger than a first reference value or not;
in response to the difference being greater than a first reference value, decreasing the current value of the register by a value corresponding to the first reference value.
In some embodiments, further comprising:
and in response to the difference value being less than the first reference value and greater than a second reference value, decreasing the current value of the register by a value corresponding to the second reference value.
In some embodiments, further comprising:
and in response to the difference value being less than the second reference value and greater than a third reference value, decreasing the current value of the register by a value corresponding to the third reference value.
Specifically, the current reduction ratio is obtained in the timer, and if the current reduction ratio is greater than the target reduction ratio rate1(rate2) + D1, the value of the register is decremented by S2; if the current reduction ratio > target reduction ratio rate1(rate2) + D0, then subtract the value of register R by S1; if the current reduction ratio > the target reduction ratio rate1(rate2), then subtract the value of register R by S0; the value of the register is thus continuously decreased until the timer is exited when the current droop ratio is less than or equal to rate1(rate 2).
It should be noted that, as long as the current temperature triggers the adjustment of the temperature control bandwidth, the above operation is performed only once in the corresponding temperature interval, i.e. during the bandwidth adjustment, even if the detected temperature is still in the temperature interval, the above steps are not re-performed, but are continuously performed.
In some embodiments, the method proposed by the present invention may further include:
continuously acquiring the temperature of the hard disk;
judging whether the temperature of the hard disk is not greater than a third threshold value, wherein the third threshold value is smaller than the first threshold value;
and responding to the fact that the temperature of the hard disk is not larger than a third threshold value, and adjusting the current value of the register of the hard disk to be a default maximum value.
Specifically, after triggering the temperature control, if the temperature drops to T0, the value of the register R is restored to the default maximum value, and the bandwidth is also restored to the maximum value at this time.
In some embodiments, further comprising:
in response to the temperature being less than the first threshold, adjusting a value of a register of the hard disk to a default maximum value;
obtaining the total number of IO requests in a preset time period;
and calculating the initial IO request number in unit time according to the total IO request number and the length of a preset time period.
For example, if the temperature is lower than 70 ℃, the value of FPMPA is not changed, and the number of IO requests within 15s is continuously counted, and after dividing by 15, the initial IO request number is assigned to pre _ req _ cnt.
The method provided by the invention is characterized in that after the temperature control is triggered, the temperature rising speed of the solid state disk is controlled in a bandwidth control mode, and the bandwidth control is realized by modifying the value of the register. Controlling the bandwidth includes reducing the bandwidth to a certain proportion of the maximum bandwidth, and restoring the bandwidth to the maximum, wherein the bandwidth reduction is achieved by gradually reducing the value of the register R in steps, because the relationship between the value of the register R and the bandwidth is non-linear, and under some fio models, the register R maximizes, i.e., saturates, the bandwidth at a smaller value. The method for gradually reducing the value of the register R in a grading way can adapt to almost all fio models, namely the read-write bandwidth of the solid state disk can be reduced to a specified proportion under almost all fio models, and the accuracy of the reduction ratio can reach plus or minus 5 percent, so that a good temperature control effect is achieved. In addition, the method for gradually reducing the value of the register R in the grading grade is to divide the reduction number into three grades, so that the reduction speed and the reduction accuracy of the bandwidth can be considered.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 2, an embodiment of the present invention further provides a computer apparatus 501, comprising:
at least one processor 520; and
the memory 510, the memory 510 storing a computer program 511 executable on the processor, the processor 520 executing the program to perform the steps of any of the above bandwidth control methods.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 3, an embodiment of the present invention further provides a computer-readable storage medium 601, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the steps of any of the above bandwidth control methods.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program to instruct related hardware to implement the methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
In addition, the apparatuses, devices, and the like disclosed in the embodiments of the present invention may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, and the like, or may be a large terminal device, such as a server, and the like, and therefore the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of apparatus, device. The client disclosed by the embodiment of the invention can be applied to any one of the electronic terminal devices in the form of electronic hardware, computer software or a combination of the electronic hardware and the computer software.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile 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), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method of bandwidth control comprising the steps of:
acquiring the temperature of the hard disk;
judging whether the temperature is between a first threshold value and a second threshold value;
in response to the temperature being between the first threshold and a second threshold, reducing the value of the register of the hard disk from a default maximum value to a preset value;
determining a bandwidth reduction ratio based on a current value of a register of the hard disk;
calculating the difference value of the bandwidth reduction ratio and a target reduction ratio corresponding to the temperature;
and reducing the current value of the register by a value corresponding to the difference value according to the size of the difference value, and returning to the step of determining the bandwidth reduction ratio until the bandwidth reduction ratio reaches the target reduction ratio.
2. The method of claim 1, further comprising:
continuously acquiring the temperature of the hard disk;
judging whether the temperature of the hard disk is not greater than a third threshold value, wherein the third threshold value is smaller than the first threshold value;
and responding to the fact that the temperature of the hard disk is not larger than a third threshold value, and adjusting the current value of the register of the hard disk to be a default maximum value.
3. The method of claim 1, wherein in response to the temperature being between the first threshold and the second threshold, reducing a value of a register of the hard disk from a default maximum value to a preset value, further comprising:
in response to the temperature being greater than a first threshold and less than a fourth threshold, reducing the value of the register of the hard disk from a default maximum value to a first preset value;
and in response to the temperature being greater than a fourth threshold and less than the second threshold, reducing the value of the register of the hard disk from a default maximum value to a second preset value, wherein the second preset value is less than the first preset value.
4. The method of claim 3, wherein in response to the temperature being greater than the first threshold and less than the fourth threshold, decreasing the value of the register of the hard disk from a default maximum value to a first preset value, further comprising:
continuously acquiring the temperature of the hard disk; in response to the temperature being greater than the fourth threshold and less than the second threshold, comparing the current value of the register with the second preset value;
and reducing the current value of the register to a second preset value in response to the current value of the register being larger than the second preset value.
5. The method of claim 1, wherein determining a bandwidth reduction ratio based on a current value of a register of the hard disk further comprises:
obtaining the IO request number corresponding to the current numerical value and the initial IO request number corresponding to the default maximum value;
and determining a bandwidth reduction ratio according to the IO request number and the initial IO request number.
6. The method of claim 1, wherein the preset value is decreased by a value corresponding to the difference value according to the magnitude of the difference value, and the step of determining a bandwidth reduction ratio is returned until the bandwidth reduction ratio reaches the target reduction ratio, further comprising:
judging whether the difference value is larger than a first reference value or not;
in response to the difference being greater than a first reference value, decreasing the current value of the register by a value corresponding to the first reference value;
and in response to the difference value being less than the first reference value and greater than a second reference value, decreasing the current value of the register by a value corresponding to the second reference value.
7. The method of claim 6, further comprising:
and in response to the difference value being less than the second reference value and greater than a third reference value, decreasing the current value of the register by a value corresponding to the third reference value.
8. The method of claim 1, further comprising:
in response to the temperature being less than the first threshold, adjusting a value of a register of the hard disk to a default maximum value;
obtaining the total number of IO requests in a preset time period;
and calculating the initial IO request number in unit time according to the total IO request number and the length of a preset time period.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, characterized in that the processor performs the steps of the method according to any of claims 1-8 when executing the program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method of any one of claims 1 to 8.
CN201911090771.3A 2019-11-09 2019-11-09 Bandwidth control method, device and storage medium Active CN110764715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911090771.3A CN110764715B (en) 2019-11-09 2019-11-09 Bandwidth control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911090771.3A CN110764715B (en) 2019-11-09 2019-11-09 Bandwidth control method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110764715A true CN110764715A (en) 2020-02-07
CN110764715B CN110764715B (en) 2021-07-06

Family

ID=69337087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911090771.3A Active CN110764715B (en) 2019-11-09 2019-11-09 Bandwidth control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110764715B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367719A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 Storage system starting method, device, equipment and medium
CN111402958A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Method, system, equipment and medium for establishing gene comparison table
CN111858406A (en) * 2020-06-20 2020-10-30 苏州浪潮智能科技有限公司 Method, device, equipment and medium for making SPI master control compatible with flash chip
CN111968684A (en) * 2020-09-01 2020-11-20 深圳大普微电子科技有限公司 Temperature control method, device and equipment of memory and storage medium
CN112131061A (en) * 2020-09-18 2020-12-25 苏州浪潮智能科技有限公司 Method and device for measuring bandwidth of hard disk backplane
CN112463529A (en) * 2020-11-20 2021-03-09 苏州浪潮智能科技有限公司 Temperature control method and device of solid-state memory and related components
WO2022037565A1 (en) * 2020-08-21 2022-02-24 中兴通讯股份有限公司 Access method and system for memory, memory access management module, energy efficiency ratio controller and computer-readable storage medium
CN114610138A (en) * 2022-03-10 2022-06-10 中国科学院计算技术研究所 Bandwidth control unit, processor chip and access flow control method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370615B2 (en) * 2008-12-14 2013-02-05 Getac Technology Corporation Device and method for monitoring hard disk temperature and stopping operation thereof when BIOS configuration setting having a selected value indicating a predetermined temperature
CN102982836A (en) * 2012-11-21 2013-03-20 记忆科技(深圳)有限公司 Method for improving reliability of solid state disk and solid state disk of method
CN103176748A (en) * 2011-12-05 2013-06-26 希捷科技有限公司 Environmental-based device operation
US20140082255A1 (en) * 2012-09-20 2014-03-20 Clinton Allen Powell Method and System for Preventing Unreliable Data Operations at Cold Temperatures
CN105824582A (en) * 2016-03-28 2016-08-03 联想(北京)有限公司 Information processing method and electronic equipment
CN107342101A (en) * 2017-08-29 2017-11-10 郑州云海信息技术有限公司 The temprature control method and temperature control system of a kind of solid state hard disc
CN107507636A (en) * 2017-08-25 2017-12-22 郑州云海信息技术有限公司 The temprature control method and device of a kind of disk
US20180067690A1 (en) * 2015-08-14 2018-03-08 International Business Machines Corporation Managing temperature of solid state disk devices
CN107894941A (en) * 2017-11-14 2018-04-10 郑州云海信息技术有限公司 A kind of SSD Working state monitoring devices and method
CN110187842A (en) * 2019-06-03 2019-08-30 深圳忆联信息系统有限公司 Across warm area data guard method, device and computer equipment based on solid state hard disk

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370615B2 (en) * 2008-12-14 2013-02-05 Getac Technology Corporation Device and method for monitoring hard disk temperature and stopping operation thereof when BIOS configuration setting having a selected value indicating a predetermined temperature
CN103176748A (en) * 2011-12-05 2013-06-26 希捷科技有限公司 Environmental-based device operation
US20140082255A1 (en) * 2012-09-20 2014-03-20 Clinton Allen Powell Method and System for Preventing Unreliable Data Operations at Cold Temperatures
CN102982836A (en) * 2012-11-21 2013-03-20 记忆科技(深圳)有限公司 Method for improving reliability of solid state disk and solid state disk of method
US20180067690A1 (en) * 2015-08-14 2018-03-08 International Business Machines Corporation Managing temperature of solid state disk devices
CN105824582A (en) * 2016-03-28 2016-08-03 联想(北京)有限公司 Information processing method and electronic equipment
CN107507636A (en) * 2017-08-25 2017-12-22 郑州云海信息技术有限公司 The temprature control method and device of a kind of disk
CN107342101A (en) * 2017-08-29 2017-11-10 郑州云海信息技术有限公司 The temprature control method and temperature control system of a kind of solid state hard disc
CN107894941A (en) * 2017-11-14 2018-04-10 郑州云海信息技术有限公司 A kind of SSD Working state monitoring devices and method
CN110187842A (en) * 2019-06-03 2019-08-30 深圳忆联信息系统有限公司 Across warm area data guard method, device and computer equipment based on solid state hard disk

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
存储极客: "开启硬件级降温", 《搜狐网》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367719A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 Storage system starting method, device, equipment and medium
CN111367719B (en) * 2020-02-29 2022-07-26 苏州浪潮智能科技有限公司 Storage system starting method, device, equipment and medium
CN111402958A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Method, system, equipment and medium for establishing gene comparison table
CN111402958B (en) * 2020-03-13 2022-05-17 苏州浪潮智能科技有限公司 Method, system, equipment and medium for establishing gene comparison table
CN111858406A (en) * 2020-06-20 2020-10-30 苏州浪潮智能科技有限公司 Method, device, equipment and medium for making SPI master control compatible with flash chip
WO2022037565A1 (en) * 2020-08-21 2022-02-24 中兴通讯股份有限公司 Access method and system for memory, memory access management module, energy efficiency ratio controller and computer-readable storage medium
CN111968684A (en) * 2020-09-01 2020-11-20 深圳大普微电子科技有限公司 Temperature control method, device and equipment of memory and storage medium
CN111968684B (en) * 2020-09-01 2022-09-09 深圳大普微电子科技有限公司 Temperature control method, device and equipment of memory and storage medium
CN112131061A (en) * 2020-09-18 2020-12-25 苏州浪潮智能科技有限公司 Method and device for measuring bandwidth of hard disk backplane
CN112131061B (en) * 2020-09-18 2022-12-16 苏州浪潮智能科技有限公司 Method and device for measuring bandwidth of hard disk backplane
CN112463529A (en) * 2020-11-20 2021-03-09 苏州浪潮智能科技有限公司 Temperature control method and device of solid-state memory and related components
CN112463529B (en) * 2020-11-20 2023-01-10 苏州浪潮智能科技有限公司 Temperature control method and device of solid-state memory and related components
CN114610138A (en) * 2022-03-10 2022-06-10 中国科学院计算技术研究所 Bandwidth control unit, processor chip and access flow control method
CN114610138B (en) * 2022-03-10 2023-08-08 中国科学院计算技术研究所 Bandwidth control unit, processor chip and memory access flow control method

Also Published As

Publication number Publication date
CN110764715B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN110764715B (en) Bandwidth control method, device and storage medium
US8832530B2 (en) Techniques associated with a read and write window budget for a two level memory system
WO2020253111A1 (en) Automatic expansion method and apparatus for blockchain node, and operation and maintenance terminal and storage medium
CN111090319B (en) Method, device and medium for controlling server fan based on thermistor
CN110187842B (en) Cross-temperature-zone data protection method and device based on solid state disk and computer equipment
JP5986607B2 (en) Data storage device and data maintenance method
CN111736765B (en) Method, device and medium for supervising data block state
US20180260298A1 (en) Method and Device for Reporting Mobile Terminal Behaviors
WO2021042245A1 (en) Method and apparatus for controlling heat dissipation device
CN110427296B (en) Hardware WDT-based monitoring method, hardware WDT-based monitoring equipment and readable medium
CN111047050A (en) Distributed parallel training method, equipment and storage medium
CN111273753A (en) BMC-based machine room temperature detection control method, device, equipment and medium
CN116524968A (en) Memory access speed adjusting method, control device and memory module
CN110727534B (en) Method, equipment and storage medium for repairing file system
EP3330830A1 (en) Method and device for controlling hot plug operation of cpu in mobile terminal
CN113448421B (en) Equipment power failure management method and device
US20190369882A1 (en) Techniques for preserving an expected lifespan of a non-volatile memory
CN110737649B (en) Method, equipment and storage medium for processing transaction log of database
CN111090504B (en) Method, equipment and medium for realizing timing task based on placemaker
CN107506147B (en) Method and system for keeping consistency of metadata
CN111124504A (en) Startup control method and equipment of switch system and storage medium
US20130285817A1 (en) Customizable alarm sytem and method for computer
US20130227226A1 (en) Electronic device and method for data backup
US20230069336A1 (en) Method of optimizing schedule for storage resource, server, and computer readable storage medium applying method
CN111273853A (en) Vehicle EEPROM data storage method, device, equipment and medium

Legal Events

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
GR01 Patent grant
GR01 Patent grant