RayeR

CZ, 09.06.2010, 02:00
@ Arjay
|
TSR vs DEVICE= |
> > with JEMM quick boot feature it's done in 5 seconds ;)
> I haven't used JEMM but that sounds like the old Int 19h trick or Lazy
> Man's reboot as I call it:
Yes, probably. Also QEMM that I used before has this feature. It's good when e.g. tunning maximum low memory and rebooting very often...
> copy con lmboot.com
> [ALT 205][CTRL^Y][CTRL^Z]
Hehe copy con, hardcore programmer's way :) --- DOS gives me freedom to unlimited HW access. |
Jack

Fresno, California USA, 09.06.2010, 00:48
@ Arjay
|
"Capital Letters". |
> I can see both perspectives and would hope that all parties concerned
> can aim for some middle ground.
Also agreed. In my post below, about "No Removable HARD Disks", I did
in fact eliminate much capitalization before posting it, since Marcov's
post was noted by me.
Why don't we keep BTTR as the best "technical" board, and stop all such
unneeded items. That, in fact, is why I post here, and not elsewhere. --- (Account disabled on user's request.) |
Arjay
09.06.2010, 00:37
@ marcov
|
"Capital Letters". |
> > > FYI: There seems to be a problem with your caps-lock-key.
Jack might have being posting via a C64 ;)
> AnD I ThOuGhT YoU OnLy DiD iT tO mAkE iT hArD tO rEaD 
?daer ot drah eb ot ti detnaw eh fi sdrawkcab egassem sih nettirw evah dlouw kcaJ yleruS
> Please don't, rants are already fatiguing enough.
I can see both perspectives and would hope that all parties concerned can aim for some middle ground. |
Jack

