China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 15:42
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » What does the smartdrv command mean? View 1,429 Replies 5
Original Poster Posted 2003-06-07 00:00 ·  中国 上海 电信
初级用户
Credits 103
Posts 1
Joined 2003-06-07 00:00
23-year member
UID 4277
Gender Male
Status Offline
What does the smartdrv command mean?
Floor 2 Posted 2003-06-07 00:00 ·  中国 广东 广州 教育网
初级用户
Credits 185
Posts 26
Joined 2003-06-07 00:00
23-year member
UID 4265
Gender Male
Status Offline
Disk buffer memory can be used to pre-read the content on the disk into the memory. When these contents are needed, they can be read directly from the memory instead of reading from the disk, which speeds up the reading speed. In addition, there is write buffer, that is, the content to be written to the disk is first placed in the memory and then written to the disk集中ly, avoiding multiple writes to the disk, which can improve the efficiency of the system.

Why put the content of the disk into the memory?

Because the reading and writing speed of the memory is much higher than that of the disk.
Floor 3 Posted 2003-06-07 00:00 ·  中国 上海 闵行区 电信
中级用户
Credits 226
Posts 31
Joined 2003-06-04 00:00
23-year member
UID 3544
Gender Male
Status Offline
But how does he know which contents on the disk should be read into memory?????? If what is read in is not what I want to use, isn't that a waste of memory for nothing?
Floor 4 Posted 2003-06-08 00:00 ·  中国 广东 广州 教育网
初级用户
Credits 185
Posts 26
Joined 2003-06-07 00:00
23-year member
UID 4265
Gender Male
Status Offline
Here are some algorithms involved, and I don't understand them either. But some are easy to understand. For example, file A is placed on 10 clusters (I don't know how to pronounce "簇" exactly; I can't type it out), and file B is placed on 8 clusters. The positions of these two files on the disk are adjacent. We first open A and then open B. If the system reads by itself, it will read A first, and only when we are about to open B will it read B. But smartdrv will load both A and B into memory. In this way, the speed of opening A may not be much faster, but the speed of opening B will be much faster.

You can do an experiment:

Boot with a DOS boot disk, then type the following commands:

cd\

Press Enter

dir/s

Press Enter

At this time, the system will list all non-hidden files in this directory. Calculate the time required;

Then run smartdrv, type the above command:

cd\

Press Enter

dir/s

Press Enter

Calculate the time. Is it much faster than when smartdrv is not run?
Floor 5 Posted 2003-06-08 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 128
Posts 6
Joined 2003-06-08 00:00
23-year member
UID 4359
Gender Male
Status Offline
How to load smartdrv in a DOS boot disk. It seems that when I installed WIN2000 directly from the hard disk, the speed was slower than a snail, but it was faster with the CD-ROM.
Floor 6 Posted 2003-06-08 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
This is because the startup CD of WIN2000 uses a similar buffering technology. A few years ago, I entered the CD to install the WIN2000 beta version (reported by China Computer) under DOS, and it took a total of more than 7 hours to install.

SMARTDRV.EXE can be obtained from the installation files of WIN98/95. Put it into the boot disk, and you can load it with the SMARTDRV command. It can also be written into autoexec.bat.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Forum Jump: