Count Key Data

Count Key Data (CKD) is a disk data architecture. Each physical disk record consists of a count field, an optional key field, and a ("user") data field with error correction/detection information appended to each field and gaps separating each field. Because of the gaps and other information the recorded space is larger than that required for just the count data, key data, or user data.

The principle behind the architecture is that since data record lengths can vary, they all have an associated count field which indicates the size of the key if used and the size of the data. The count field has the identification of the physical location in cylinder-head-record format, the length of the key, and the length of the data. The key may be omitted or consist of a string of characters. Most often the key is omitted, the record located sequentially or by direct cylinder-head-record addressing. If it is present, the key is typically a copy of the first n bytes of the data record but can be any data which will be used to find the record. The key (and hence the record) is locatable via hardware commands. Since the introduction of IBM's System/360 in 1964 nearly all IBM large and intermediate system DASDs have used the Count Key Data Architecture. Compare to Fixed Block Architecture (FBA).

The advantages of Count Key Data architecture are:

  • The record size can be exactly matched to the application block size
  • CPU and memory requirements can be reduced by exploiting search-key commands.
  • IBM CKD devices operate synchronously with the system channel and can process information in the gaps between the various fields, thereby achieving higher performance by avoiding the redundant transfer of information to the host.

Reduced CPU and memory prices and higher device and interface speeds have somewhat nullified the advantages of CKD, and it is retained only because IBM's flagship operating system z/OS does not support sector-oriented interfaces.

Extended Count Key Data (ECKD) refers to the CCW commands used with cached controllers for IBM DASD. The new commands were introduced on the cached versions of the IBM 3880 and were extended on the IBM 3990. The ECKD channel commands provide improved performance for the obsolete Bus & Tag interface, ESCON (or Enterprise Systems Connection) interface or the newer FICON (Fiber Connectivity) protocol. ECKD allows the programmer to provide the control unit with information on intent and to perform operations in a single channel program that would require multiple channel programms with CKD.

Famous quotes containing the words count, key and/or data:

    Do not count on much from the future, nor trouble your mind about the past.
    Chinese proverb.

    This is not a book. This is libel, slander, defamation of character. This is not a book, in the ordinary sense of the word. No, this is a prolonged insult, a gob of spit in the face of Art, a kick in the pants to God, Man, Destiny, Time, Love, Beauty ... what you will. I am going to sing for you, a little off key perhaps, but I will sing.
    Henry Miller (1891–1980)

    Mental health data from the 1950’s on middle-aged women showed them to be a particularly distressed group, vulnerable to depression and feelings of uselessness. This isn’t surprising. If society tells you that your main role is to be attractive to men and you are getting crow’s feet, and to be a mother to children and yours are leaving home, no wonder you are distressed.
    Grace Baruch (20th century)