Fresno, California USA, 09.06.2010, 00:24
@ marcov
|
No "Rants", But ... |
> AnD I ThOuGhT YoU OnLy DiD iT tO mAkE iT hArD tO rEaD 
>
> Please don't, rants are already fatiguing enough.
Agreed. So if you will give up this not-very-humorous thread about
English style, that I was taught in High-School and has been part of
my life for nearly 50 years since then, I will spare you my comments
on the Cyrillic alphabet, and perhaps the word "nekulturny" as well.
 --- (Account disabled on user's request.) |
Jack

Fresno, California USA, 08.06.2010, 23:57
@ Jack
|
No "Removable" HARD Disks Supported By UIDE! |
Re: my ongoing "issues" about UIDE used with USBDRIVE, there is another huge
problem --
Bret Johnson has noted on his forum that he plans a "workaround" for what he
sees as UIDE's problems, in which USBDRIVE will load first, and UIDE will be
loaded afterward by Eric Auer's DEVLOAD or equivalent. UIDE can then "see"
every USB device I-O request and cache them using its "call the BIOS" logic.
"The BIOS" in this case will be USBDRIVE, which will "intercept" and perform
needed I-O, then UIDE will cache the data (if needed) on exit from USBDRIVE.
The problem: USBDRIVE declares all of its drives as "removable" HARD disks,
when an EDD BIOS "Int 13h AH=048h" call is issued!
DOS is an "old" system, designed when a hard-disk really was HARD, and never
"removable"! If a supposed hard-disk were to return a "media change" code,
as diskette drives do when a new one is inserted, I DARE NOT "trust", across
all DOS kernels, that their internal disk buffers (CONFIG.SYS "BUFFERS=" and
"BUFFERSHIGH=") are going to get re-input! There was never any requirement
for HARD disks in a DOS system to cause this, nor even to present any "media
change" codes to the system!
In the past I have owned Iomega JAZ and Castlewood ORB cartridge disks, both
good ideas, but each failed after only 6 months which was "not good"! When
used with V6.22 MS-DOS, in fact I did notice that the only "reliable" way to
make DOS "forget" all data for an unloaded cartridge was to REBOOT!!
Nor are "media changes" a responsibility for UIDE, either. UIDE is not the
"driver" here -- USBDRIVE is!! UIDE merely provides a "caching service" to
USBDRIVE, no-matter which of the two may or may-not load first! So, it is
a responsibility for USBDRIVE to "tell UIDE" when its cache must be flushed,
which UIDE's "external reset" entry-point does permit.
If all USBDRIVE does is to issue Int 13h I-O commands, but NOT "notify" UIDE
that a media-change requires a cache-flush, then "data corruption" far worse
than Bret Johnson ever imagined WILL occur, using his "workaround"!
And "Puh-LEEZE" do NOT ask me to add such media-change logic -- UIDE's SATA/
IDE routines run HARD disks, NOT funny-bunny REMOVABLE "hard" disks, same as
most DOS kernels still expect! I have no wish to "clutter up" UIDE's HARD
disk logic, nor give-up any of its performance, for "removability" BULLSH*T!
To protect against these problems, and the even more-unresolvable one of DOS
flushing its internal hard-disk "buffers", I have decided to change the UIDE
driver so it will NOT "handle" any BIOS unit of 080h or greater (hard disks)
that are flagged "removable" by an "Int 13h AH=048h" call! Any such units
will now be ignored by UIDE's initialization logic, and I-O for them will be
totally "passed" to the next driver in the Int 13h "chain", i.e. NOT cached!
I WILL NOT permit UIDE to get blamed for DOS or other-driver design FAULTS!!
My Thanks to Khusraw for testing the new driver (he has USB units, I do not)
and it will shortly become the "standard" UIDE.
If USBDRIVE desires to call UIDE for caching, using its "external entry" and
"external reset" call points as intended, "fine and dandy", and USBDRIVE can
deal with "removability" issues any way it desires, as it is the only driver
which SHOULD deal with them! But henceforth, UIDE shall support only FIXED
hard-disks in its SATA and IDE disk routines! --- (Account disabled on user's request.) |
marcov
08.06.2010, 23:19
@ Jack
|
"Capital Letters". |
> > FYI: There seems to be a problem with your caps-lock-key. It seems to
> > hang now and then.
>
> Only when I wish it so -- I was taught capital letters are for EMPHASIS!
AnD I ThOuGhT YoU OnLy DiD iT tO mAkE iT hArD tO rEaD 
Please don't, rants are already fatiguing enough. |
marcov
08.06.2010, 23:18
@ Rugxulo
|
Re: UIDE Unloading And Cache-Sizes. |
> > get discarded, when more new data arrives. Keeping DOS directories
> > "in cache" is the GREATEST advantage of using UIDE, as DOS otherwise
> > does only SLOW "designed in 1981" single-sector directory handling!
>
> The problem is that backends for GCC 3.4.4 (which I use there) are 3.5 MB
> unpacked. (Latest DJGPP GCC 4.4.2 is 8.5 MB for CC1.EXE, yikes.) The 2.04
> libc itself is 800k. And the assembler and linker (AS, LD) are also pretty
> big (800k, 600k). The internal Pentium cache is ridiculously small.
But only the working set size matters for cache, not the overall size. If you have a 99.99% hit ratio in 32k, it will work fine 
> Anyways, I just now tried a bit messing with GPC. Seems that the linking
> stage takes the longest, so copying the relevant libs to RAM disk and
> using -L. speeds it up more than UIDE /S15 did. Hence, I'll stick to /S5
> for now. (Plus I usually need the RAM for other stuff. And this is also
> why I like TDSK to be able to resize, as by default I use 5 MB for it
> too.)
This is some what strange. While I do directly understand that the ramdisk speeds up, I'm a bit surprised this is very noticable in the linking step.
> > Using a 5-MB cache, if you have no files larger than about 2-MB, you
> > can copy such files using 4-MB of cache (2 for input, 2 for output),
> > and you still have about 1-MB left for directories. When DOS wants
> > to copy another file or load a new program, it loses NO speed, since
> > the directories were not discarded due to too-much "new" cache data.
>
> Well, choice of software affects this, and you can indeed blame me for
> using either a "low RAM" cpu or bloated compiler or whatnot.
You forgot the most important part: choice of computers 
> I know TP55 and TMT are probably faster, but they aren't as good for some
> (most?) things.
Depends on what you do. For a quick calculation TP55 might be quite ok. (at least if it supports copro), but with serious programs, you get out of memory fast.
Anyway, TP and VP share the problem that they are unmaintained, something that I avoid for active development.
> Haven't benchmarked FPC on that clunker yet (have to pare it down
> first, been busy with other things). They always claim faster compilation,
> so it would be nice to see if that's true. 
Its not so much the compilation as the integrated assembler/linker.
But contrary to other systems, I assume DJGPP might have had a lot of dos-specific work done to mitigate the standard naieve approach of the GNU toolchain, so it might not be so prominent on Dos.
Note that that is fast compared to GCC/GPC, not to the rest.
Lastely there is the 300 pound gorilla, the delphi commandline compiler with wdosx, generating wdosx apps. |
Jack

Fresno, California USA, 08.06.2010, 23:15
@ marcov
|
"Capital Letters". |
> FYI: There seems to be a problem with your caps-lock-key. It seems to
> hang now and then.
Only when I wish it so -- I was taught capital letters are for EMPHASIS! --- (Account disabled on user's request.) |
marcov
08.06.2010, 22:41
@ Jack
|
"That Will Be ALL!" For UIDE and USB! |
> I do hope folks "Understand BETTER!" than what Bret Johnson is
> trying to make his readers believe!
>
> I consider UIDE to be a "hard" SYSTEM driver, one which caches
> essential devices like the system hard-disk and CD/DVD drives,
> and thus people should NEVER want to unload it! I have been
> asked about RDISK unloading, but absolutely NOBODY before Bret
> Johnson ever inquired re: unloading UIDE. However, he seems
> to want ALL drivers to be unloadable, and he very disdainfully
> "puts down" ones that cannot be, even drivers that worked fine
> BEFORE his USB showed-up!
FYI: There seems to be a problem with your caps-lock-key. It seems to hang now and then. |
Arjay
08.06.2010, 19:30
@ RayeR
|
TSR vs DEVICE= |
> So you can just reboot and choose different menu in config.sys
Totally agree. I can't remember when I last unloaded a TSR or device driver.
> with JEMM quick boot feature it's done in 5 seconds ;)
I haven't used JEMM but that sounds like the old Int 19h trick or Lazy Man's reboot as I call it:
copy con lmboot.com
[ALT 205][CTRL^Y][CTRL^Z]
useful at times but also risky. |
RayeR

CZ, 08.06.2010, 15:46
@ DOS386
|
TSR vs DEVICE= |
> Why uninstall UIDE? Well, to measure the performance without it maybe ?
> 
Hm this is used very often by users, lol :)
So you can just reboot and choose different menu in config.sys With JEMM quick boot feature it's done in 5 seconds ;) --- DOS gives me freedom to unlimited HW access. |
Rugxulo

Usono, 08.06.2010, 01:35
@ Jack
|
Re: UIDE Unloading And Cache-Sizes. |
> > However, I still think 15 MB used of 32 MB is too much, which you
> > suggested once; heck, I even tested it, couldn't find any speedup,
> > so I stick to 5 MB on that old clunker.
>
> "The theory" of UIDE's caches is that, if possible, you should set a
> cache TWICE the size of your largest data file, PLUS extra memory so
> a reasonable amount of DOS directories can remain "in cache" and not
> get discarded, when more new data arrives. Keeping DOS directories
> "in cache" is the GREATEST advantage of using UIDE, as DOS otherwise
> does only SLOW "designed in 1981" single-sector directory handling!
The problem is that backends for GCC 3.4.4 (which I use there) are 3.5 MB unpacked. (Latest DJGPP GCC 4.4.2 is 8.5 MB for CC1.EXE, yikes.) The 2.04 libc itself is 800k. And the assembler and linker (AS, LD) are also pretty big (800k, 600k). The internal Pentium cache is ridiculously small.
(EDIT: Looks like 3.4.4 CC1.EXE is actually 4.2 MB, I forgot I must've recompiled GCC 3.4.4 in blind hopes of speedup a while back.)
Anyways, I just now tried a bit messing with GPC. Seems that the linking stage takes the longest, so copying the relevant libs to RAM disk and using -L. speeds it up more than UIDE /S15 did. Hence, I'll stick to /S5 for now. (Plus I usually need the RAM for other stuff. And this is also why I like TDSK to be able to resize, as by default I use 5 MB for it too.)
> Using a 5-MB cache, if you have no files larger than about 2-MB, you
> can copy such files using 4-MB of cache (2 for input, 2 for output),
> and you still have about 1-MB left for directories. When DOS wants
> to copy another file or load a new program, it loses NO speed, since
> the directories were not discarded due to too-much "new" cache data.
Well, choice of software affects this, and you can indeed blame me for using either a "low RAM" cpu or bloated compiler or whatnot. I know TP55 and TMT are probably faster, but they aren't as good for some (most?) things. Haven't benchmarked FPC on that clunker yet (have to pare it down first, been busy with other things). They always claim faster compilation, so it would be nice to see if that's true.  |
DOS386
07.06.2010, 08:01
@ Jack
|
TSR vs DEVICE= |
> Note his last post dated Tue Jun 01, 2010 6:18 PM, in which he
> says that UIDE's external interface is "essentially unusable",
Please don't assume evil faith.
Yeah an unlodable TSR is IMHO the better way to do than DEVICE= , at least until someone proves me wrong here 
Why uninstall UIDE? Well, to measure the performance without it maybe ? 
FYI, I appreciate the work of both Bret and Jack  --- This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft *** |
Japheth

Germany (South), 07.06.2010, 07:51
@ Jack
|
"That Will Be ALL!" For UIDE and USB! |
I just read the 06/01 post at bret's forum. AFAIU the workaround loading
a) USBDRIVE - and then
b) UIDE via DEVLOAD
does work currently and will also work after his planned additions. The only drawback is that USBDRIVE will be "unremovable" afterwards.
If this is true, then IMO it is a rather acceptable condition. No need to invest further time for improvements. --- MS-DOS forever! |
Jack

