Windows NT on hardware it has no business on

A partial retraction. OK, Southwestern Bell isn’t responsible for all my missing mail. I had a second POP3 client running that I forgot about, which was grabbing some of my mail. But my computer couldn’t find a DHCP server all day, so even though one problem wasn’t their fault, another one was. So I’m still gonna write Casey Kassum with a request and dedication: Todd Rundgren’s “I Hate My Frickin’ ISP,” dedicated to my beloved Southwestern Bell.

Running, uh, no, executing Windows NT 4.0 on a Pentium-75 with 16 MB RAM. Disclaimer: Before you start thinking things that include my name and words like “crack” or “LSD,” let me state emphatically that this was not my idea. I was only following orders. (I’m not on drugs. I’m not nuts–I’m certifiably sane. I’m not even depressed.) All that clear? Good.

That said, the stated minimum hardware requirements for NT 4 are a 486 CPU with 12 MB RAM. And I did once build a print server out of an old IBM PS/2 that had a 486SLC2/50 CPU and 16 megs of RAM. Hey, I was young and I needed the money, OK? Besides, it was a very experimental time and I didn’t think anybody would get hurt…

OK, I’m done turning druggy double entendres.

Needless to say, NT on this machine is anything but pretty. (And I’ll put a marginal machine into service as a server where no one ever interacts with it directly long before I stick one on an end-user’s desk.) The video card in my flagship PC has more memory and processing power. But we’re out of PCs, and this poor girl needs a computer on her desk (though she’s never done anything to deserve this fate), so here’s what I did to try to make life on this machine more tolerable. These tricks work much better on fast machines.

  • Pull out all network protocols except TCP/IP. I also double-checked all TCP/IP settings and made sure the closest DNS server was first on the list.
  • Use a static IP address. The DHCP service uses memory and CPU cycles, and on machines like this, every byte and cycle counts.
  • Remove Office Startup, Find Fast, and LoadWC from Startup. The first two are in the All Users start menu. The last is in the registry. All eat memory and provide no useful functionality.
  • Move the swap file to a second physical hard disk. This machine happened to have a second drive, so I put the swap file there for better performance.
  • Turn off unnecessary services. The Scheduler service and Computer Browser service normally aren’t needed. If the network never sent out notifications (ours does), I’d also turn off the Messenger service.
  • Remove unnecessary fonts. I won’t do this without her present, since I might inadvertently nuke her favorite font. But if she doesn’t use it, it’s gone.
  • Keep free space above 100 megs. Windows slows to a crawl when forced to live on a drive that’s as crowded as a mosh pit.
  • Defragment! Making matters worse, this drive didn’t seem to have a single file on it that wasn’t fragmented. I ran Diskeeper and there was more red on the screen than at a Cardinals game when Mark McGwire’s chasing home run records.
  • When you have two drives, put the OS on the faster of the two. Unfortunately, the OS is on an ancient Seagate 420-meg drive, with a 2.1-gig drive in as the secondary drive. The roles really should be reversed. When in doubt, the bigger drive is usually faster. The newer drive almost always is. I may just Ghost the OS over to the 2.1-gig drive, then switch them.
  • Switch to Program Manager. She’s probably not comfortable with the old Windows 3.1 interface (I’ve only ever met one person who liked it) so I probably won’t do this, but that’ll save you a couple megs.

Yes, even with these adjustments, it’s still awful. So I’m gonna see if I can dig up some memory from somewhere. That’ll help more than anything. But as tempting as overclocking may be, I won’t do it.

Wednesday mailbag

Short stuff today. There’s mail on nostalgia and my infamous books today, so let’s get right to them.
———-

From: “Jeff Hurchalla”

Subject: optimizing windows – ramdisk

Hello Dave,

First I wanted to thank you for the great book on optimizing windows. I’ve read it all now and picked up quite a bit. I think the book nicely fills a niche for windows tweakers- I know I was looking for it for a while. One thing I noticed, if you do a second ed. you might include information on hard disk setups -how IDE and SCSI work, RAID, and what cable and role(master/slave) to use for that new second IDE hard drive.

One tip to add could be the format /z command when using fat32. This undocumented /z switch sets the cluster size in number of sectors.. so “format /z:64” would create 64 sectors/cluster or 32k clusters. I got this from prorec.com a while back. You might want to check out their site just for the music recording discussions, never mind that they do a great job describing how to optimize for digital audio(I think the advice is generally applicable for any computer).

I really want to ask you about a problem I’m having when I run windows95(osr2) from ramdisk. I have it working, mostly as described, but user.dat and system.dat are pesky. I had to put these both into the ramdisk hard drive directory(the one with himem.sys. setver.exe, etc) to get it to boot. Io.sys looks at the registry early in the boot process way before it gets to autoexec.bat(where the ramdisk is created). So it’s not trivial to find a way to create the ramdisk and get the registry in there, where I think it belongs, in time to satisfy io.sys. The solution to put the registry in the ramdisk directory isn’t very good because windows constantly updates the registry(and usually for no apparent reason). Do you have any ideas for how to get the registry in the ram early, or how to get windows to switch to using the registry in the ramdisk later on? It would also be ok, though maybe not as satisfying, to somehow set windows to stop automatically updating the registry just because it’s apparently noticed 15 seconds of time has passed. I also thought to use lilo (possibly modified) to do some work with a ramdisk and then load a bootsect.dos, but I don’t know enough to tell if it could work. I used to have linux set up, but everything’s standard right now.

I read in your views that the outlook for your linux/win2k book is not very good. That’s a shame. I’d really like to read it in the future. I hope something works out.

Take care, Jeff

———-

Well, first off, thanks for the compliments. It’s things like that that make the time and effort that go into writing a book worthwhile.

I had forgotten the FAT32 cluster trick; that is a good one but you might as well just use FAT16 if you’re going to make big clusters–unless the 2GB limit bites you. So, yes, I can see it being useful.

I believe I did talk about hard drive setups, but I may have neglected it. Rather than look it up, I’ll be lazy and just state it: Hard drives should always be masters. If you must put two drives on a channel, make the newer, more modern drive the master. RAID would certainly be a good topic, and one that’s sorely missed from the book. I think I did a decent job of predicting some of the up-and-coming stuff, but two things that I missed were IDE RAID and USB networking. They didn’t exist in the summer of 1999 when I wrote the bulk of the book, and I didn’t anticipate them.

The chances of a second edition appear to be pretty slim, unfortunately. I could write another book for another publisher, provided I’m very careful not to violate the copyright I sold to O’Reilly, but I would almost certainly burn some bridges by doing that and that’s not exactly something I want to do, whether I agree with how O’Reilly marketed the book or not. I’m almost hesitant to say anything about it or even mention that possibility.

As for the Linux/W2K book, it’s tough to say what to do with it. There are a lot of things I’d love to say about it, but again, I’d burn some bridges that I probably shouldn’t. A year ago when it looked like both W2K and Linux 2.4 would be released within six months, it looked like a blockbuster book. With 2.4 delayed and W2K failing to take over the world, it’s becoming a tough sell, and frankly I’m getting really sick of the topic. I also know I tend to take some unpopular stances on the issues involved, which probably doesn’t help. If I thought the book would cover the expenses I’d have to outlay to write it, I’d be much more inclined to do it. So far for me, writing for O’Reilly has proven to be a very expensive hobby. (And if anyone from O’Reilly reads my site and doesn’t like hearing me say that, tough.)

I’ll probably re-evaluate after the 2.4 kernel starts firming up some more, and once my wrists start looking like they’ll hold up or I get the hang of NaturallySpeaking. As for my next book, if there is another one, I don’t want it to involve Linux, and I want to write for a small indie publisher who only releases a half-dozen or so books a year.

