Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DOS copy command (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 28.09.2010, 01:16
(edited by cm on 28.09.2010, 01:27)

> Also, according to MS-DOS 6.2 HELP, you can give BUFFERS two different
> numbers:
>
> BUFFERS=n[,m]
>
> where m is the size of the secondary cache. Does anybody have any idea how
> MS-DOS uses a two-stage cache? HELP doesn't really explain it, but
> indirectly refers to the secondary buffer cache in the context of SMARTDRV
> (and possibly double-buffering?).

I've seen sites that state the "secondary cache" is only useful for 8086 CPUs - however, that might be related to SMARTDRV (is it unable to run on 8086?). It is apparently recommended to leave the "secondary cache" unused if SMARTDRV (or another cache) is used. Apparently the setting is limited to 0..8, or at least that's what some sites say.

I vaguely remember it to be some kind of look-ahead cache, but I don't remember where I read that and didn't find any source supporting that claim right now. So that might be wrong.

EDIT: Also here's some stuff Eric sent us per mail for whatever reason:

> Hi, a comment on the dos copy command threat: Try first setting
> the file to the right size (seek to end-1, write a byte, close)
> and then reopen the file and start writing data, for example in
> 32k blocks, taking care that the 32k buffer does not wrap around
> a multiple of 64k in terms of linear address / DMA boundary. The
> idea is that setting the final size immediately avoids having to
> update the FAT again later: The file size does not change later,
> while it would change all the time if starting with an empty file
> and appending data to it until all content is there...
>
> Eric

Good call, at least setting the size initially. Does COPY do this? It should. (What about FreeCOM's COPY, and FD's XCOPY?)

EDIT:

Ah well Bret. Try this (search for "secondary cache"). Though I'd guess Richard doesn't know more than that either.

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 248 users online (0 registered, 248 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum