CLV vs. CAV. Constant Linear Velocity vs. Constant Angular Velocity. Deals with rotation speed of disks. For example, records. Records play at different speeds. 33 1/3 RPM, and 45 RPM. Older records played at 78 RPM, and some specialty spoken word records played at 16 2/3 RPM. This is called Constant Angular Velocity. The record always has the same RPM, no matter how far you are along on the record. So, at the outer edge, the record passes by the needle at a faster rate than at the inner edge. The outer edge is longer than the inner edge, both both outer and inner edges complete the circle in the same amount of time as each other. In ye olden days, faster or more complex music was stored on the outer tracks because you needed that greater speed to provide clarity when you needed it. You could put ballads on the inner track. When CD's came out, CD's used Constant Linear Velocity. The first songs on the CD were on the inner track, and the last were on the outer track, but the laser always moves across the pits at the same rate, so the CD appears to slow down as it progresses because there's more information on the outer tracks. For disk drives (magnetic disk drives), CLV is generally what you would expect because if the "bits" are the same size and spaced apart about the same way, you can fit more bits on the outer edge than on the inner edge and so as the head moves outward, the drive slows down (in terms of angular velocity). When you want to read a specific byte from the disk, then the head has to move the correct location (cylinder) and then has to wait for the disk to rotate into position to read that byte. Now since the disk spins very fast, the head doesn't have to wait all that long. The big slowdown is the head moving to the correct position. Let's say a whole bunch of read requests come in. Wanting to read from all sorts of positions on the disk. The disk can only read one position at a time, so how should it process these requests (Read requests from sectors 12, 9, 100, 32, 8, 16, 4). Well, one strategy is FCFS (First Come, First Served): The requests are processed in the order in which they are received, even if that causes the head to jump back and forth a lot. SCAN system: The head moves forward and processes all requests in forward order that are waiting and then moves backward and processes all those requests that are waiting. So, from the beginning, it would process 4, 8, 9, 12 16, 32, 100, and it doesn't which of these has been waiting the longest. Then it will go backwards and process those requests in reverse order. And so forth. Some people call this the "elevator" system. An elevator processes it up requests until there are no more and then processes its down requests, and sometimes people who are waiting longer get serviced more quickly than people who are waiting less. Some don't like the SCAN system, because it does favor those who are waiting for a smaller amount of time. If you're on the outer edge and place your request just after the head is passed you by, the head will hit you immediately after turning around and service your request before some request on the inner edge (which was certainly waiting longer) gets hit. So, some prefer the C-SCAN system. The head services requests in order in one direction, and then returns to the starting point without servicing any requests and then once against services requests in forward order. A big problem with drive reading is errors. Errors can occur for any number of mechanical reasons over which you really have no control. Sometimes it just reads differently. You read some information incorrectly, so what do you do about that? (Read everything twice, which is what some CD players do. In some systems, every sector is read multiple times, and the results are averaged together. For music, that's not a bad system, but if you accurate, perfect bytes, this can be a problem. So, there are a number of error-detection and error-correcting algorithms. They are not "perfect". They will sometimes not flag errors that are present. They will sometimes "correct" a byte to the wrong thing. 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 2 3 6 7 10 11 14 15 18 19 22 23 26 27 30 31 4 5 6 7 12 13 14 15 20 21 22 23 28 29 30 31 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 You can use this trick to make something called a Hamming Code. 0 0 1 0 0 1 1 0 0 1 1 0 12 11 10 9 8 7 6 5 4 3 2 1 2 1