Apr 29

Detox Windows

Computer Comments Off

Is your Windows 7 machine grinding to a halt already? Don’t despair as we’ll explain how to restore brand-new PC performance-and then go faster still.

There’s a lot to like about Windows 7, not least its many improvements over Vista: the new OS is faster, less demanding on resources, has better designed security and contains many new productivity-boosting features.

If you were an early Windows 7 adopter, though, you may already have noticed that one old problem still remains. The more you use your PC, adding and removing applications, the more junk builds up throughout your system, and the slower and more unstable it eventually becomes. You need to treat the problem, detoxing your PC on a regular basis to remove the leftovers – but how, exactly? Which areas of Windows 7 are most susceptible to this gradual degradation? Are there any tools or benchmarks you can use to reveal problem areas? How much can all this clutter slow you down, anyway, and what’s the best way to remove it all and restore your system to its optimum performance?

As we researched this article, one point was clear. Windows 7 is very different internally to Windows XP, and we couldn’t simply assume that old tricks, like optimising services, would work in the same way. What we needed to do was design a test, something that would reveal exactly why Windows 7 systems slowed down over time, and help uncover the best way to restore that initial new PC performance. And so that’s exactly what we did.

Designing the test

We started our trial by obtaining a powerful new 3XS Intel X58 Core i7 PC from Scan Computers. The machine featured a quad-core Intel Core i7 920 (which was overclocked by 20 per cent), 6MB of RAM and a speedy SATA 300 Samsung hard drive. It was an excellent performer that we knew wouldn’t choke unless it was faced with a set of major performance problems.

When the 3XS PC arrived, we installed the latest Windows 7 (Ultimate Edition, 32-bit) and driver updates and then set about establishing baseline measurements of our PC’s performance.

The best Windows boot time – which we’re defining as the time that elapses between the ‘Starting Windows’ message and the desktop appearing – was 22 seconds. Seeing the desktop means nothing if you can’t use it, so we also measured the time between the ‘Starting Windows’ message appearing and the point that we were able to launch IE and have it display our Google homepage 
(28 seconds).

We also used Task Manager to collect data on free memory and system activity (processes, threads, and so on). Finally we checked how long it took to launch apps, including Firefox and Outlook (both around four seconds).

With the performance of our clean system safely defined, we set about abusing it. We installed Windows Live tools, iTunes, Adobe Reader, browsers, antivirus apps, Microsoft Office, DVD-burning suites, video-editing tools, a large Outlook inbox, hundreds of fonts and more. We accepted every extra that was on offer, then reinstalled and updated the apps before moving plenty of files around to ensure hard drive fragmentation.

Installing apps like iTunes can slow down your system performance in several different ways.

And what did this do to the benchmarks? The plain Windows boot time increased by around a third, from 22 to 30 seconds. Our system was unusable after that for a long time, though, with IE not displaying Google for 140 seconds. Task Manager showed that system activity had more than doubled. Outlook now took five times as long to launch (21 seconds), and shutdown time increased by 50 per cent to 18 seconds.

So even a powerhouse like our 3XS system can be seriously affected by clutter. Now our really important tests began: discovering how to reverse this slowdown.

Defrag options

The hard drive is a big bottleneck on most PCs, and defragging has traditionally been one way to boost performance. Windows 7’s own defrag tool completed the task in a little over 20 minutes, confidently reporting that there was now 0 per cent fragmentation. But this had little effect on our PC, shaving one second off boot time and leaving other benchmarks unaffected. We weren’t convinced, and ran Auslogics Disk Defrag immediately afterwards. This produced some interesting information: it thought our drive was still 16 per cent fragmented. We told the program to optimise our file layout (go to ‘Settings | Program Settings | Algorithms | Move system files to the beginning of the disk’) and set it to work.

Auslogics Disk Defrag optimised the layout of files on your hard drive and gave a real speed improvement as a result.

