HP StorageWorks P2000 HP StorageWorks P2000 G3 MSA System CLI Reference Guide - Page 114

set cache-parameters, Optional. Controls the use and size of read-ahead cache

Page 114 highlights

set cache-parameters Description Sets a volume's cache options. Settings you can change include: • Cache write policy • Cache optimization mode • Cache read-ahead size NOTE: Only change the read-ahead cache settings if you fully understand how the host operating system, application, and adapter move data so that you can adjust the settings accordingly. Be prepared to monitor system performance and adjust read-ahead size until you find the optimal size for your application. Syntax set cache-parameters [write-policy write-back|write-through|wb|wt] [optimization standard|super-sequential] [read-ahead-size disabled|default|maximum|64KB|128KB|256KB|512KB|1MB|2MB|4MB |8MB|16MB|32MB] volume Parameters write-policy write-back|write-through|wb|wt Optional. Sets the cache write policy to either: • write-back (wb): Write-back caching does not wait for data to be completely written to disk before signaling the host that the write is complete. This is the preferred setting for a fault-tolerant environment because it improves the performance of write operations and throughput. • write-through (wt): Write-through caching significantly impacts performance by waiting for data to be completely written to disk before signaling the host that the write is complete. Use this setting only when operating in an environment with low or no fault tolerance. optimization standard|super-sequential Optional. Sets the cache optimization mode to either: • standard: Used for applications that read and write small files in random order, such as transaction-based and database update applications. Sets the cache block size to 32 KB. • super-sequential: Used for applications that read and write large files in sequential order, such as video playback and multimedia post-production video and audio editing applications. Sets the cache block size to 128 KB. read-ahead-size Optional. Controls the use and size of read-ahead cache: • disable: Turns off read-ahead cache. • default: Sets one chunk for the first access in a sequential read and one stripe for all subsequent accesses. • maximum: Allows the controller to dynamically calculate the maximum read-ahead cache size for the volume. • 64KB, 128KB, 256KB, 512KB, 1MB, 2MB, 4MB, 8MB, 16MB, 32MB: Sets a specific cache size. volume Name or serial number of the volume to change. For volume syntax, see Command syntax on page 22. Example Set the cache policy and cache optimization mode for volume V1: # set cache-parameters optimization super-sequential read-ahead-size maximum V1 Success: Command completed successfully. - Cache parameters were changed See also • show cache-parameters • show volumes 114

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262

114
set cache-parameters
Description
Sets a volume's cache options. Settings you can change include:
Cache write policy
Cache optimization mode
Cache read-ahead size
NOTE:
Only change the read-ahead cache settings if you fully understand how the host operating
system, application, and adapter move data so that you can adjust the settings accordingly. Be
prepared to monitor system performance and adjust read-ahead size until you find the optimal size
for your application.
Syntax
set cache-parameters
[write-policy write-back|write-through|wb|wt]
[optimization standard|super-sequential]
[read-ahead-size disabled|default|maximum|64KB|128KB|256KB|512KB|1MB|2MB|4MB
|8MB|16MB|32MB]
volume
Parameters
write-policy write-back|write-through|wb|wt
Optional. Sets the cache write policy to either:
write-back
(
wb
): Write-back caching does not wait for data to be completely written to disk
before signaling the host that the write is complete. This is the preferred setting for a fault-tolerant
environment because it improves the performance of write operations and throughput.
write-through
(
wt
): Write-through caching significantly impacts performance by waiting for
data to be completely written to disk before signaling the host that the write is complete. Use this
setting only when operating in an environment with low or no fault tolerance.
optimization standard|super-sequential
Optional. Sets the cache optimization mode to either:
standard
: Used for applications that read and write small files in random order, such as
transaction-based and database update applications. Sets the cache block size to 32 KB.
super-sequential
: Used for applications that read and write large files in sequential order,
such as video playback and multimedia post-production video and audio editing applications.
Sets the cache block size to 128 KB.
read-ahead-size
Optional. Controls the use and size of read-ahead cache:
disable
: Turns off read-ahead cache.
default
: Sets one chunk for the first access in a sequential read and one stripe for all
subsequent accesses.
maximum
: Allows the controller to dynamically calculate the maximum read-ahead cache size for
the volume.
64KB
,
128KB
,
256KB
,
512KB
,
1MB
,
2MB
,
4MB
,
8MB
,
16MB
,
32MB
: Sets a specific cache size.
volume
Name or serial number of the volume to change. For volume syntax, see
Command syntax
on
page 22.
Example
Set the cache policy and cache optimization mode for volume
V1
:
# set cache-parameters optimization super-sequential read-ahead-size maximum V1
Success: Command completed successfully. - Cache parameters were changed
See also
show cache-parameters
show volumes