Slashdot Log In
Making Operating Systems Faster
Posted by
michael
on Thu Jun 03, 2004 09:30 AM
from the pinstriping-adds-extra-torque dept.
from the pinstriping-adds-extra-torque dept.
mbrowling writes "In an article over at kernelthread.com Amit Singh discusses 'Ten Things Apple Did To Make Mac OS X Faster'. The theme seems to be that since you won't run into 'earth-shattering algorithmic breakthroughs' in every OS releases, what're you gonna do to bump your performance numbers higher? Although the example used is OS X, the article points out that Windows uses the same approach."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
#1 thing Apple should do... (Score:4, Funny)
Re:#1 thing Apple should do... (Score:4, Interesting)
OS designers shoudl also cut down with bloatware and trying to 'integrate' everything into the OS...
Re:#1 thing Apple should do... (Score:4, Informative)
Re:#1 thing Apple should do... (Score:5, Insightful)
(http://slashdot.org/ | Last Journal: Wednesday September 24 2003, @10:01AM)
I'm sure there are some consumers who buy windows based on other criteria, but the vast majority of windows purchases are as a consequence of compatibility. If the actual statistics showed only 99% of retail windows purchases were as a result of pre-installation, that's about 0.999% less than I would have expected.
$.02
Re:#1 thing Apple should do... (Score:4, Insightful)
Let me guess, you don't sell OS's right? To move software, you have to have all the pretty stuff that makes it look nice ON by default. Because that's what the general population cares about. They'll look at it and say "Wow, that's ugly, what a crappy OS."
When it's pretty, *you* will say "Wow, that's pretty, but it's slowing it down, let me go into control panels, and registry settings, and god knows what else to tweak my settings while I overclock the damn thing and stick it in a freezer." Then you'll bitch about it on Slashdot. Which is exactly what's supposed to happen.
Because *they* don't know how to turn it on, and *you* do know how to turn it off. So the burden, by default, is on you. It sucks, but hey, what else is new?
Re:#1 thing Apple should do... (Score:5, Insightful)
(http://www.lazylightning.org/)
There are easier ways to enable these "features" than creating a ton of hoops for BOTH sides of users.
Instead of clicking through a bunch of menus, finding the options, selecting radio buttons, etc, just disable it by default and ask at install/setup time "do you want the 'pretty version'? Be warned that it may affect system performance."
I think that eliminates the problems.
Re:#1 thing Apple should do... (Score:4, Informative)
(Last Journal: Friday October 03 2003, @09:57AM)
More uninformed opinion on Slashdot (Score:5, Informative)
What fucking hoops?
Right-click My Computer->Properties->Advanced->Settings button.
Choose either "Best Performance" or "Best Appearance." Or check each option individually. What a non-issue.
If this was KDE, someone would have already answered with this, but because it's Windows, everyone just nods with the rest of the flock, "Baa, baa, yes, there are hoops to jump through, baa."
Speaking of KDE, talk about fucking hoops. You've got a completely horrible control center, with three different areas for changing the looks of things like window styles, widget styles, and so on. Why the hell isn't that all integrated into one configuration dialog? Oh, I forgot, ease-of-use is a criticism we only reserve for non-issues on the Windows platform like checking a radio button to get rid of a blue theme.
Re:More uninformed opinion on Slashdot (Score:4, Informative)
The thing that drives me nuts is the constant harassment when you first install Windows XP for taking a tour and signing up for a
Re:#1 thing Apple should do... (Score:5, Interesting)
Ugh I hate this question. "Is it really necessary?"... is the type of question you can ask if you really want to make anything go away. "Is a >500mhz processor really necessary? Is a color monitor really necessary? Is being connected to the net 24/7 really necessary? Is a color printer really necessary when B&W is cheaper?" Who really cares so long as you can choose?
I'll answer your question, though: The more your UI gives you, the better reflexes you can build while using your machine. Have you ever reacted to a screen refresh? (Particularly in the olden days when the CPU had to fight harder...) Ever notice change in window focus simply by spotting the change in titlebar color? Etc.
I have no problem with people turning the fancy stuff off to boost performance, but the "is it really necessary" argument does not apply. The question is really "Do I want it?"
Re:#1 thing Apple should do... (Score:5, Interesting)
(http://slashdot.org/)
The reason X runs slowly compared to Aqua is that Apple optimizes Aqua and allows harware acceleration (Quartz Extreme) and offloads lots of tasks to the GPU. I know of no X windowing system (aside from Apple's own implementation) that does this in OS X.
10.0 and 10.1 were dog-slow. Especially when you had a couple of hundred files in a folder. Jaguar was a huge increase in speed and performance. Quite a bit of that was due to the Quartz Extreme, but even my lowly 500MHz dual-USB iBook saw quite a boost from Jaguar and it was not able to use QE at all. Panther did very little to the iBook, except make it take forever to boot. I need to check on that bootcache issue.
My dual 800MHz Quicksilver is now almost three years old and I am still very happy with its performance. I expected to be wanting to replace it after two years, or after clock speeds have doubled, which is what I did when I used Wintel systems. Instead, I am considering keeping it around for the 10.4 release and at least another year or two. I attribute quite a bit of this to Apple's tweaks and performance enhancements of the OS.
Re:#1 thing Apple should do... (Score:4, Insightful)
(http://slashdot.org/)
What really bothers me, and it is the main reason I have stopped using Gnome, is this: Developers often assume that the moment the computers get fast enough that they can respond to fancy graphic requests using 100% of the CPU time, that this is the point where all reasonable people would stop complaining about the time they take up, and would be happy to have the little graphic toys unconditionally turned on at all times. This I call "bullshit". It's only when the fancy graphic requests end up taking a teeny, tiny fraction of the CPU time that it starts to become acceptable to leave them uncoditionally on.
I don't just want fast response from my UI when the system is under light load. I also want fast response from my UI when there's a runaway process I need to find and kill, or when I'm calculating some big raytrace in the background. So, yes, even in this day and age where you can't find a new computer with less than a Gigahertz clock rate, it is STILL worth it to provide the user with the ability to turn off features that require a good amount of CPU usage.
It's up to the owner of the computer to decide what to spend their CPU time on, not the maker of the UI.
Re:#1 thing Apple should do... (Score:5, Informative)
(http://www.imaginaryrobots.net/)
Faster? (Score:4, Interesting)
(http://www.atomicraygunattack.com/ | Last Journal: Monday September 19 2005, @10:06PM)
Re:Faster? (Score:4, Funny)
Phase 2: Re-release same software under a different name or version, only uncrippled. Claim massive performance improvements.
Phase 3: Profit as everyone upgrades/migrates to your product because of the great performance reviews
Hey, it seems to work for AOL, and I bet it could work for Microsoft!
=Smidge=
Re:Faster? (Score:5, Insightful)
(Last Journal: Saturday December 10 2005, @08:59PM)
XP is CRAZY slower than 2k.
XP is faster to come up to the desktop. However, it is still busy accessing the hard drive and loading stuff in the background. You still have to wait for the OS to quit loading itself before you can use anything. Microsoft's claim that XP is faster than 2K was based on the time to desktop, apparently not time to usability.
Once loaded, XP has an annoying habit of wanting to refresh the desktop from time to time. That slows things down even more.
Re:Faster? (Score:4, Informative)
Um, no. XP gives you an 'Explorer just crashed' message when it tanks. Heh my coworker next to me is actually having this 'explorer likes to crash regularly' problem. When you lose your taskbar and all your icons in the system tray disappear, then you know Explorer has gone south and restarted.
Windows does have a 'refresh and rebuild the desktop' function. It's the same one they use to put your desktop icons back when you change video modes. (I.e. playing a game.) That's exactly what the person is describing.
XP and OS X difference (Score:5, Insightful)
(http://millahtime.blogspot.com/ | Last Journal: Friday July 15 2005, @01:00PM)
I can see how they can write an artice about how apple did this but to claim that Microsoft does it too. I don't see how. Unless Microsoft has improvements but enough of the new things they add slow it down so much more the gain is outweighted by the loss.
Re:XP and OS X difference (Score:4, Interesting)
Microsoft tends to spend more time figuring out ways to trick their users into *thinking* that things are faster even though it's actually taking as long, if not longer than previous versions. In this case, you've been tricked. Microsoft moved more stuff after the user is logged on. In other words, your system is still doing all of the things it used to do, plus probably more, it's just that you think it's done.
This is the difference between reality and perception. Microsoft tries very hard to address a user's perception, even at the cost of making reality slower. As is, in the above cited example, Microsoft gave you a login screen, whereby, you can do very little to nothing, but you're satisified thinking it's done, in spite of the fact (reality) that it's not. This means, attempting to do things right after the login screen will more than likely, take much longer than expected. They further hide this fact by making application startup and caching part of the OS boot sequence. Non-cached application startup, following initial login, will more than likely be painfully slow for non-trvial applications, at least until XP actually finishes it's startup.
Good or bad, you decide.
Re:XP and OS X difference (Score:4, Informative)
It's worth noting, if nothing more than FYI points, there are ways to drastically speed up Linux's start up times. They range from using LinuxBios to changing out the init scripts for scripts which are are to run highly parallel. Last I heard, the init scripts alone, take off 10s of seconds. It's just that people would rather have UNIX and Linux compatibility.
At any rate, I'm really not sure what you mean by, "USABILITY" being faster. If you mean the speed of the overall system as it relates to user responsiveness, then I suspect you have something wrong with your Linux configuration. Usabiity between the two systems should be equally high. Personally, my usability goes way down on Windows systems because it lacks so many of the powerful X features, out of the box anyways. But, I recognize that I'm not the typical win/linux user.
Lastly, I must say that I find it interesting that you find XP to be faster than 2k. XP is widely regarded as being slower (yes, with everything turned off) than 2k, as far as the user interface is concerned.
Some of these differences might center in how we're using our systems. My uses tend to be more of a workstation/desktop while you're may center completely around a MS-desktop solution.
Re:Faster? (Score:4, Insightful)
Anyone that thinks MS' OS, as a whole, is getting faster with each release is simply not living in our reality.
Reduce Bloat (Score:5, Insightful)
why does my 3ghz p4 choke on spellchecking a 50k doc with a 500mb text editor (Word2k3) ?
why does explorer choke on listing 10,000 files ?
why should i ever upgrade my word processing applications ? or can they type for me now ?
bah, innovation is dead, shame
One word: (Score:5, Interesting)
(Last Journal: Monday December 08 2003, @09:32PM)
Largest bottleneck in any modern system. If you've never had the opportunity to use a 15krpm (or something faster) system, do it now. It flies... I don't care if it is Windows or what... it doesn't matter when you've got usable bandwidth to the biggest chunk of storage out there.
Re:One word: (Score:5, Funny)
(http://www.biochem.ucl.ac.uk/ | Last Journal: Thursday November 01 2001, @09:11AM)
That's two words.
Tom.
That's 2 words. (Score:5, Interesting)
My 2 words are RAM DRIVE. You think you can't justify 4Gb of RAM? Course you can.
Dedicate 2-3Gb of it to a ram drive and mount it as your root,
The difference in performance can be stunning.
Re:That's 2 words. (Score:4, Informative)
Re:One word: (Score:5, Interesting)
(Last Journal: Monday March 13 2006, @01:53PM)
Re:One word: (Score:5, Insightful)
Maybe 10,000 RPM model would make a good boot drive with all of the home folders on the 250GB 7200 RPM drive. Then again, most file access would probably be from the slower drive. Eh.
Re:One word: (Score:5, Interesting)
(http://users.rcn.com/smallpond1/ | Last Journal: Wednesday April 30 2003, @11:25PM)
5400 RPM 11 ms
7200 RPM 8 ms
10K RPM 5 ms
15K RPM 4 ms
Name another common mechanical device that has nearly tripled in speed in that period. (Source: seagate.com, all numbers are for 3.5" disks)
Re:One word: (Score:5, Informative)
(http://slashdot.org/)
Most systems nowadays use a DMA-type system (Direct Memory Access) [pcguide.com] which streams data directly from disk to memory without involving the CPU much at all. The real slowdown is not the CPU cycles getting wasted, it's that the CPU can't work on the particular data you need until it is loaded. During the DMA loading process your CPU could be using tons of cycles on other tasks that are not waiting on data.
Smart read-ahead precaching and buffering attempts to ensure that your processes will not be data-starved. Yes, buffering can fall behind but overall it does considerably speed up a system.
pretty much (Score:4, Insightful)
(Last Journal: Saturday December 25 2004, @10:07PM)
Haven't read the article yet .. (Score:3, Interesting)
(http://w1xer.de/ | Last Journal: Saturday September 09 2006, @05:55AM)
I haven't looked into it for a while (mod me down for being uncertain if you like), but I seem to recall that there were serious leaps and bounds still left in OSX performance, with a change to the ABI register use, potentially, in the future
Re:Haven't read the article yet .. (Score:5, Informative)
(http://w1xer.de/ | Last Journal: Saturday September 09 2006, @05:55AM)
Try running LinuxPPC on your mac some day, and you will see a huge difference in general snappiness.
I'm not saying OSX is un-usably slow, or even slow at all - heck my Rev. A tiBook, beaten and aged, is still all the computer I need, and I am very productive with it
On the register side of things, I can't for the life of me remember the full details, but I believe that the ABI for OSX only uses a sub-set of the PPC's full register set, and thus this means more swaps in/out
This is separate from AltiVec, which is an instruction set, not just a register setup
Re:Haven't read the article yet .. (Score:5, Informative)
(http://www.mikeash.com/ | Last Journal: Wednesday August 11 2004, @12:57AM)
Mach-O the ABI (not to be confused with Mach-O the executable format, which is totally different) accesses global addresses via PC-relative