1. Technical Field
The present disclosure relates to a storage control system configured for writing data into a storage device.
2. Description of the Related Art
Usually, a typical storage device like a hard disk drive includes a cache and a disk for storing data. There are two processes, write back and write through, to write data into the typical storage device. In the write back process, the data is first written into the cache of the typical storage device, and then the data stored in the cache is written to the disk of the typical storage device when the volume of data stored in the cache is equal to a predetermined volume defined by the typical storage device. In the write through process, the data is written into the cache and the disk of the typical storage device at the same time. However, data writing velocity is faster in the write back process than the write through process, but data writing security in the write back process is lower than the write through process.
Therefore, there is room for improvement within the art.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Referring to
The UPS 20 includes a rechargeable battery 22 charged by the power supply 30, and a control chip 24 for managing the UPS 20. Predetermined parameters of the battery 22, such as an output current, an output voltage, a capacity of the battery, and so on, are defined in the control chip 24. The control chip 24 is configured to detect states of whether the power supply 30 is providing power to the storage device 10 via the UPS 20, or a current parameter of the battery 22 of the UPS 20 is lower than a predetermined parameter, and to send corresponding state signals to the storage device 10 via the data cables.
The storage device 10 has two processes of writing data into the storage device 10, write back and write through, and includes a monitoring module 12. The monitoring module 12 is configured to receive the state signals sent by the control chip 24 of the UPS 20, and select one of the write back process and the write through process to replace the other one of the write back process and the write through process for writing data into the storage device 10.
Referring also to
In the illustrated embodiment, the write back process and the write through process are selectable by the monitoring module 12 depending on the state signals sent by the control chip 24 of UPS 20, thereby improving efficiency and security of writing the data into the storage device 10.
It is to be understood, however, that even though numerous characteristics and advantages have been set forth in the present disclosure, together with details of the structures and functions of the embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
200810302520.2 | Jul 2008 | CN | national |