An Optimizing Windows followup?

Optimizing Windows NT for Games, Graphics and Multimedia or Whatever… I occasionally get a question whether there’ll ever be such a beast. O’Reilly and I discussed it in the past, with little interest. (In fact when we were negotiating Optimizing Windows, I wanted it to be an NT book, and they asked if I knew Win9x well enough to write about that instead.)

There’s the possibility that another publisher who’s strong in Windows NT/Windows 2000, such as Sybex, might be interested. I haven’t talked to anyone there about it yet. But believe me, I’ve thought about the possibility of such a book.

I tried to write Optimizing Windows in such a way that someone who knew Windows 9x and another OS would then be able to apply the principles to both OSes, even though the specifics would only apply to 9x.

In the meantime, the best suggestion I can come up with is to take yesterday’s post , print it, then paste it to an otherwise underutilized page (such as the last page of the preface, which is totally blank). While it doesn’t go into great detail, that message could well form the basis of a chapter in an NT/2000 follow-on. I’d say at least half of chapter 2 in Optimizing Windows (particularly the user interface stuff) applies to NT and 2000 as well.

Laptop troubleshooting. I had a laptop the other day that seemed to launch programs and move the mouse pointer around at will. I’d never seen anything like it before. We were perplexed about it for a couple of hours (it was a deployed user in California, so it wasn’t like I could just tool over to his desk and start trying stuff). On a hunch, he unplugged everything and powered up the bare laptop. It worked fine. He started adding components one at a time, and when he got to the mouse, the problem reappeared.

Constant travel and frequent plugging and unplugging certainly could be hard on the mouse cable, so I can see where this might be a common problem for road warriors (I’d say 90 percent of my support experience is desktop PCs). So, if you’re getting unexplainable behavior from a PC, especially a laptop, try a different mouse — and a different external keyboard too, while you’re at it — and see if that makes the problem go away.

Scanner troubleshooting secrets

~Mail Follows Today’s Post~

Scanner wisdom. One of the things I did last week was set up a Umax scanner on a new iMac DV. The scanner worked perfectly on a Windows 98 PC, but when I connected it to the Mac it developed all sorts of strange diseases–not warming up properly, only scanning 1/3 of the page before timing out, making really loud noises, crashing the system…

I couldn’t resolve it, so I contacted Umax technical support. The tech I spoke with reminded me of a number of scanner tips I’d heard before but had forgotten, and besides that, I rarely if ever see them in the scanner manuals.

  • Plug scanners directly into the wall, not into a power strip. I’ve never heard a good explanation of why scanners are more sensitive to this than any other peripheral, but I’ve seen it work.
  • Plug USB scanners into a powered hub, or better yet, directly into the computer. USB scanners shouldn’t need power from the USB port, since they have their own power source, but this seems to make a difference.
  • Download the newest drivers, especially if you have a young operating system like MacOS 9, Mac OS X, Windows ME, or Windows 2000. It can take a little while for the scanner drivers to completely stabilize. Don’t install off the CD that came with the scanner, because it might be out of date. Get the newest stuff from the manufacturer’s Web site.
  • Uninstall old drivers before installing the new ones. This was the problem that bit me. The new driver didn’t totally overwrite the old one, creating a conflict that made the scanner go goofy.
  • Buy your scanner from a company that has a track record of providing updated drivers. Yes, that probably means you shouldn’t buy the $15 scanner with the $25 mail-in rebate. Yes, that means don’t buy HP. Up until a couple of years ago, getting NT drivers out of HP was like pulling teeth; now HP is charging for Windows 2000 drivers. HP also likes to abandon and then pick back up Mac support on a whim. Terrible track record.

Umax’s track record is pretty darn good. I’ve downloaded NT drivers for some really ancient Umax scanners after replacing old Macs with NT boxes. I once ran into a weird incompatibility with a seven-year-old Umax scanner–it was a B&W G3 with a wide SCSI controller (why, I don’t know) running Mac OS 8.6. Now that I think about it, I think the incompatibility was with the controller card. The scanner was discontinued years ago (before Mac OS 8 came out), so expecting them to provide a fix was way out of line.
m I’ve ever had with a Umax that they didn’t resolve, so when I spec out a scanner at work, Umax is always on my short list.

And here’s something I just found interesting. Maybe I’m the only one. But in reading the mail on Jerry Pournelle’s site, I found this. John Klos, administrator of sixgirls.org, takes Jerry to task for saying a Celeron can’t be a server. He cites his 66 MHz 68060-based Amiga 4000, which apparently acts as a mail and Web server, as proof. Though the most powerful m68k-based machine ever made, its processing power pales next to any Celeron (spare the original cacheless Celeron 266 and 300).

I think the point he was trying to make was that Unix plays by different rules. Indeed, when your server OS isn’t joined at the hip to a GUI and a Web browser and whatever else Gates tosses in on a whim, you can do a lot more work with less. His Amiga would make a lousy terminal server, but for serving up static Web pages and e-mail, there’s absolutely nothing wrong with it. Hosting a bunch of Web sites on an Amiga 4000 just because I could sounds very much like something I’d try myself if I had the hardware available or was willing to pay for the hardware necessary.

But I see Jerry Pournelle’s point as well.

It’s probably not the soundest business practice to advertise that you’re running off a several-year-old sub-100 MHz server, because that makes people nervous. Microsoft’s done a pretty admirable job of pounding everything slower than 350 MHz into obsolescence and the public knows this. And Intel and AMD have done a good job of marketing their high-end CPUs, resulting in people tending to lay blame at the CPU’s feet if it’s anything but a recent Pentium III. And, well, if you’re running off a shiny new IBM Netfinity, it’s very easy to get it fixed, or if need be, to replace it with another identical one. I know where to get true-blue Amiga parts and I even know which ones are interchangeable with PCs, but you might well be surprised to hear you can still get parts and that some are interchangeable.

But I’m sure there are far, far more sub-100 MHz machines out there in mission-critical situations functioning just fine than anyone wants to admit. I know we had many at my previous employer, and we have several at my current job, and it doesn’t make me nervous. The biggest difference is that most of them have nameplates like Sun and DEC and Compaq and IBM on them, rather than Commodore. But then again, Commodore’s reputation aside, it’s been years since I’ve seen a computer as well built as my Amiga 2000. (The last was the IBM PS/2 Model 80, which cost five times as much.) If I could get Amiga network cards for a decent price, you’d better believe I’d be running that computer as a firewall/proxy and other duties as assigned. I could probably get five years’ uninterrupted service from old Amy. Then I’d just replace her memory and get another ten.

The thing that makes me most nervous about John Klos’ situation is the business model’s dependence on him. I have faith in his A4000. I have faith in his ability to fix it if things do go wrong (anyone running NetBSD on an Amiga knows his machine better than the onsite techs who fix NetFinity servers know theirs). But there’s such thing as too much importance. I don’t let Apple certified techs come onsite to fix our Macs anymore at work, because I got tired of them breaking other things while they did warranty work and having to fix three things after they left. I know their machines better than they do. That makes me irreplaceable. A little job security is good. Too much job sercurity is bad, very bad. I’ll be doing the same thing next year and the year after that. It’s good to be able to say, “Call somebody else.” But that’s his problem, not his company’s or his customers’.

~~~~~~~~~~

From: rock4uandme
To: dfarq@swbell.net
Sent: Wednesday, October 25, 2000 1:22 PM
Subject: i`m having trouble with my canon bjc-210printer…

i`m having trouble with my canon bjc210 printer it`s printing every thing all red..Can you help???
 
 
thank you!!    john c
 
~~~~~~~~~

Printers aren’t my specialty and I don’t think I’ve ever seen a Canon BJC210, but if your printer has replacable printheads (some printers make the printhead part of the ink cartridge while others make them a separate component), try replacing them. That was the problem with the only Canon printer I’ve ever fixed.
 
You might try another color ink cartridge too; sometimes those go bad even if they still have ink in them.
 
If that fails, Canon does have a tech support page for that printer. I gave it a quick look and it’s a bit sketchy, but maybe it’ll help. If nothing else, there’s an e-mail address for questions. The page is at http://209.85.7.18/techsupport.php3?p=bjc210 (to save you from navigating the entire www.ccsi.canon.com page).
 

I hope that helps.

Dave
 
~~~~~~~~~~
 

From: Bruce Edwards
Subject: Crazy Win98 Networking Computer Problem

Dear Dave:

I am having a crazy computer problem which I am hoping you or your readers
may be able to give me a clue to.  I do have this posted on my daily
journal, but since I get very little traffic, I thought your readership or
yourself may be able to help.  Here’s the problem:

My wife’s computer suddenly and inexplicably became very slow when accessing
web sites and usually when accessing her e-mail.  We access the internet
normally through the LAN I installed at home.  This goes to a Wingate
machine which is connected to the aDSL line allowing shared access to the
internet.

My computer still sends and receives e-mail and accesses the web at full
speed.  Alice’s computer now appears to access the web text at about the
speed of a 9600 baud modem with graphics coming down even more slowly if at
all.  Also, her e-mail (Outlook Express) usually times out when going
through the LAN to the Wingate machine and then out over the internet. 
The LAN is working since she is making a connection out that way.

File transfer via the LAN between my PC and hers goes at full speed.
Something is causing her internet access to slow to a crawl while mine is
unaffected.  Also, it appears to be only part of her internet access.  I can
telnet out from her computer and connect to external servers very fast, as
fast as always.  I know telnet is just simple text, but the connection to
the server is very rapid too while connecting to a server via an http
browser is much much slower and then, once connected, the data flows so slow
it’s crazy.

Also, dial-up and connect to the internet via AOL and then use her mail
client and (external to AOL) browser works fine and is as speedy as you
would expect for a 56K modem.  What gives?

I tried reinstalling windows over the existing set-up (did not do anything)
and finally started over from “bare metal” as some like to say.  Reformat
the C drive.  Reinstall Windows 98, reinstall all the drivers, apps, tweak
the configuration, get it all working correctly.  Guess what?  Same slow
speed via the aDSL LAN connection even though my computer zips out via the
same connection.  Any suggestions?

Sincerely,

Bruce W. Edwards
e-mail:  bruce@BruceEdwards.com
Check www.BruceEdwards.com/journal  for my daily journal.

Bruce  🙂
Bruce W. Edwards
Sr. I.S. Auditor  
~~~~~~~~~~

From: Dave Farquhar [mailto:dfarq@swbell.net]Sent: Monday, October 23, 2000 6:16 PM
To: Edwards, Bruce
Cc: Diana Farquhar
Subject: Re: Crazy Win98 Networking Computer Problem

Hi Bruce,
 
The best thing I can think of is your MTU setting–have you run any of those MTU optimization programs? Those can have precisely the effect you describe at times. Try setting yor MTU back to 1500 and see what that does. While I wholeheartedly recommend them for dialup connections, MTU tweaking and any sort of LAN definitely don’t mix–to the point that I almost regret even mentioning the things in Optimizing Windows.
 
Short of that, I’d suggest ripping out all of your networking protocols and adapters from the Network control panel and add back in TCP/IP and only the other things you absolutely need. This’ll keep Windows from getting confused and trying to use the wrong transport, and eliminate the corrupted TCP/IP possibility. These are remote, but possible. Though your reinstall should have eliminated that possibility…
 
If it’s neither of those things, I’d start to suspect hardware. Make sure you don’t have an interrupt conflict (rare these days, but I just saw one a couple weeks ago so I don’t rule them out). Also try swapping in a different cable or NIC in your wife’s machine. Cables of course go bad more frequently than NICs, though I’ve had horrible luck with cheap NICs. At this point I won’t buy any ethernet NIC other than a Bay Netgear, 3Com or Intel.
 
I hope that helps. Let me know how it goes for you.

Dave 
~~~~~~~~~~
From: Bruce Edwards

Hi Dave:
 
Thank you for posting on your web site. I thought you would like an update.
 
I verified the MTU setting was still at 1500 (it was).  I have not used one of the optimizing programs on this PC.
 
I removed all the adapters from the PC via the control panel.  Rebooted and only added back TCP/IP on the Ethernet card. 
 
I double checked the interrupts in the control panel, there do not appear to be any conflicts and all devices report proper function.
 
I still need to 100% verify the wiring/hubs.  I think they are O.K. since that PC, using the same adapter, is able to file share with other PCs on the network.  That also implies that the adapter is O.K.
 
I will plug my PC into the same hub and port as my wife’s using the same cable to verify that the network infrastructure is O.K.
 
Then, I’ll removed the adapter and try a different one.
 
Hopefully one of these things will work.
 
Cheers,
 
Bruce
~~~~~~~~~~

This is a longshot, but… I’m wondering if maybe your DNS settings are off, or if your browser might be set to use a proxy server that doesn’t exist. That’s the only other thing I can think of that can cause sporadic slow access, unless the problem is your Web browser itself. Whichever browser you’re using, have you by any chance tried installing and testing the other one to see if it has the same problems?
 
In my experience, IE 5.5 isn’t exactly the greatest of performers, or when it does perform well, it seems to be by monopolizing CPU time. I’ve gotten much better results with IE 5.0. As for Netscape, I do wish they’d get it right again someday…
 
Thanks for the update. Hopefully we can find an answer.

Dave 
~~~~~~~~~~ 

Sound card and hard drive troubleshooting

Sound card woes. Gatermann recently ran into some problems with sound cards forcing his Internet connection to drop. It had literally been six years since I’ve seen a problem like that before, but he kept running into it. Finally, it dawned on me: Try changing slots to force it to use a different interrupt. Therein was the silver bullet. The problem didn’t go away completely, but the culprit arose: the Sound Blaster 16 emulation. So I had him go into Device Manager and put the SB16 emulation on a different interrupt, and the problem went away.
It’s been forever since I’ve seen an honest-to-goodness interrupt conflict. This particular PC has every expansion slot filled with something or other, which is why he ran up against it. Keep that in mind: Just because we have PCI and plug and play these days, doesn’t mean you won’t ever see an interrupt conflict. On a well-expanded system, this ancient problem can occasionally rear its ugly head (while Microchannel required their cards to be capable of interrupt sharing; PCI only *recommends* it–so not every PCI device can share an interrupt, particularly if an ISA device has grabbed it. Alas, Microchannel fell victim to IBM’s greedy overly restrictive licensing terms and raw-dead-fish marketing, so as a result we have cheap PCs today but more headaches than we necessarily need. Speaking of raw-dead-fish marketing, I could mention that the Amiga’s Zorro bus had true plug and play and hundreds of interrupts from Day One in 1985, but nobody wants to hear that. Oops, I said it anyway.)

This problem used to happen all the time when people would put their modems on COM4 and a serial mouse on COM2 (or COM1 and 3). Since those ports by default shared interrupts with one another, you got goofy symptoms like your Internet connection dropping whenever you moved the mouse. People don’t configure their COM ports that way anymore, which is what’s made that problem so rare.

I think I finally got that G4 deployed. Wednesday it decided it didn’t want to shut down, and I had to reinstall the OS to fix it. Then on Thursday, it decided it didn’t want to recognize the mouse button anymore. I still don’t know what exactly I did to fix that–I booted off a spare MacOS 9 partition, ran a battery of disk repair tools and a defragmenter, and the problem went away. So while Mac users can snicker about interrupt problems, their machines aren’t exactly immune to weird problems either.

——-

From: “Gialluca, Tony”

question: RE Optimizing Windows and Temp files

Hi Mr. Farquhar,

In you book on page 112 you discuss placing temp files on a ramdisk. On this page you show an example where:

Set temp=ram disk letter:\temp Set tmp=ram disk letter:\temp

Shouldn’t you also include changing

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\Volum eCaches\Temporary files\folder] to “ram disk letter:\temp” also ??

Per the description

([HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\Volu meCaches\Temporary files\description]) says: “Programs sometimes store temporary information in a TEMP folder. Before a program closes, it usually deletes this information.\r\n\r\nYou can safely delete temporary files that have not been modified in over a week.” The only potential pitfall that I can think of is if windows or programs (say during installations) need this area to remain persistant through reboots, even though the files may be of
a temporary nature…

Your thoughts would be appreciated …

Respectfully,

Tony

———-

To be perfectly honest, I didn’t know that registry key existed (nor did the book’s technical reviewers, evidently). That registry key, too, should be changed, yes. Thanks!

You are correct that if a program does a hard reboot (rather than just exiting to real mode and reloading Windows), you’ll lose the contents of the ramdisk and thus the temp folder. Fortunately, most programs seem to use the temp directory the way they’re supposed to–for temporary, fleeting things. Now if they’d just learn to clean up after themselves…

Of course, this also applies to my advice on creating a temp partition, on page 62.

Thanks much; this is very good information.

———-

From: “Gary M. Berg”

Subject: Maxtor hard drives

Since you’ve been talking about WD and Maxtor hard drives…

I heard rumors just after Win2K SP1 came out that the service pack had problems with machines with Maxtor hard drives. I’ve not been able to find much of anything else on this. What have you heard?

———-

That’s a new one to me. Maybe another reader has heard something, but it sure seems odd. I can’t imagine Microsoft didn’t test SP1 on the major drive manufactuers’ drives (Fujitsu, IBM, Maxtor, Quantum, Samsung, Seagate, and Western Digital), and with Maxtor being one of the Big Two in retail….

Once I get my current big project off my back this weekend, I’m half-tempted to try it just to see. Unless someone already has…

Troubleshooting Windows keyboard shortcuts

Dave,
A friend of mine who uses Win98 has an irksome problem I don’t quite understand. Maybe you can shed some light on the matter.

Whenever he boots up, all the launch keyboard shortcuts defined in his desktop icon shortcuts are gone. He can manually select each one and redefine them (O for Outlook, W for Word and so on), but the next time he starts up (reboots), they’re all gone again.

These are stored in registry…?

/ Bo


Bo Leuf
Leuf fc3 Consultancy
http://www.leuf.com/

I’ve seen that problem in 95, 98, and NT4. It appears that if Windows Explorer is the currently active application, they’ll work, but if some other app has focus, keyboard shortcuts on desktop icons won’t work. The only workaround I’ve found for this is to store keyboard shortcuts in the start menu. Those seem to work all the time.

I don’t think they’re stored in the registry, but I’m not sure where they’re stored. Win3.x had keyboard shortcuts too. If I had to hazzard a guess, I’d say they’re probably stored in the shortcut files in 9x/NT and in the program group files in Win3.x.