The Silicon Underground
  Welcome to Dave Farquhar's Silicon Underground Monday, November 23 2009 @ 12:48 PM CST  
Theme Changer
Change the look of the site by selecting a theme below:

What's New
STORIES
No new stories

COMMENTS last 48 hrs
  • Why don't wins co...

  • LINKS last 2 wks
    No recent new links

    Google Ads

    User Functions
    Username:

    Password:

    Don't have an account yet? Sign up as a New User

    Firefox


    Optimizing DOS and the BIOS, plus new iMacs   
    Friday, February 23 2001 @ 12:00 AM CST
    By David L. Farquhar

    Optimizing DOS (Or: A New Use for Ancient Equipment). I was thinking yesterday, I wished I had a computer that could just hold disk images and do data recovery. Then I remembered I had a DECpc 320P laptop laying under my desk. I cranked it up. MS-DOS 5, 20 MHz 386sx, 80-meg drive, 6 MB RAM, grayscale VGA display. So I installed Norton Utilities 8, the main thing I wanted to run (I had a retail box sitting on my shelf), then of course I set out to optimize it. Optimizing DOS is really easy: it's just a question of disk optimization and memory management. I cleaned up the root directory, pulled the extraneous files in the C:DOS directory (the .cpi files, all the .sys files, all the .bas files). Then I ran Speed Disk, setting it to sort directory entries by size in descending order, put directories first, and do full optimization. It took about 30 minutes. If I'd been really bored I could have mapped out what executables are most important to me and put those first. Since DOS doesn't track file access dates it can't automatically put your frequently accessed files first like Speed Disk for Windows does.

    Of course when I installed Norton Utilities 8 I installed NDOS, its command.com replacement. Built-in command history, improved resident utilities, and thanks to its memory management, it actually uses far less conventional memory (but more memory total) than command.com. That's OK; with 6 MB of RAM I can afford to give up a fair bit of extended memory for better functionality.

    Once I was happy with all that, I also attacked the startup files. I started off with a basic config.sys:

    device=c:doshimem.sys
    device=c:dosemm386.exe noems
    dos=high,umb
    files=30

    Then I went into autoexec.bat, consolidated the PATH statements into one (it read: PATH C:WINDOWS;C:DOS;C:DOS
    u;C:MOUSE) and added the prefix LH to all lines that ran TSRs or device drivers (such as MOUSE.EXE). Upon further reflection, I should have moved the Mouse directory into C:DOS to save a root directory entry.

    I added the NCACHE2 disk cache to autoexec.bat-- NCACHE2 /ext=4096 /optimize=s /usehigh=on /a a c /usehma=on /multi=on. That turns on multitasking, enables caching of both C: and A:, tells it to use 4 MB of memory, use high memory, and use extended memory. My goal was to use as much memory as prudently as possible, since I'd be using this just for DOS (and mosly for running Norton Utilities).

    I also set up a 512K RAMdisk using RAMDRIVE.SYS (devicehigh=c:dos
    amdrive.sys 512 128 4). Then I added these lines to autoexec.bat:

    md d: emp
    set tmp=d: emp
    set temp=d: emp

    Now when an app wants to write temp files, it does it to a RAMdisk. The other parameters tell it to use 128K sectors to save space, and put 4 entries in the root directory, also to save space. With DOS 5, that was the minimum. I don't need any more than one, since I'm making a subdirectory. I could just point the temp directory to the root of D:, but I'd rather have dynamic allocation of the number of directory entries. This setting is more versatile--if I need two big files in the temp directory, I'm not wasting space on directory entries. If on the other hand I need tons of tiny files, I'm guaranteed not to run out of entries.

    It's not a barn burner by any stretch, but it's reasonably quick considering its specs. Now when someone trashes a floppy disk, I can just throw it in the 320P, run Disk Doctor and Disktool on it (and in a pinch, Norton Disk Editor), copy the data to the HD, then throw the recovered data onto a new, freshly formatted floppy. I'll only use it a couple of times a year, but when I need such a beast, I need it badly. And if I have the need to run some other old obscure DOS program that won't run on newer machines, the 320P can come to my rescue again too. It runs the software well, it boots in seconds--what more can I ask?

    I could have done a couple more things, such as a  screen accelerator and a keyboard accelerator . Maybe today if I have time.

    I was tempted to put Small Linux ( http://www.superant.com/smalllinux/ ) on it, but frankly, DOS 5 and Norton Utilities 8 is more useful to me. I'm not sure what I'd do with a non-networkable Linux box with only 6 MB RAM and a monochrome display.

    A useful (but unfortunately dated) link. I stumbled across this yesterday: The BIOS Survival Guide , a nicely-done guide to BIOS settings. Unfortunately it stopped being maintained in 1997, so it's most useful for tweaking very old PCs. Still, it's better than nothing, and most modern PCs still have most of these settings. And reading this does give you a prayer of understanding the settings in a modern PC.

    If you want to optimize your BIOS, this is about as good a starting point as you're going to find online for free. For more recent systems, you'll be better served by The BIOS Companion, written by Phil Croucher (one of the co-authors of this piece.) You can get a sample from that book at http://www.electrocution.com/biosc.htm .


    New iMac flavors. Steve Jobs unveiled the new iMacs this week. The new flavors: Blue Dalmation and Flower Power. Yes, they're as hideous as they sound. Maybe worse. Check the usual news outlets. They'd go great in a computer room with a leopard-skin chair, shag carpet, and lava lamps. And don't forget the 8-track cranking out Jefferson Airplane and Grateful Dead tunes.

    I think the outside-the-box look of Mir, the PC Gatermann and I built as a Linux gateway (see yesterday), is far more tasteful--and that's not exactly the best idea we ever had.



      [ Views: 2496 ]  


    Optimizing DOS and the BIOS, plus new iMacs | 2 comments | Create New Account
    The following comments are owned by whomever posted them. This site is not responsible for what they say.
    Robert
    Authored by: ImportedComment on Saturday, December 13 2003 @ 05:11 AM CST
    Dear Mr. F.,

    I have enjoyed learning from your book, Optimizing
    Windows, and it's helped my 98se system be a LOT better.
    However, the above optimized PATH statement:

    Path=C:WINDOWS;C:DOS;C:DOSu C:MOUSE

    Er..that little 'u'..is a typo, right? Not sure.
    I continue to read as much as I can of what you
    have with great interest.
    Very Truly Yours,
    Robert McMorrow

    [ Reply to This ]

    Dave Farquhar
    Authored by: ImportedComment on Wednesday, December 17 2003 @ 11:53 PM CST
    That line got mangled when this particular post got imported into this database. It should read: path =c:windows;c:dos;c:nu;c:mouse

    The only reason c:nu is in there is because I had Norton Utilities 8 installed.

    Thanks.

    [ Reply to This ]

    What's Related
  • screen accelerator
  • keyboard accelerator
  • http://www.superant.com...
  • The BIOS Survival Guide
  • http://www.electrocutio...
  • yesterday
  • More by DaveF
  • More from DOS

  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • Calendar
    November 2009
    SuMoTuWeThFrSa
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    Click on any day to see postings and events for that date.

    Referrals

    Top 10 by Comments
    Story TitleComments
    Cheap laptops from Sotec 253
    An untrustworthy vendor 164
    Upgrading an eMachine 125
    eMachine upgrade advice 99
    Why I dislike Microsoft 51
    Upgrade diary: Gateway G6-400 35
    And we're live 30
    The day after the Columbia 22
    How to pray 22
    CD-ROM troubleshooting under Windows 9x 20

    Top 10 Read
    Story TitleViews
    eMachine upgrade advice 74334
    Upgrading an eMachine 63084
    How to view a blg file in Windows 2000 50612
    Cheap laptops from Sotec 32796
    Upgrade diary: Compaq Presario 7360 19998
    Upgrade diary: Gateway G6-400 19874
    CD-ROM troubleshooting under Windows 9x 15549
    Finding an open-source alternative to Ghost 14292
    Big trouble 13817
    Salary cap? Baseball needs something 11800

    Topics
    Home
    Apache (2)
    Baseball (63)
    Book reviews (2)
    Business (1)
    Christianity (57)
    Cooking (1)
    Copyright (16)
    Curmudgeonry (1)
    Design (7)
    DOS (6)
    Games (4)
    Genealogy (11)
    General (507)
    Hardware (168)
    Health (13)
    Human Interest (9)
    Humor/Satire (19)
    Investing (4)
    Journalism (1)
    Linux (93)
    Macintosh (22)
    Model Building (3)
    Music (33)
    net.culture (40)
    Personal (88)
    Photography (6)
    Politics (3)
    Retro Computing (26)
    Saving money (72)
    Servers and Networking (18)
    Society (49)
    Software (55)
    Spam (13)
    St. Louis (23)
    This weblog (14)
    Toy trains (74)
    Troubleshooting (7)
    Useless Trivia (1)
    Vendors (6)
    Video (21)
    Viruses (12)
    Windows (120)
    Writing (16)

    Older Stories
    Wednesday 30-Sep
  • 401(K) Paperwork (0)

  • Sunday 27-Sep
  • First impressions: HP Mini 110 (1)

  • Saturday 26-Sep
  • Getting more screen real estate in Firefox (0)

  • Wednesday 23-Sep
  • Barfy. (4)

  • Monday 21-Sep
  • Why I quit my job (2)

  • Saturday 12-Sep
  • Slimming down Windows XP for SSDs and nettops (0)

  • Thursday 10-Sep
  • And... bailing out. (3)

  • Friday 04-Sep
  • End of the innocence (0)

  • Monday 31-Aug
  • Installing Windows off USB (1)

  • Friday 21-Aug
  • Diving into real estate (0)

  • Who's Online
    Guest Users: 7

    Syndicate!
    Get your RSS/RDF fix here.

    List of all stories
    Click here for a list of all the entries on this site


    Created this page in 1.15 seconds


     Copyright © 2009 Dave Farquhar's Silicon Underground
     All trademarks and copyrights on this page are owned by their respective owners.

    Powered by GL 1.3.x