This article describes reasons for slow writes to gateways in Cloud Storage Gateway (CSG) and corresponding solutions.
The following table provides reasons for and solutions to slow gateway writes.
Reason | Description | Solution |
Throttled cache disk | Throttling is triggered if the amount of data that is simultaneously written into the cache disk is greater than 80% of the total data cache size. |
|
Single-threaded data writes or inadequate concurrency | Single-threaded writes or an insufficient number of concurrent writes may cause low write efficiency. | If your application supports concurrency, we recommend that you increase the number of concurrent writes to improve write efficiency. For example, File Explorer on Windows perform single-threaded writes. However, you can use tools such as robocopy to improve write efficiency on Windows. |
Frequent small I/O operations | In small I/O scenarios, frequent writes of small data, such as 4 KB, cause reduced write efficiency. | Combine small I/O operations into larger ones to enhance write efficiency. |
Too many files in the folder | Writing a large number of files (such as hundreds of thousands) in the same directory may lead to directory locking, which in turn can affect write performance. | Distribute files across multiple directories for writing in order to reduce directory lock contention within the same directory. |
Disk I/O performance | Inadequate disk read/write speeds can negatively impact write performance. | Using cache disks that provide better I/O performance, such as Enterprise SSDs. |