150 likes | 160 Vues
This chapter explores disk storage, basic file structures, and hashing techniques. It covers topics such as disk organization, concurrency, record storage formats, record organization, internal hashing, overflow handling, extendible hashing, data striping, and RAID levels.
E N D
Chapter 13 Disk Storage, Basic File Structures, and Hashing
FIGURE 13.1(a) A single-sided disk with read/ write hardware. (b) A disk pack with read/write hardware.
FIGURE 13.2Different sector organizations on disk. (a) Sectors subtending a fixed angle. (b) Sectors maintaining a uniform recording density.
FIGURE 13.3Interleaved concurrency versus parallel execution.
FIGURE 13.4Uses of two buffers, A and B, for reading from disk.
FIGURE 13.5Three record storage formats. (a) A fixed-length record with six fields and size of 71 bytes. (b) A record with two variable-length fields and three fixed-length fields. (c) A variable-field record with three types of separator characters.
FIGURE 13.6Types of record organization. (a) Unspanned. (b) Spanned.
FIGURE 13.7Some blocks of an ordered (sequential) file of EMPLOYEE records with NAME as the ordering key field.
FIGURE 13.8Internal hashing data structures. (a) Array of M positions for use in internal hashing. (b) Collision resolution by chaining records.
FIGURE 13.12Data striping. File A is striped across four disks.
FIGURE 13.13Multiple levels of RAID. From Chen, Lee, Gibson, Katz, and Patterson (1994), ACM Computing Survey, Vol. 26, No. 2 (June 1994). Reprinted with permission.