As for the registry problem in your ramdisk, did you make the modifications to msdos.sys? Specifically, the line WinBootDir parameter must point to the ramdisk, while WinBootDir points to your directory containing the boot files.

The only other thing that I can think of that might cause those symptoms would be if when you installed Windows to the surrogate partition, Setup may have found your old registry and grabbed some data from it, forcing you to keep the registry on your HD rather than in ram.

I messed around with the ramdisk trick for an entire weekend (literally–I didn’t do anything else for two and a half days) getting it to work right, and for all I remember, I may have spent a few evenings preceeding that weekend working on it. I do know this: Microsoft never intended for anyone to do that, which of course just made me all the more determined to do it.

Let me know if that doesn’t fix the problem, because I’m really curious now what may have caused it. I’ll think on it some more.

———-

From: “Gary M. Berg”

Subject: Pascal on the Mac

You can always pick up Turbo Pascal 5.5 from Borland for free: http://community.borland.com/article/0,1410,20803,00.html

———-

Thanks. For that matter, Borland made older versions of Turbo C and Pascal available for DOS too, which isn’t bad for quick-and-dirty stuff. I found the older versions of Turbo Pascal for DOS produced smaller, tighter executables than the later versions (I mostly used version 7, back in 1992-93). And I believe at least one of their Windows C compilers is available for free now too.
———-

From: “Brent Dickerson”

Subject: voice recognition stuff

In case your interested in reading another’s short eval. The link may not work after today. brentfd

http://www.gazette.com/weekly/ibiz/biz9.html

———-

Thanks. That’s the first positive piece I’ve read on VoiceXPress, but their findings on ViaVoice are certainly consistent with my experience and with what I’ve read elsewhere–though ViaVoice improves considerably with a good mic. I still prefer NaturallySpeaking though, and I get better results than he did, but again, with a highly recommended mic and sound card combo.
———-

From: Robert Bruce Thompson

Subject: RE:

Hmm. When I was in high school, the first integrated circuits were still in R&D labs. That was 1971 or thereabouts.
———-

By the time I was in high school (1989-1993), “build your own computer” meant driving up to Gateway Electronics, buying a 386sx motherboard, I/O card and video card, some memory and a case, then assembling it all yourself. This was slightly more exotic than today when you can go down the street to get your parts.

I was an anomaly in that I owned an Amiga, whose system boards didn’t change much and were very well documented, so there were literally dozens of hacks available on BBSs to add features to them–most involved at least a little soldering and some involved discrete components. So that’s where most of my experience with discrete components comes from.

Most twentysomethings like me never had to build our own circuit boards and can’t imagine doing so. I was surprised to see modifications requiring soldering to start popping up on the hardware sites, because I know an awful lot of overclockers are my age and have never soldered delicate electronics before.

I dated a girl a few years ago who vaguely remembered her dad building a computer from a kit in the late 1970s. He’d tell her what component he needed, and she’d find it from the pile and give it to him. With me being a computer professional, she was pretty proud of that. She knew not many people in our generation had even that experience.

A nice Internet utility

Another Internet utility. I found a link to Naviscope (www.naviscope.com) this week. Naviscope is a swiss army knife Internet tool, providing ad blocking, DNS caching, prefetch, logging and a few other features. As such, it can replace Proxomitron, FastNet, and Netsonic–three utilities I mention in Optimizing Windows.
I find I like it, but I really miss Proxomitron’s ability to freeze animated GIFs. I absolutely, positively detest anything that moves on Web pages, so I love that feature and find I hate living without it. You can run Naviscope through another proxy server, so I may just try running the two in conjunction with each other. Maybe one will catch ads the other won’t.

I do like the prefetch, which is much more polite than NetSonic (though you have to configure it, but it prefetches only a few links, rather than prefetching everything that links like NetSonic), and the DNS cache is great. Of course I can do that with a Linux box with BIND set up (a great use for a 386 or low-end 486, by the way), but this is easier for most people.

Fixing Win9x with bootlog.txt

Using bootlog.txt. I resurrected a dead Win95 box yesterday; it wouldn’t boot. Bootlog.txt to the rescue. (You can also use bootlog.prv, the log of the previous boot). Search the file for the string “fail” and note the device driver that isn’t working. Hot tip: frequently it’s a network driver. Boot into safe mode, remove the offending driver(s) from Device Manager and potentially problematic software (Anti-Virus software and RealAudio both come to mind; you can always reinstall those later after you’ve got the system back up and running), then reboot. If you boot successfully, add the drivers back in, then reinstall the software you uninstalled, and you’re back in business. Sure beats a reformat and reinstall.
Spam. And I understand some people want me to fly to a foreign country and open a bank account, deposit a large sum of their own money into the account, and at some later date they’ll come take back 2/3 of it. The remaining 1/3 is mine to keep, presumably for helping them hide their assets. Yeah. And Bill Gates wants to send me to Disney World.

I will give them credit though. This hoax was cleverly enough written that I read it in its entirety. A little entertainment to start my day.

Windows optimization trick

Wednesday, 10/4/00
Turn off that bloody throbber! Here’s a tip that would have made it into Optimizing Windows, had I known about it at the time. You know that annoying Windows-logo throbber that shows up in Explorer windows that blinks during disk access, bugging you and stealing precious CPU cycles? You can turn it off or on with a Registry hack. It’s too messy to describe here, but you can download a pair of regfiles from http://www.pla-netx.com/linebackn/evil/ThrobOff.zip if you want it.

The throbber is useful in IE to let you know that Web page is indeed loading, but when you’re hunting through your own hard drive, what’s the point?

Changing CPU priorities in Windows 95/98/Me

Take charge of your CPU usage under Win9x. I talked about CPU Controller from BinaryWork in Optimizing Windows, which allows you to set a task’s priority (a la WinNT’s Task Manager). There’s a freeware app at http://www.blehq.org/pv2k.htm that has most of its functionality. Haven’t tested it yet, but I definitely will.
———-

From: “Chuck Buker”

Subject: Dual Duron/Athlon

I love my dual celeron Abit BP-6 machine, but I have been salivating over the prospect of a dual Duron machine for some time now. And with 700 mhz Durons selling below $90, I can hardly stand the wait.

Do you have any idea if or when someone is going to come out with a dual Scoket A (Duron or Athlon) motherboard and whether the Duron’s or Athlon’s support SMP?

———-

According to everything I’ve read, both the Athlon and Duron are SMP-capable. The forthcoming AMD-760 chipset has SMP support (the AMD-750 and VIA KT133 don’t). I don’t remember where I saw this anymore, but I seem to remember reading recently that AMD expects to release that chipset near the end of the year. If I had to guess, I’d say early part of next year you’ll start seeing dual socket A boards.

The big thing standing in the way right now is the lack of an SMP-capable chipset.

Binary file editing and hardware compatibility

Binary file editing. I’ve recovered many a student’s term paper from munged disks over the years using Norton Disk Edit, from the Norton Utilities (making myself a hero many times). Usually I can only recover the plain text, but that’s a lot better than nothing. Rebuilding an Excel spreadsheet or a QuarkXPress document is much harder–you have to know the file formats, which I don’t.
But at any rate, I’ve on a number of occasions had to run NDE to recover meeting minutes or other documents at work. The sheer number of times I have to do this made me adamantly opposed to widespread use of NTFS at work. Sure, the extra security and other features is nice, but try telling that to an irate user who just lost the day’s work for some reason. The “technical superiority” argument doesn’t hold any water there.

Enter WinHex (www.winhex.com). Now it doesn’t matter so much that the powers that be at work didn’t listen to my arguments. 🙂 (NDE from vanilla DOS would still be safer, since the disk will be in suspended state, but I guess you could yank the drive and put it in another PC for editing.)