This delivered real benefits. Boot time fell from 29 to 26 seconds; IE was usable after 107 seconds, a 23 per cent improvement; and launch time for Outlook fell by a third. We can’t guarantee you’ll see similar results, as every defrag situation is different, but it’s clear that Windows 7’s defrag tool alone won’t necessarily do the job. We advise you click Start, type defrag, click ‘Disk Defragmenter’ and make sure that scheduled defrags are turned off for the moment. Then install Auslogics Disk Defrag, turn on the option to relocate your system files, click ‘Settings | Program Settings | Schedule’ and set it to run every few days to keep your drive running optimally.

At your service

A near two-minute wait before we could access the web was far too long. To cut this down we needed to reduce the work that Windows had to do during the boot process, and one effective way to do this was to work on our Windows services. Launching the Services applet (‘services.msc’) revealed the many changes that could be made.

For instance, the Distributed Link Tracking Client maintains links between NTFS files across a network and is started by default. We don’t use the service, though, and you probably don’t either: double-clicking it and setting the Startup Type to ‘Disabled’ will turn it off. IP Helper is similarly pointless unless you have access to an IP6 network, and the Windows Media Player Network Sharing and Media Center Extender services can go unless you’re using them to share your music and videos.

Other services can be configured to start with a delay, giving priority to other tasks and helping your PC to become usable more quickly. The Background Intelligent Transfer Service is important when downloading Windows Updates, but it doesn’t have to be available when you start your PC. Double-click this and set its Startup Type to ‘Automatic (Delayed Start)’. Try the same with Disk Defragmenter, Windows Backup, Windows Search and Windows Update.

We noticed many unnecessary third-party services. Installing Nero 9 got us a Nero BackItUp Scheduler 4.0 service, for example; a LightScribe service assists when labelling discs; and a Visual Studio 2008 Remote Debugger had appeared from somewhere. We weren’t using any of these, so we disabled them all.

Many more could safely have their start-up type set to ‘Automatic (Delayed Start)’: Apple Mobile Device (bundled with iTunes), seven SQL Server services and five from VMware (part of VMware Workstation) all got this treatment. (Don’t choose anything security-related, though: vital services relating to firewalls or antivirus tools must be allowed to start as quickly as possible.)

These changes worked well, cutting our raw boot time from 26 to 24 seconds, while the ‘IE-usable’ time plummeted from 107 to 81 seconds: a significant improvement. But there was more to come.

Startup simplifications

Filling up a PC with numerous start-up programs will really slow it down, yet software authors continue to do this by default, so it’s a good idea to prune your start-up tasks on a regular basis.

Start by quickly browsing your ‘Start | All Programs’ menu. Is there anything you no longer need? Uninstall it now.

Next, we launched msconfig on our test PC, clicked the Startup tab and found 29 programs listed, many of them unnecessary. QuickTime, iTunes, Adobe Reader, Adobe Acrobat, Orbit Downloader, PowerDVD and RealPlayer are all very useful tools, but we didn’t want any of them to launch at boot time.

Other applications install some components that may or may not be useful to you. GoogleToolbarNotifier protects your Google toolbar search settings from unauthorised changes, for instance: that might be handy in some cases, but you may already have antivirus software that does something similar. Magix Movie Editor had added an application called Trayserver that appeared to be unnecessary, and our Cyberlink software had installed a host of tools that seemed less than essential, including ‘cyberlink brs’ (something to do with Blu-ray, apparently), Cyberlink MediaLibrary Service, the Language Application, the StartMen Application and the MUI StartMenu Application.

There may be a few redundant start-up programs that have been there since your PC arrived. Ours included LightScribe, a disc-labelling tool that we weren’t using, and CTXfiHlp, a Creative tool that apparently assists with providing Help functionality, but as we’ve yet to need that, the program felt like something we could do without. Another we found was LG Firmware Update, which checks online for new DVD drive firmware. That’s handy, but we don’t need to run it every boot. However, if you turn this off, make sure that you run it manually regularly.

A program to check for DVD firmware updates is useful, but you don’t need to run it at every boot. Disable this to save some time.

The precise results of all this tweaking will depend on how your PC is configured, but we saw immediate benefits. There was less disk thrashing at boot time, IE was now usable in only 71 seconds, and we’d freed up more than 100MB of RAM for the rest of our system.

Optimise your apps

We’ve concentrated on cleaning up Windows clutter, but your apps can also collect pointless add-ons.