Fresno, California USA, 07.06.2010, 05:30
@ Rugxulo
|
Re: UIDE Unloading And Cache-Sizes. |
>> I consider UIDE to be a "hard" SYSTEM driver, one which caches
>> essential devices like the system hard-disk and CD/DVD drives,
>> and thus people should NEVER want to unload it! ...
>
> The only reason (IMHO) to unload would be to free up precious memory
> without requiring a reboot. And most users don't have any shortage
> of RAM, esp. for DOS apps.
One has to be "Quite DESPERATE!" for memory, if saving the 944 bytes
of upper-memory used by the current UIDE is actually THAT important!
> However, I still think 15 MB used of 32 MB is too much, which you
> suggested once; heck, I even tested it, couldn't find any speedup,
> so I stick to 5 MB on that old clunker.
"The theory" of UIDE's caches is that, if possible, you should set a
cache TWICE the size of your largest data file, PLUS extra memory so
a reasonable amount of DOS directories can remain "in cache" and not
get discarded, when more new data arrives. Keeping DOS directories
"in cache" is the GREATEST advantage of using UIDE, as DOS otherwise
does only SLOW "designed in 1981" single-sector directory handling!
Using a 5-MB cache, if you have no files larger than about 2-MB, you
can copy such files using 4-MB of cache (2 for input, 2 for output),
and you still have about 1-MB left for directories. When DOS wants
to copy another file or load a new program, it loses NO speed, since
the directories were not discarded due to too-much "new" cache data.
Many DOS-only systems (NO Windows!) have only such small files, thus
a 5-MB UIDE cache is still useful for them. However, try copying a
BIG 100-MB file or more with only a 5-MB cache, and you will "see" a
speed loss, which you would NOT see if using a 250-MB cache or more!
The loss is small, and UIDE re-inputs discarded directories quickly.
But for BEST speed, do set UIDE cache sizes using "the theory" above! --- (Account disabled on user's request.) |
Rugxulo

Usono, 07.06.2010, 04:20
@ Jack
|
"That Will Be ALL!" For UIDE and USB! |
> I consider UIDE to be a "hard" SYSTEM driver, one which caches
> essential devices like the system hard-disk and CD/DVD drives,
> and thus people should NEVER want to unload it! I have been
> asked about RDISK unloading, but absolutely NOBODY before Bret
> Johnson ever inquired re: unloading UIDE.
The only reason (IMHO) to unload would be to free up precious memory without requiring a reboot. And most users don't have any shortage of RAM, esp. for DOS apps. (However, I still think 15 MB used of 32 MB is too much, which you suggested once; heck, I even tested it, couldn't find any speedup, so I stick to 5 MB on that old clunker.) |