Storage system and method of controlling operation of the same
A method of controlling operation of a storage system including a storage device and a host device configured to control the storage device comprising determining, by a host device, a selected operation mode from among a plurality of operation modes of a storage device, notifying, by the host device, the selected operation mode to the storage device, setting, by the storage device, an operation condition of the storage device to a selected operation condition corresponding to the selected operation mode, and performing, by the storage device, an input-output operation with the host device based on the selected operation condition.
1 . A method of controlling operation of a storage system including a storage device and a host device configured to control the storage device, the method comprising:
determining, by the host device, a selected operation mode from among a plurality of operation modes of the storage device;
determining, by the host device, one of a preset option to fix an operation condition and an adaptive option to change the operation condition as a selected option corresponding to the selected operation mode;
notifying, by the host device, the selected operation mode and the selected option to the storage device;
setting, by the storage device, the fixed operation condition or the changed operation condition of the storage device to a selected operation condition corresponding to the selected operation mode; and
performing, by the storage device, an input-output operation with the host device based on the selected operation condition,
wherein each of the plurality of operation modes includes the preset option and the adaptive option, and
wherein the operation condition includes at least one of a size of a cache memory of a buffer memory included in the storage device or a queue depth indicating a maximum number of requests that is transferred from the host device and stored in a request queue included in the storage device.
2 . The method as claimed in claim 1 , wherein determining the selected operation mode includes:
providing, by the host device, a graphical user interface;
receiving, by the host device, a user's input through the graphic user interface; and
determining, by the host device, the selected operation mode based on the user's input.
3 . The method as claimed in claim 1 , wherein notifying the selected operation mode to the storage device includes transmitting, by the host device, a command including a mode identifier indicating the selected operation mode to the storage device.
4 . The method as claimed in claim 1 , further comprising notifying, by the storage device, that entry into the selected operation mode is completed after setting the operation condition of the storage device to the selected operation condition.
5 . The method as claimed in claim 4 , further comprising stopping, by the storage device, the input-output operation until the storage device notifies the host device that the entry into the selected operation mode is completed.
6 . The method as claimed in claim 1 , wherein the selected operation mode is changed by the host device while the storage device operates.
7 . The method as claimed in claim 1 , further comprising:
determining, by the host device, a default operation mode from among the plurality of operation modes; and
notifying, by the host device, the default operation mode to the storage device.
8 . The method as claimed in claim 7 , further comprising:
storing, by the storage device, mode information including the default operation mode in a nonvolatile memory device included in the storage device, when the storage device is powered off, and
setting, by the storage device, the default operation mode as the selected operation mode based on the mode information stored in the nonvolatile memory device, when the storage device is powered on.
9 . The method as claimed in claim 1 , further comprising changing, by the storage device, the selected operation condition by analyzing a pattern of commands transmitted from the host device when the selected option corresponds to the adaptive option.
10 . The method as claimed in claim 9 , further comprising:
storing, by the storage device, mode information including the selected operation condition that is changed by the storage device in a nonvolatile memory device included in the storage device, when the storage device is powered off; and
setting, by the storage device, the operation condition of the storage device based on the mode information stored in the nonvolatile memory device, when the storage device is powered on.
11 . The method as claimed in claim 1 , wherein the determining of the selected option includes:
providing, by the host device, a graphical user interface;
receiving, by the host device, a user's input through the graphic user interface; and
determining, by the host device, the selected option based on the user's input.
12 . The method as claimed in claim 1 , wherein the plurality of operation modes include:
a normal mode corresponding to the selected operation condition to have a first performance of each of read and write operations,
a read optimized mode corresponding to the selected operation condition to improve the first performance of the read operation, and
a write optimized mode corresponding to the selected operation condition to improve the first performance of the write operation.
13 . The method as claimed in claim 12 , wherein the storage device increases a size of a read cache of a buffer memory included in the storage device configured to store data for the read operation in the read optimized mode and increases a size of a write cache of the buffer memory configured to store data for the write operation in the write optimized mode.
14 . The method as claimed in claim 12 , wherein the storage device increases priority of a read command in the read optimized mode and increases priority of a write command in the write optimized mode.
15 . A storage system, comprising:
an interconnector;
a storage device connected to the interconnector and configured to store data; and
a host device connected to the interconnector and configured to control operation of the storage device, wherein:
the host device is configured to:
determine a selected operation mode from among a plurality of operation modes of the storage device, and
determine one of a preset option to fix an operation condition and an adaptive option to change the operation condition as a selected option corresponding to the selected operation mode, and
notify the selected operation mode and the selected option to the storage device,
the storage device is configured to:
set the fixed operation condition or the changed operation condition of the storage device to a selected operation condition corresponding to the selected operation mode, and
perform an input-output operation with the host device based on the selected operation condition,
each of the plurality of operation modes includes the preset option and the adaptive option, and
the operation condition includes at least one of a size of a cache memory of a buffer memory included in the storage device or a queue depth indicating a maximum number of requests that is transferred from the host device and stored in a request queue included in the storage device.
16 . The storage system as claimed in claim 15 , wherein the storage system is configured such that:
the host device determines a default operation mode from among the plurality of operation modes and notifies the default operation mode to the storage device, and
the storage device stores mode information including the default operation mode in a nonvolatile memory device included in the storage device, when the storage device is powered off and sets the default operation mode as the selected operation mode based on the mode information stored in the nonvolatile memory device, when the storage device is powered on.
17 . The storage system as claimed in claim 15 , wherein the storage system is configured such that:
the storage device varies the selected operation condition by analyzing a pattern of commands transmitted from the host device when the selected option corresponds to the adaptive option.
18 . The storage system as claimed in claim 15 , wherein:
the host device includes a central processing unit and a graphics processing unit, and
the graphics processing unit is configured to form a direct communication channel with the storage device and perform the input-output operation with the storage device through the direct communication channel independently of the central processing unit.
19 . A storage device, comprising:
a nonvolatile memory device configured to store data; and
a storage controller configured to control the nonvolatile memory device, wherein:
the storage device is configured such that the storage controller;
sets an operation condition as a fixed operation condition of a preset option of the storage device or as a changed operation condition of an adaptive option of the storage device to a selected operation condition corresponding to a selected operation mode, and
performs an input-output operation with a host device based on the selected operation condition, the selected operation mode being determined based on a command transferred from the host device,
the selected operation mode includes the preset option and the adaptive option, and
the operation condition includes at least one of a size of a cache memory of a buffer memory included in the storage device or a queue depth indicating a maximum number of requests that is transferred from the host device and stored in a request queue included in the storage device.