Take Internet Explorer, for instance. While installing software, we accepted every offer of a shiny new IE add-on, with the result being that we now had four extra toolbars. Clicking ‘Tools | Manage Add-ons’ and disabling these freed up a surprisingly high 28 to 36MB of RAM, cut four seconds off the time it took for IE to load and then shaved half a second off every subsequent relaunch.

Typical Microsoft inefficiency? Apparently not. We had also accumulated eight Firefox extensions – AdBlock Plus, DownloadThemAll and so on – and uninstalling those halved the browser’s relaunch time and saved us around 26MB of RAM. So by all means keep the extensions you use, but remember that they come at a price – get rid of any that are surplus to requirements.

It’s a similar story with Microsoft Office. Outlook 2007, for instance, comes with many unnecessary add-ons, and programs like iTunes will install more (without even asking). Disabling all but the key search add-on saved 19MB of RAM on our test system (see the ‘Optimising Outlook’ box for the details), and while the initial launch appeared little different, subsequent launches now required only around 0.4 seconds. Clear unwanted emails out of your inbox for a further speed boost, then check Word, Excel and other Office components for further unnecessary add-ons (though don’t remove anything unless you’re sure you don’t need it).

Clean up your system

Congratulations, you’ve done the hard work – it’s time to clean up. Click Start, type cleanmgr and press [Enter] to launch Disk Cleanup. Follow the instructions and clean up as much of the junk that it finds as you can.

You can get more thorough clean-up help from a tool like CCleaner. It’s not a magic solution – we tried it, and cleaning our Registry made no difference at all to any benchmarks – but it does give you a central place to clean up your browser’s temporary files. That really did help, cutting another five seconds off the time it took IE to load and become usable.

After one further defrag to take advantage of our additional free hard drive space, that was it. So what had our efforts achieved?

Boot time, originally 22 seconds, had initially risen to 30, but we’d brought it back down to 24. The time it took IE to load and display Google, first 28 and at its height a horrible 140 seconds, was now 35.

Initial launch times for Outlook and Firefox were 25 per cent faster. Task Manager showed that system activity had fallen by 30 per cent. We had 300MB more RAM available, and our applications had been tuned to require less than they previously did.

Our work had got us close to the goal of brand-new PC performance. Now it was time to take the next step and make our system go faster than it had ever gone before.

Feb 23

Update: Don’t feel left out if you’re a Windows user. Check out our tutorial about Fedora’s Revisor tool.

SUSE Studio is clever. Very clever. It’s the result of two years’ work by a team at Novell to provide its enterprise customers with a convenient launch pad for building virtual appliances and customised distributions. It’s also been a massive success, boasting over half a million downloads and over 40,000 users. But don’t let the word ‘enterprise’ put you off: customised distributions like these are incredibly useful, whether you use them yourself, make them for someone else, or deploy them across your IT infrastructure. They represent what’s great about Linux: its ability to be repackaged, copied and redistributed with complete freedom. Building your own distribution is also rather cool.

Fancy a pretty desktop like this one? You don’t even have to close your web browser to create one thanks to SUSE Studio.

In serving its high-end customers, Novell has created the most powerful and most intuitive distribution design tool the low-end Linux community has ever seen. And it manages to do all this through a web browser. It makes hunting for the perfect distribution a little like online shopping. Point your cursor at a feature and it’s added to your distribution. You can add as many or as few items as you wish, and when your virtual basket is full, the checkout process will let you preview your order before presenting you with a variety of delivery options.

You could download an ISO file for optical media, for example, or a pre-formatted virtual machine configuration that you could run from VMware Player, VirtualBox or Xen. There’s even an option to build a Flash version of your distribution that can be written to a USB thumb drive. All of this is accomplished online through a web browser. The building process and your distribution are hosted on Novell’s servers until you’re ready to download the fruits of your labours. Moreover, unlike nearly every other distribution building tool, you don’t need any specialist knowledge in order to create exactly what you want.

Create an account

