home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC & Mediji 2002 February
/
PCM_0202.iso
/
media
/
preizkusni
/
APKWIN2KTOOLS7.ZIP
/
APKRAMDISKINSTALL.TXT
< prev
next >
Wrap
Text File
|
2000-07-23
|
10KB
|
207 lines
To install the driver and if needed, troubleshoot its install (this CAN
happen if your registry rights are insufficient!) THE FILES IN THIS
DOCUMENT ARE COPIED BY DEFAULT TO YOUR C:\WINNT\SYSTEM32 FOLDER:
======================================================================
1.) Double-click the Add/Remove Hardware Wizard applet in Control Panel.
2.) Select Add/Troubleshoot a Device.
3.) Select Add a new device.
4.) Select No, I Want to Select the Hardware from a list.
5.) Select Other devices and then click Next.
6.) Click the Have Disk button and point to the directory that contains
Ramdisk.inf file.
(The system copies the Ramdisk.sys file to %systemroot%\system32\drivers
directory/folder and loads the driver.)
Configuring the Ramdisk Drive (manually if you do not want to use the
APK NT Ramdisk GUI front to it & want to understand MORE about it)
--------------------------------------------------------------------------------------------------------------
The Ramdisk can be configured using the registry. The RAMDISK.INF file
contains the default values for all the configurable parameters.
A brief description of each parameter follows:
BreakOnEntry REG_DWORD 0
Boolean value, which determines whether a break point will be generated
during the DriverEntry routine. It has no effect in a free build of the driver.
DebugLevel REG_DWORD 0
This value specifies the level of diagnostic messages produced. Larger
values result in more verbose messages. It can take values from 0 to 3.
It has no effect in a free build of the driver.
DebugComp REG_DWORD 0xFFFFFFFF
This value specifies the components in which the debug messages to be
printed. Each bit specifies the component. See Debug.h for component list.
It has no effect in a free build of the driver.
DiskSize REG_DWORD 0x100000 (1,048,576 1Mb)
The size of the Ramdisk drive in bytes.
DriveLetter REG_SZ Z:
The default drive letter associated with the Ramdisk drive.
RootDirEntries REG_DWORD 512
The number of entries in the root directory.
SectorsPerCluster REG_DWORD 2
The granularity of the allocation unit.
TROUBLESHOOTING SHOULD IT FAIL TO WORK DUE TO
INSUFFICIENT ACCESS RIGHTS TO YOUR REGISTRY KEYS!
=====================================================
* YOU NEED ADMINSTRATIVE RIGHTS ON THE SYSTEM YOU
INSTALL THIS TO ADDTIONALLY, SO BE SURE WHO YOU
ARE LOGGED ONTO Windows▓║║║ as is Adminstrator level or part of
the Admin group of users!
(YOU MAY NEED TO USE REGEDT32.EXE and GIVE YOURSELF
ACCESS RIGHTS TO THE KEY IN THE REGISTRY CALLED
HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\
SERVICES\RAMDISK)
ADDITIONALLY SHOULD THE TROUBLESHOOTER TAB IN THE APK
NT RAMDISK CONFIGURATOR NOT WORK AND COMPLAIN OF NOT
BEING ABLE TO "SET NEXT INSTANCE" YOU MAY NEED TO USE
REGEDT32.EXE to allow rights to yourself to the Registry Hive mentioned
above!
** Accomplishing that is easy though... (follow these step using the tool
Regedt32.exe from the APK NT Command Center's Trayicon Configuration
menu):
1.) In Regedt32.exe, navigate to the HKEY_LOCAL_MACHINE Hive/Folder!
2.) Once there, Go to the SYSTEM SubHive/Folder on the tree display
3.) Under that, go to SYSTEM
4.) Under that, go to CURRENTCONTROLSET
5.) Under that, go to SERVICES
6.) Under that, go to RAMDISK
7.) (Here's where the FUN BEGINS!) Hilite RAMDISK, then use the Security
menu item at the top in Regedt32.exe
8.) Use Security, Permissions item
9.) Be sure you have READ and FULL CONTROL checked off for rights to
it (logon as Admin to do this! and make sure Administrator user has rights
to this section of the registry!)
10.) In the Advanced button in the security permission you may also add
yourself as the owner of that folder
11.) Then, when done, use the APK NT Ramdisk to configure its size and
what not...
12.) Use the troubleshooter tab and click the button in it (one step easy)
13.) Set your temporary variables to the Ramdisk letter you chose as well (be
sure you made the RAMDISK LARGE ENOUGH for that temp ops work
like installations of large softwares (16mb-31mb size should do it) or unzips
and zips of large archives or sending HUGE EMAILS etc. in effect? USE
YOUR HEAD!
14.) Done!
HERE IS A GOOD READ:
A WHITE PAPER I WROTE FOR EEC SYSTEMS/WWW.SUPERSPEED
.COM WHILE HELPING THEM DEVELOP SUPERCACHE-NT's
SUPERCACHE NT TUNING ENGINE & SUPERDISK SOFTWARES ABOUT
RAMDISKS and HOW TO USE THEM CREATIVELY ON RAMDISK USES
BELOW:
----------------------------------------------------------------------------------------------------------
Interesting Uses of RamDisk Units
by Alexander Peter Kowalski
RamDisks can be utilized in various ways to improve performance and lend
convenience to the Windows NT based Operating Systems like NT 3.51-4.0
and Windows ▓║║║!
(Various applications such as Web Browsers and Zip/Unzip operations can
be improved dramatically. Webmasters and Database users should also take
note of this technology, since Database and Website operations can be
substantially sped up as well.)
Web Browsers
-------------------------
Point your temporary file and webpage cache operations to the RamDisk unit.
This allows you to have a cache cleaner at shutdown and faster re-access of
cached website pages and graphics. It also allows the user to not use an
"in-memory cache" setting (like Netscape has) or as large of one saving RAM
since the pages and all data are already cached to a Ramdisk at this point.
The actual size of the Ramdisk depends on your needs and RAM available
online. 16MB is a fairly large size for most operations, except large databases
and huge installation files like Netscape 4.73 which may require more than a
32MB sized Ramdisk! Large Emails and Zipping/Unzipping HUGE files is also
something to watch for! The use of an Uninterruptible Power Supply (UPS) is
advised so data is not lost in the event of a Power Failure!
Zip/Unzip, and other file based operations
--------------------------------------------------------------------
In your NT environment setting under the System Icon in Control Panel, set
tmp and temp variables to your newly created RAMDISK unit after making a
tmp and temp directory there (EASILY DONE IN LOGIN SCRIPTS OR BATCH
FILES IN THE STARTUP GROUP). If you use Netscape and have pointed the
temp operations to say, E:\TEMP (assuming E: is your newly made RAMDISK
unit), then it will do so at system startup as well. The System environment will
create the directory for you on your RAMDISK automatically. This
massively speeds up file zipping and unzipping operations as well as ANY
temporary file operations like installations (but be sure to create a large enough
RamDisk unit to accommodate large installations such as Netscape 4.73 or it
will not have enough room. Winzip is an application also that allows you to set
its working directory... set it to the RAMDRIVE and watch zips/unzips FLY!
Should you find your RAMDisk unit does not have enough room, simply
temporarily change your temporary folder in the System Icon once more or from
inside the APK RamDisk Tuning Engine to a hard disk and hit the apply button.
Once your installation is finished, you may change the temporary file directory
back to the SuperDisk unit.
Again, the actual size of the newly made Ramdisk depends on your needs &
RAM available online. 16MB is a reasonably large size for most operations
except large databases and huge installation files like Netscape 4.73 which
may require more than a 16MB sized RamDisk drive unit. The use of an
Uninterruptible Power Supply (UPS) is advised so data is not lost in the
event of a Power Failure.
Operating System
-------------------------------
You may also speedup command processing by copying your cmd.exe (again,
easily done by login scripts or a batchfile running in your startup group) file to
the RamDisk as well and pointing the COMSPEC variable (IN CONTROL
PANEL SYSTEM ICON, ADVANCED TAB, ENVIRONMENT VARIABLES
BUTTON, & CHANGE YOUR USER VARIABLES FOR ADMINISTRATOR
AND SYSTEM VARIABLES FOR TMP & TEMP ADDING THEM IF NEEDED
WHICH THE APK RAMDISK NT INTERFACE DOES! COMSPEC CAN ALSO
BE ALTERED HERE AS WELL) to that copy of cmd.exe that resides on the
RamDisk. The actual copying operation may be done from your autoexec.bat
or any logon script at system start time from inside startup group. This is an old
DOS based trick that helps improve performance quite a bit. The use of an
Uninterruptible Power Supply (UPS) is advised so data is not lost in the event
of a Power Failure with lazy write mode.
Database Applications
----------------------
Users of databases like DBase may place index files onto the RAMDISKS for
faster searches and if room is available, the entire database itself may be
placed on RAMDisk. Improving index access speed is possible for any
database including the Access based .mdb tables. In Access, data is housed
in tables and indexes etc. in a single file. The file extension for this file is .mdb.
Once again, the actual size of the Ramdisk depends on your needs and RAM
available online.
Web Serving
------------
Want to serve up your site faster? Place your website onto a Ramdisk
(preferable if you do any Active Doc or IIS + SQL server work on your
page) for the fastest seeks and updates possible. This technique has been
employed by the folks at Princeton with the AltaVista Search engine and the
speed of that site speaks for itself! Housing entire SQL Server Devices onto a
RAMDISK is also a perfomance enhancer possibly as well! You may instruct
SQL Server to place temp table operations onto this Ramdisk unit, if you are
short on RAM, and still increase speed this way.
Alexander Peter Kowalski
Win32 Senior Software Engineer
Syracuse, N.Y.