Jump to content

VDISK.SYS: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
As in DOS, this driver installs a RAM disk. In this example, the RAM disk is 512k with the sectors and directories parameters set at the default level (64-byte sectors and 64 directory entries). With DOS, a RAM disk could significantly improve system performance, but because OS/2 handles your memory far more efficiently than DOS and has its own sophisticated caching routines, using a RAM disk is not recommended.
The '''VDisk Device Driver''' (VDISK.SYS) provides a virtual disk in RAM.
 
DEVICE=x:\OS2\BOOT\VDISK.SYS [bbbb] [ssss] [dddd]
 
==Parameters==
;bbbb:Disk size in KB. Default value is 64 (16 ... 4096).
;ssss:Sector size in bytes. Default value is 512 (128, 256, 512, 1024).
;dddd:Number of root directory entries. Default is 64 (2 ... 1024). The value is rounded up to the nearest sector size boundary.
:;NOTE: In the event that there is not enough memory to create the VDisk volume, VDisk will try to make a DOS volume with 16 directory entries. This may result in a volume with a different number of directory entries than the parameter specifies.


;CAUTION:Because a RAM disk takes available memory away from OS/2, you may negatively impact system performance on systems with less than 12MB of RAM. Unless you have lots of RAM or have a very specific need, don't install a RAM disk.
;CAUTION:Because a RAM disk takes available memory away from OS/2, you may negatively impact system performance on systems with less than 12MB of RAM. Unless you have lots of RAM or have a very specific need, don't install a RAM disk.
;NOTE:If you do install VDISK.SYS and you also have [[EXTDSKDD.SYS]] installed, VDISK.SYS must be placed after EXTDSKDD.SYS in your config.sys file. Check your on-line ''Command Reference'' for information on EXTDSKDD.SYS.
;NOTE:If you do install VDISK.SYS and you also have [[EXTDSKDD.SYS]] installed, VDISK.SYS must be placed after EXTDSKDD.SYS in your config.sys file. Check your on-line ''Command Reference'' for information on EXTDSKDD.SYS.
;TIP:Better use the RAM(64).IFS by Karl Olson, see IFS.
;TIP:Better use the RAM(64).IFS by Karl Olson, see IFS.
{| class="wikitable"
|+Platform Support:
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|Yes
|Yes
|Yes
|Yes
|}


[[Category:DEVICE Statements]]
[[Category:DEVICE Statements]]

Revision as of 17:40, 23 October 2019

The VDisk Device Driver (VDISK.SYS) provides a virtual disk in RAM.

DEVICE=x:\OS2\BOOT\VDISK.SYS [bbbb] [ssss] [dddd]

Parameters

bbbb
Disk size in KB. Default value is 64 (16 ... 4096).
ssss
Sector size in bytes. Default value is 512 (128, 256, 512, 1024).
dddd
Number of root directory entries. Default is 64 (2 ... 1024). The value is rounded up to the nearest sector size boundary.
NOTE
In the event that there is not enough memory to create the VDisk volume, VDisk will try to make a DOS volume with 16 directory entries. This may result in a volume with a different number of directory entries than the parameter specifies.
CAUTION
Because a RAM disk takes available memory away from OS/2, you may negatively impact system performance on systems with less than 12MB of RAM. Unless you have lots of RAM or have a very specific need, don't install a RAM disk.
NOTE
If you do install VDISK.SYS and you also have EXTDSKDD.SYS installed, VDISK.SYS must be placed after EXTDSKDD.SYS in your config.sys file. Check your on-line Command Reference for information on EXTDSKDD.SYS.
TIP
Better use the RAM(64).IFS by Karl Olson, see IFS.