For those who’ve never done this before, you can recover data using a brute force method of searching for known text strings that appeared in the file. For example, I once worked on recovering a thesis that contained the line “I walk through a valley of hands.” Chances are, if I search for that, I’m gonna find the rest of the document in close proximity. A Windows-based editor makes this kind of data recovery very nice–search for the string, keeping Notepad open, then copy and paste the strings as you find them.

Knowledge of the underlying filesystem (FAT or NTFS) is helpful but not essential, as is knowledge of the file format involved. If worse comes to worse, you can recover the strings out of the file and have the app open to re-enter it (being aware that you run the risk of overwriting the data, of course).

I found some useful links on the WinHex site detailing certain file formats.

This is a program I suspect I’ll be buying soon, since my need for it is probably more a matter of when rather than if.

———-

From: “James Cooley”

Subject: Tip for tat?

Hi Dave,

I waded through all your views (That’s where all those hits came from!) and I like your style and learned a great deal. Here’s another tip I didn’t see mentioned: in autoexec.bat, add the following: set temp=C:\temp set tmp=C:\temp set tmpdir=C:\temp

You could use the ramdisk drive you mention, of course. I don’t know if this speeds things up, but it sure helps minimize the clutter from most installs when you clean the temp directory periodically. I use C:\temp2 for those disposable downloads because some programs hate extracting into their own directory. Norton Anti-Virus comes to mind: if you run the updates from C:\temp it hangs.

I ordered _UNIX in a Nutshell_ from a recommendation on your site, but got a 500 page tome instead of the 92 pages you mentioned. If you recall the O’Rielly book I’m talking about, could you give me the exact name so I needn’t hunt it down again?

Hope your hands are healing.

Regards,

Jim

———-

Thanks. I’m glad you enjoyed it (but isn’t that an awful lot of reading?)

I’ve seen the tmpdir trick; fortunately not a whole lot of programs use it anymore but that is useful. Thanks.

And yes, as you observe it’s a good idea to use a separate dir for program installs. I try to avoid hanging it directly off the root for speed considerations (a clean root dir is a fast root dir)–I usually stick it on the Windows desktop out of laziness. That’s not the best place for it either, but it’s convenient to get to.

The 92-page book is Learning the Unix Operating System, by Jerry Peek and others. It’s about $12. The 500-page Unix in a Nutshell is useful, but more as a reference. I’ve read it almost cover-to-cover, but I really don’t like to read the big Nutshell books that way. Information overload, you know?

———-

From: “al wynn”

Subject: MAX screen resolution for Win95/98/2000

Do you know the MAXIMUM screen resolutions for Win95/98/2000 (in pixels) ? Which operating systems can support a dual-monitors setting ?