The first step to creating your own distribution is to create a personal account at www.susestudio.com. The only fly in the ointment is that you’ll then need to wait for an invitation to arrive at your registered email account. This delay is necessary for Novell to ensure a decent quality of service for all its users, and how long you have to wait is dependent on demand. We found that it can vary between half an hour and a few days. When you do get an invitation, a single click is all you need to activate the distro building features.

When your account is activated and you log in, you’ll be presented with a page that allows you to choose a base template for your distribution. Each one is built around either Novell’s community-supported OpenSUSE 11.1 distro or its business-friendly SUSE Linux Enterprise distribution (versions 10 and 11). If you’re looking at deploying your distro in a critical environment then the enterprise distributions offer better professional support and long-term stability, but you’ll probably find that OpenSUSE is more interesting.

You also need to select a suitable package template for the distribution base. There are the standard Gnome- and KDE 4-based distributions, for instance, as well as a minimal X installation and a package designed for servers. There’s also an option labelled ‘Just enough OS (JEOS)’, which features the bare minimum of packages required for a working installation and is the closest option to a blank canvas. The basic JEOS image requires just 270MB of space, for example, whereas the default KDE 4 install requires a little over 1GB to be available.

Select some software

Our first distribution is going to require a desktop environment. For that reason, we plumped for the KDE 4 desktop option in the OpenSUSE 11.1 category. Next, scroll down the page and give your creation a name before clicking on the ‘Create appliance’ button. The following page can be quickly skipped over and you’ll then find yourself at the Software Sources page. This is where you augment your base installation with essential packages. Your new distribution will still be able to download and install packages, but including them at this point will avoid the need to go through that process for every machine.

Just pick the components you want to include from this handy list.

Click on the ‘Recommended’ button to get a good idea of which packages make the most sense to include. Top of the list is Firefox, followed by Flash-player for Adobe Flash support. This is closely followed by OpenOffice.org, GIMP, DVD-writing tools and Ntfs-3g for reading Windows partitions on the same machine. Adding each of these packages is a sensible choice. Click on the ‘+add’ button to the left of each package to drop them into your proto-distribution. The only other packages we added were Kde3, which turned our distribution into the ultimate KDE package, and Yast2-live-installer, which enables a Live DVD to be installed. As you add packages, you’ll see a running tally in the left-hand border of the page. This will update with the current amount of space that your distribution is taking up, both as a compressed archive and as the final object. This is something to keep a close eye on if you need your distro to fit onto either a 4.7GB DVD or a 700MB CD.

If your requirements aren’t met by the default package list, you can add further package repositories by clicking on the blue ‘+’ symbol at the top of the page. There are several pages of different sources, including Apache, Compiz and even a repository for emulators. If you have your own packages to include, you can upload them to your custom distribution by clicking on ‘Upload RPMs’, but you’ll need a SUSE-formatted RPM package for this to work.

Configure the distro

Now switch to the Configuration tab at the top of the page. This is where you answer all the questions you’re typically asked when installing a distribution. The first page, for example, requests your location, time zone and keyboard layout. You should leave DHCP enabled for the network. Disable HTTP in the firewall configuration unless you’re going to run a web server from each machine with this distribution. Below these questions you can create a default list of users. You might want to add a generic guest account, and an administrator account too.

The second page allows you to personalise your distribution with your own graphics. Upload your own logo and background, and these will be displayed while your distribution is booting. We made the background blue to reflect our choice of desktop environment.

The third page lists the start-up options and allows you to enter your own end user license agreement (EULA). You should keep the start-up option at its default value, but editing the EULA may be useful if you’ve added your own packages. The following Server page will let you configure any server package you’ve installed, while the Desktop page lets you specify a user for auto-login and any applications you want running from the desktop. You could choose to launch Firefox (mozilla-firefox) if you were building a web kiosk installation, for instance.

The final two pages of the configuration state deal with virtual machine specifics and any custom scripts you want to run. For a large deployment, you may want a script that sets up email accounts, for example.

Build the distro

Overlay files are a way of accomplishing a custom configuration without using a script. For example, you could configure your Evolution mail client locally and upload just the configuration file during the Overlay Files stage. This would create a default configuration for each distribution.

Finally, when everything is configured correctly, switch to the Build tab and select the format for your distro from the dropdown list. Click on ‘Build’ and Novell’s servers will start to cook your distribution. How long this takes is dependent on how many packages you’ve included. Our 1.5GB ‘super KDE’ distro took 14 minutes to create, and the end result was a 477MB compressed file.

But before you download your custom distribution, SUSE Studio has one last trick up its sleeve. There’s a preview mode in SUSE Studio that will let you run your distribution from the remote server. When the build process has finished, look for the ‘Testdrive’ button beneath the status text. Clicking on this will open a new window, in which you’ll see your distribution start to boot. You can even SSH into your virtual server by enabling networking and then following the on-screen instructions – and if you installed a web server then that will be running too.

SUSE’s Testdrive option lets you test the distro, again without leaving your browser.

The Testdrive facility gives you an hour to try the server before ending the session. When you’re happy with the results, just go back to the Build page and download your distribution. Note that a default account provides 15GB of storage and you can access any of your prebuilt distributions by clicking the ‘Home’ icon. SUSE Studio will delete your build from its server after seven days, but it keeps the building information so that you can rebuild the image again.

Run the distro

After downloading your distribution, it’s time to run it on some hardware. How you do this depends on the format you’ve chosen. VMware images can be loaded into your virtual machine application directly, while USB sticks or hard disk images can be written to their final media using the ‘dd’ command. It’s not difficult, but you need to ensure you get the correct destination, since dd won’t ask if you’re sure and can quite easily just overwrite your data. If you’ve gone for an optical disc image, this simply needs to be burnt to a disc using a tool such as Brasero or K3b.

With your optical media in hand, it’s then just a simple case of booting your machine with your distro’s disc in the drive and installing it. Within a few moments you’ll be dropped into your very own Linux distribution, ready to go and complete with all the packages you’ve selected.

Offline alternatives

The main problem with SUSE Studio is that it relies on both Novell’s servers and its goodwill. There may come a time when Novell wants to charge for the service. Alternatively, if you need to build your own distribution and the internet isn’t working, you’re going to be stuck. Hopefully, Novell will release the application code to Studio, or make it part of one of its distributions one day, and you’ll be able to take advantage of its functionality from your own machine. But until then, it’s worth finding an alternative.

Outside SUSE Studio, building your own distribution can be a tricky business. You normally need to know a lot about Linux and how it all hangs together. The Gentoo distribution is a viable alternative to putting everything together yourself. Gentoo still gives you complete control over every package that’s installed, but it’s a well-trodden path that offers plenty of community support and a step-by-step installation procedure.

However, you won’t be able to share the distribution you’ve created with other Linux users unless you’re prepared to go through a lengthy build process. Currently, the best alternative to SUSE Studio is Fedora’s Revisor tool, which we covered in PC Plus 279. It’s a point-and-click interface for building your own Fedora-based Live distribution, which means that you can boot and run it off either a USB stick or an optical drive. You can select the packages to include and create a custom configuration that fits your specifications exactly. It’s often used to rebrand the default Fedora distro, but it’s capable of more than simple makeovers.

Test your distro in a VM

One of the build options for SUSE Studio is ‘VMware/Virtual Box’. When you select this from the dropdown list and click on the ‘Build’ button, SUSE Studio will construct your distribution and insert the installation into a VMware hard drive image.

Virtualbox is the best way to realistically test your distro outside of your browser.

This can then be loaded directly into VMware and run without any further configuration. VMware is normally expensive, but there’s a free version called VMware Player that’s compatible with the same image and features the same excellent performance as the full-price version.

The best option for Linux users, however, is Virtual Box. This is a free, open-source competitor to VMware, and most distributions include Virtual Box packages that can be installed through a package manager. From Ubuntu’s Synaptic, for example, search for and install the Virtualbox-ose package.

When you download the virtual machine from SUSE Studio, it’s delivered as a ‘vmx.tar.gz’ file. VMX is the virtual machine format, while ‘tar.gz’ is the most common archiving format on Linux. You can normally double-click on a file to decompress it, or type tar xvf on the command line followed by the name of the file to do it manually. You then need to launch VirtualBox. Click on ‘New’, select Linux as the operating system and OpenSUSE as the version, and then click on ‘Next’ twice. When you get to the virtual hard disk page, click on ‘Existing’ and ‘Add’, then point the file requester at your downloaded ‘vmdk’ file. You can then run your virtual machine and play with your new distribution.

