Use the writethroughcache parameter to force a different operation of the cache (on a device or control unit level). The default operation uses a writeback cache technique.
Here is an example that uses all three options:
(resources | definitions) | |
.... |
|
|
c3990A: cu | 3390 |
|
interface local(1) | ||
options ‘trackcachesize=150’ | ||
device(00) | ||
device(01) | ||
device(02) | /usr/flexes/links/C3s1 devopt ‘trackcachesize=45’ | |
device(03) | /usr/flexes/links/D3s1 devopt ‘trackcachesize=30,writethroughcache’ | |
device(04) | OFFLINE devopt ‘trackcachesize=0’ | |
end c3990A |
|
|
This is a bit complex. The five devices defined will ask for (15 + 5 + 45 + 30 + 0 =) 95 tracks of cache. (Device (00) does not specify a cache size and defaults to 15 tracks.) The control unit definition specifies 150 tracks of cache. This is (150 - 95 =) 55 more tracks than needed by individual device caches, and the 55 tracks will be a floating cache. The floating cache is managed by internal
Cache is normally allocated for an offline device, since you might perform a
If you specify a control unit cache size of less than the sum of the individual device caches, the specified control unit cache size is ignored.
A writethrough operation means that the S/390 channel operation for a disk write is not complete until the data is actually written to the Server disk.11 A copy of the data is retained in the
If you have enough Server memory, you can specify large disk caches for better overall system performance. There is obviously room for considerable tuning here, by manipulating cache sizes at the device and control unit level. You can use the d ckdcachestats cuu command to monitor cache effectiveness:
flexes> d ckdcachestats A80 |
|
|
|
| |||
ADDRESS | READS | WRITES | CACHE HITS | DEDICATED LINES | LINES USED | ||
A80 | 2880 | 182 | 1811 | (97%) | 15 | 15 | (0%) |
A81 | 2880 | 182 | 1811 | (97%) | 15 | 15 | (0%) |
A82 | 2880 | 182 | 1811 | (97%) | 15 | 15 | (0%) |
10This should be a familiar concept. The typical UNIX operation involves writeback caches, where the disk cache buffers are synched (flushed) to disk every 10 seconds or so.
11This is not quite correct, because the RAID adapter also has a cache and the individual disk drives often have a buffer that performs a temporary cache function. We ignore these points in the current discussion.
Chapter 5. Additional Topics | 51 |