Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

NTVDM speed (or lack thereof) (Announce)

posted by Ninho E-mail, 15.02.2011, 12:26
(edited by Ninho on 15.02.2011, 12:43)

>> I killed off all Dos use on normal windows systems in 2002-2003 when I
>> moved to Win2000. (Since dos fullscreen apps are much slower on NT than
>> win32 stuff)

> Except for LZMA-FPC, I've never seen any significant slowdown with 32-bit
> DOS apps. So nyah.

I would not have mentioned the following in a DOS forum, but you kinda started me... For CPU bound apps, NTVDM indeed is awfully slow - independent of display mode.

A craftfuly enough optimised program of mine doing heavy and lengthy calculations during hours, entirely in registers (avoiding memory accesses, even from the data caches!), runs about 4 times slower -wall time- in Windows 2k than in pure DOS ! And this is in concurrence with NO other (user) tasks ! And running maximised in foreground (just in case, but no joice).

The cause is, of course, you cannot stop Windows multitasking°, and it consumes 3 times more time doing whatever obscure and (in this case) evidently useless bookkeeping just in order to stay alive!!!
(edit) sorry I forgot to stress, another cause to this extreme slowdown is that every context switch disrupts caches thus ruining the optimisation I mentionned (edit ends)

° Or can you ? I did some research, even asked the Sysinternals gurus, never found any way to "tame" the beast, albeit means to increase the time quantum alloted to the task of interest. Oddly, it's possible to decrease the quantum (for "multimedia" purposes. burp!)

Under the virtual DOS box of Windows 9x, the slowdown if much less than NT, but still significant (unbearable for the lengthy calculations). Except of course unlike NT you /could/ CLI under 9x ;=)

One more reason to keep our DOS living !

---
Ninho

 

Complete thread:

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