Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

An universal way how to flush disk cache? (Developers)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 27.10.2011, 02:19

> But this code seems to do HDD reset that may flush internal hardware HDD
> cache (it maybe pretty large on new drives: 32-64MB!) but not software
> cache like smartdrv, etc.

All INT 13h based caching programs should monitor INT 13.00 and flush the software caches as well. The problem is that not all caches are INT 13h based (including SMARTDRV). There are some disadvantages to using an INT 13h based cache, including the fact that not all disks use INT 13h (such as SCSI/ASPI and many USB implementations). Even Jack's routine is not "universal" for flushing INT 13h caches, since it assumes that the hard drive numbers ("UnitNo" in Jack's code) are sequential, which isn't necessarily true.

> Hm, seems to be complicated - need to probe or blindly try to flush all
> posslible cache programs released in entire Universe...

Indeed it is, and that seems to be the only possibility. However, several INT 21h based caches are compatible with SMARTDRV when it comes to flushing.

 

Complete thread:

Back to the forum
Board view  Mix view
22758 Postings in 2121 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum