This entry controls the behavior of the HPFS cache. It is normally not set in your config.sys. Set it only if you want to change the default settings. If you encounter any problems with this statement then delete it from your config.sys file and set it up in your startup.cmd file.
RUN=C:\OS2\Cache.exe Parameters
Default settings:
-
LAZY: ON (use 1 thread)
-
BUFFERIDLE: 500 ms
-
MAXAGE: 5000 ms
-
DISKIDLE: 1000 ms
-
READAHEAD: ON
Parameters:
You can use the "/" or the "-" at the beginning of each parameter.
-
/LAZY:value
Value can be
ON
or
OFF
or in the range from
0
to
64
.
Default =
ON
If this parameter is not set it defaults to
3
.
The OS/2 online help says: "If this parameter is set no other parameters are allowed." This depends on your system, some user reported me that two lines gives errors at boot.
-
/LAZY:ON
Lazy writing is on, three threads are used.
-
/LAZY:OFF
Lazy writing is turned Off.
-
/LAZY:n
n lazy write threads are used.
-
/DISKIDLE:value
Value can be in the range from
0
to
65535
.
Default=
1000
The value is expressed in milliseconds.
This is the amount of time that the disk is idle before data can be written from cache to disk.
-
/BUFFERIDLE:value
Value can be in the range from
0
to
65535
.
Default=
500
The value is expressed in milliseconds.
This is the amount of time that the cache-buffer can be idle before the cache data must be written to disk. The OS/2 Online help says that the BUFFERIDLE time must be smaller than the DISKIDLE time. I think this is wrong!
-
/MAXAGE:value
Value can be in the range from
0
to
65535
.
Default=
5000
The value is expressed in milliseconds.
This is the time data waits in the cache before the data is written to disk.
-
/READAHEAD:value
Value can be
ON
or
OFF
or
0
or
1
.
This Parameter enables the read ahead buffer.
-
/DIRTYMAX:value
Value can be in the range from
0
to
65535
.
The value is expressed in milliseconds.
-
/WRITECACHE:value
Value can be in the range from
0
to
65535
.
The value is expressed in kilobytes.
See the examples below.
If you want to turn lazy writing off, add this line to your config.sys:
RUN=C:\OS2\CACHE.EXE /LAZY:OFF
If you want to turn lazy writing on and set bufferidle to 4 seconds, add this line to your config.sys:
RUN=C:\OS2\CACHE.EXE /BUFFERIDLE:4000
If you want to turn readahead off, add this line to your config.sys:
RUN=C:\OS2\CACHE.EXE /READAHEAD:OFF
Platform Support:
OS/2 2.x
| OS/2 3.0
| OS/2 4.0
|
Yes
| Yes
| Yes
|
|