1 SetCache is a little tool to set the read-ahead cache of a
2 Smart Filesystem drive. This is not the same as the buffers
3 you can add using the AddBuffers command.
5 The read-ahead cache is used to prefetch information which
6 may be needed later on. Because most harddisks don't suffer
7 a speed penalty when reading a bit more data this can
8 increase performance drastically.
10 It's command line syntax is:
12 DEVICE/A,LINES/N,READAHEAD/N,NOCOPYBACK/S
17 The name of the device which you want to set the read-ahead
18 cache for. Donot include a colon (":") after the device
19 name. This only works for Smart Filesystem drives, and
20 won't do anything with the FastFilesystem.
25 Controls the number of read-ahead buffers. Each buffer is a
26 specific bytes in size, which you can control using the
27 READAHEAD parameter. It is a good idea to set this to
28 atleast 8 buffers or more.
33 The number of bytes which the filesystem will read ahead.
34 This controls the size of the buffers you specified with the
37 The READAHEAD parameter will be rounded to a power of 2
38 automatically (for example, 5000 becomes 4096 (2^12)).
43 Turns off copyback mode. There shouldn't be any reason why
44 you want to do this, short of testing purposes. The
45 copyback mode is implemented in such a way that it can't
46 leave your disk in an incorrect state (just like the rest of
50 If the SetCache command was succesful it will print the new
58 SetCache SFS Lines=10 ReadAhead=8192
60 -> Set the read-ahead cache to 10 buffers of 8192 bytes each.