Oct 17


The Devoxx conference is the place to be for everyone interested in Java and related techologies. And as one of the members of the steering team, I’m proud (again) on the impressive list of speakers we’ve gathered. My personal focus and interest is SOA and Cloud Computing. And that will definitely be covered at Devoxx!

University Day 1 – Monday Nov 16
The Cambrian Cloud Computing ExplosionJohn M Willis
Got to know John though his podcasts. John has a strong background in systems management and Tivoli, but his current focus is Cloud. And rest assured that he knows what a cloud is and knows all the players. For all the could enthusiastics: strongly recommended!
jBPM in ActionTom Baeyens
Tom is “mister jBPM”, the main driver behind jBPM, the JBoss BPM offering.
Architecting Robust Applications for Amazon EC2Chris Richardson
Chris is the founder of CloudFoundry. CloudFoundry provides tooling (and more) to deploy Java applications on Amazon EC2.
Note: CloudFoundry got acquired by SpringSource and SpringSource in turn got acquired by VMWare. Which is interesting as Amazon and VMWare are seen as big competing players in the cloud space.
SOA, OpenESB and OpenSSO Programming with Passion!Sang Shin
Talk will be based on Sang’s free online SOA course material.

University Day 2 – Tuesday Nov 16
Google App Engine for Java – a real live voyage to The Cloud

Develop along with the speakers your first (or next) application on the Google App Engine. No sales pitch, as the speakers are – Sam Brodkin and Scott Stevenson – are independent(s).
SOA In PracticeNicolai Josuttis
Nicolas is the author of the book “SOA in practice“. One of the better SOA books in my opinion.

Conference Day 1 – Wednesday Nov 17
ESB’s and WebServices in PracticeNicolai Josuttis
Once more Nicolas, but now with a more focused talk on the use of ESB’s.
Architecting Robust Applications for Amazon EC2Chris Richardson
A condensed version of the University talk.
jBPM4 in ActionTom Baeyens
A shortened version, ideal if you went to the cloud talk of John Willis on Monday.
Keeping Your Options Open, Even if the Cloud is NotDoug Tidwell
Another specialist wrt. XSLT 2.0, but that’s not the topic of this session. Doug will rather talk about the different Cloud offerings and standardization in the cloud space.
Distributed Programming the Google WayGregor Hohpe
Gregor is famous for his Integration Patterns. Focus of this talk are the base technologies underlying the Google imperium and the Google cloud solutions.

Conference Day 2 – Thrusday Nov 18
Using XML with Java: Spoilt for Choice?Michael Kay
Michael Kay is the author of the Saxon XSLT and XQuery processor. Michael is “Mr XSLT”. XML remains an important aspect of SOA and general (Java) development.
Note: actually we have 2nd XSLT guru at Devoxx, Doug Tidwell
Google Appengine Java: Groovy baby!Patrick Chanezon and Guillaume Laforge
Another perspective on the Google AppEngine with focus on running different JVM based languages on Google AppEngine.
Master Data Management – Pierre Bonnet
Master Data Mangement is another important aspect of a SOA. Speaker is Pierre Bonnet, founder of the MDM Alliance Group.

Conference Day 3 – Friday Nov 19
BPM in a SOA EnvironmentPaul Brown
Paul Brown is the author of 2 great SOA books, is an architect at Tibco, but most importantly he is a senior, mild and fluent speaker on SOA. For this Devoxx talk, we have asked Paul to focus on BPM. Recommended!
Open Source SOA with FuseJames Strachan
James is involved in a tremendous number of open source projects, usually focused on SOA and integraton, with ActiveMQ and ServiceMix being the most well known. Will be interesting to learn about the status of Fuse, the ESB based on ServiceMix.
Note: in particular as Progress acquired Iona and is behind FuseSource
Note 2: for those who remember the CXF WS framework, that’s part of Fuse

See you at Devoxx!