NEC 15′ MultiSync CRT monitors max out at (1280 x 1024 @ 66Hz); for 17′ CRT’s, it’s usually (1600 x 1200 @76Hz). Do you know any 15′ and 17′ models that can handle denser resolutions ? (like (1792 x 1344 @68Hz) or (1920 x 1440 @73Hz) ?

Also, which Manufacturer/Model do you prefer for flat-panel LCD’s ? Which 15′ or 17′ LCD models boast the highest resolution ?

———-

I believe Windows’ limit is determined by the video drivers. So, if a video card ships someday that supports some obnoxious resolution like 3072×2560, Windows should support it. That’s been the case in the past, usually (and not just with the Windows platform–it holds true for other systems as well).

Windows 98 and 2000 support dual monitors.

I’ve never seen a 15″ monitor that does more than 1280×1024, and never seen a 17″ that does more than 1600×1200. I find anything higher than 1024×768 on a 15″ monitor and higher than 1152×864 on a 17″ strains my eyes after a full day of staring at it.

As for flat-panels, I don’t own one so I can’t speak authoritatively. I’d probably buy an NEC or a Mitsubishi if I were going to get one. The price difference between an off-brand flat-panel and a big name is small enough (relative to price) and the price high enough that I’d want to go with someone I know knows how to make quality stuff–I’m not gonna pay $800-900 for something only to have it break after two years. I’m totally sold on NEC, since I bought a used NEC Multisync II monitor in 1990 that was built in 1988. It finally died this year.

A 15″ flat-panel typically does 1024×768, while a 17″ does 1280×1024.

More impressions of NaturallySpeaking

Wednesday, 9/27/00

More NaturallySpeaking experience. I managed to get the Sound Blaster Live! card installed, and it just might make NaturallySpeaking usable.I gave this combination the same test I ran ViaVoice through, namely, reading a passage from Optimizing Windows. What it heard was pretty darn close to what I said:

I was looking for sites about Windows 98. I got a site about cars. If there was ever any doubt in my mind that there’s a website about everything, this site you raised it. Before I knew it, I was reading about tweaking out Dodge spirits and racing them. One fan of the site Rodin, criticizing some aspects of the spirits design. Another Buffett said that without cutting down the Springs, modifying the gizmo that holds the air filter to get more air flowing into the engine, and other less than trivial modifications, the quote the car was awoke totally inadequate quote for staff and go city driving.

The original:

I was looking for sites about Windows 98. I got a site about cars. If there was ever any doubt in my mind that there’s a website about everything, this site erased it. Before I knew it, I was reading about tweaking out Dodge Spirits and racing them. One fan of the site wrote in, criticizing some aspects of the Spirit’s design. Another buff said that without cutting down the springs, modifying the gizmo that holds the air filter to get more air flowing into the engine, and other less-than-trivial modifications, the the car was “totally inadequate” for stop-and-go-city driving.

These are out-of-the-box results. I imagine once I feed NaturallySpeaking a few hundred thousand words I’ve written for analysis, it should get used to me, and work pretty well. The question becomes, can I adjust?

First impressions of NaturallySpeaking 5

I am dictating to this with NaturallySpeaking. I still have that cheap ESS sound card in my system, but thanks to the aftermarket noise canceling microphone I am getting decent results. I will install the new Sound Blaster when I get time. I only had to make one correction on this post, which is a tremendous improvement over my previous experiences with voice recognition (and I have some, dating back to 1996, since I was one of the 12 people who actually bought OS/2 Warp 4, which included a predecessor to ViaVoice).
The speed is pretty good on my Celeron-400. NaturallySpeaking doesn’t know that word.

NaturallySpeaking arrives, plus W2K hardware compatibility issues

Naturally Speaking is here. Along with my SB Live! card. But alas, I’m not. I’m up to my neck in a brochure for my church. I’d grade my writing an A or A-, my editing an A, my design a B+, and my photography a C. Not perfect, but it gets the job done, and there’s no time for perfection. And I never claimed to be anything more than a competent designer and I never claimed anything at all about photography, besides owning a good camera.
There’s no time for much of anything, I’m afraid. I even blew off the last person in the world I want to blow off at this point in time this weekend. Such is life. Three pages down and three to go, so I have no idea how much I’ll have to say in the next few days. I’ll have a lot to say when it’s finally over, I’m sure.

———-

From: “Gary M. Berg” Subject: Maxtor drives and Win2K SP1

Dave,

The reference I remember seeing (and could locate quickly) was in Paul Thurrott’s Winfo Daily Update for 8/11: (deleted because it’s copyrighted material, but it basically says some IDE and SCSI Maxtor drives report incorrect sizes or even data loss). I’m not sure what to make of this, and I suppose it might be reasonable to check with Paul to see if he knows anything more yea or nay on this

———-

Thurrot’s a pretty reputable source. I’ll keep my eyes peeled. I’m running W2K on a Maxtor but it’s not SP1 yet.

Thanks.