Slashdot Mirror


Using Safari Slows Your System?

sandoz writes "Macenstein has up an interesting article with some evidence that running Safari seems to slow down unrelated programs. While the speed with which a browser renders a Web page is an important measure, the difference between browsers is usually a matter of a few seconds at most. To my mind, a more important measure of speed is how a browser affects the overall speed of your system." Some responses to the article suggest that memory handling in WebKit may be the culprit. The Safari developers have already responded to this article on the webkit.org blog. They explain why the slowdown might be occurring and how it's (probably) already been fixed in the nightly build. And they request more minimal test cases.

46 of 242 comments (clear)

  1. OMG by cowscows · · Score: 3, Insightful

    Hey wow, a piece of software isn't perfect, and the developers are trying to fix it. This is an exciting new paradigm for programming. Thanks for keeping me updated!

    --

    One time I threw a brick at a duck.

  2. my test case by gEvil+(beta) · · Score: 4, Funny

    I have a 5-1/2 year old iBook. Running anything slows my system down... : p

    --
    This guy's the limit!
  3. Bloomin' OS X copycats by tttonyyy · · Score: 4, Funny

    Don't you realise Windows has this technology already - it's been slowing down unrelated programs for years! (Sorry, I know it's cheap, but I couldn't resist!)

    --
    biopowered.co.uk - catalytically cracking triglycerides for home automotive use since 2008. Just say no to big oil!
    1. Re:Bloomin' OS X copycats by Anonymous Coward · · Score: 3, Funny
      Don't you realise Windows has this technology already - it's been slowing down unrelated programs for years! (Sorry, I know it's cheap, but I couldn't resist!)


      No, Apple has had this technology for years and Microsoft just copied it, as usual.

    2. Re:Bloomin' OS X copycats by lanswitch · · Score: 2, Funny

      yes, but who owns the patents on this?

    3. Re:Bloomin' OS X copycats by cyfer2000 · · Score: 3, Funny

      Xerox, as usual.

      --
      There is a spark in every single flame bait point.
    4. Re:Bloomin' OS X copycats by jZnat · · Score: 2, Funny

      I'd suspect Sun holds this patent..

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
  4. Weird... by avalys · · Score: 4, Informative

    A few months ago, I switched to Firefox because I was convinced Safari was slowing down my system. Just this morning, I fired up Safari again - and it is at least three times as fast as Firefox. Don't know what I was thinking...

    --
    This space intentionally left blank.
    1. Re:Weird... by peragrin · · Score: 3, Informative

      Safari has a memory leak. run safari for several days. Then close all but the last tab. Safari is use several hundred megs of ram. now I simply close safari when i am done browsing or when i am about a launch a memory intensive app. The new app kicks out all of safari's crud and it launches instantly.

      Firefox is the same speed no matter what, but it too has an occasional memory leak when you open and close lots of tabs.

      --
      i thought once I was found, but it was only a dream.
    2. Re:Weird... by troc · · Score: 2, Informative

      Oh how i wish Safari had tabs

      Er, it does. Switch them on from the menubar.

      --
      Troc's dubious podcast and blog: http://www.trocnet.net
    3. Re:Weird... by moosesocks · · Score: 2, Informative

      Hmm. I've had the same experience actually.

      Give Camino a try. It's a nice mix between Firefox and Safari.

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
    4. Re:Weird... by Afecks · · Score: 3, Insightful

      The ENTIRE OS works perfectly. Everything.

      This was modded insightful? This is the "perfect" example of fanboy behavior. One zealot makes a broad sweeping claim that nobody in their right mind would dare to make and then another comes along and mods him insightful. Only a self-delusional fool would think perfection is attainable and there is nothing insightful about deluding yourself.

    5. Re:Weird... by suv4x4 · · Score: 2, Informative

      A few months ago, I switched to Firefox because I was convinced Safari was slowing down my system. Just this morning, I fired up Safari again - and it is at least three times as fast as Firefox. Don't know what I was thinking...

      Same experience on Windows. I have lots of RAM, so let's say I don't care it wants to eat 100-200 MB ram for a few tabs. But I can't help the CPU problem. Not only it slows everything down terribly when loading pages (I frequently launch task manager to see what process eats my CPU and usually Firefox is that process), but it's still slow and unresponsive.

      Many Firefox users will think I'm just imagining or having system specific issue, but it's the same experience on any system I tried so far: people, you've forgotten what a fast browser means. Safari/IE/Opera are all few *times* faster than a bare bones firefox install.

      I'm still using Firefox though.. FireBug/WebDev Toolbar have no viable alternatives on the other browsers :( /I know about IE webdev toolbar and it's cool, but come on../.

    6. Re:Weird... by Brandybuck · · Score: 2, Insightful

      Unused RAM is wasted RAM.

      While that's a nice little bundle of syllables, it isn't true. RAM isn't like cellphone minutes. Here's some more nice sounding syllable collections (with editorial commentary), but they aren't true either:

      Unused harddrive space is wasted harddrive space, so start ripping!

      Unused bandwidth is wasted bandwidth, so make sure you're constantly downloading.

      Unused car seats are wasted car seats, so never drive a sedan without four passengers!

      Unused sleeping pills are wasted sleeping pills, so take them all at once!

      Unused condoms are wasted condoms, so wear them all at once!

      --
      Don't blame me, I didn't vote for either of them!
  5. Known Annoyance by Anonymous Coward · · Score: 4, Informative

    I have both the nightly and the original Safari version installed. The latter leaks ram like crazy which tends to slow things down. You would think they would have fixed this ages ago. But they haven't. Try closing Safari periodically.

    Another observation I have is that 1GB of ram is really only marginally adequate on my 2.16Ghz Macbook pro. If you have safari open, iPhoto open, and god forbid, a rosetta app (e.g. Word) open - you're waiting five seconds for windows to come up as disk gets paged out. Unacceptable.

    1. Re:Known Annoyance by freedumb2000 · · Score: 2, Insightful

      It's really shame that the Macbook/Pros are limited to 2GB of RAM. More RAM has always been the best way to keep old systems usable over the years. At least the new ones accept a total of 3GB now.

  6. Running Nighlty code by failedlogic · · Score: 3, Interesting

    Just wondering what other's experiences have been running the nightly code. I've been doing it with Firefox (and when it was Firebird for 2 years). But I've not tried with WebKit. Is it fairly stable, better rending of pages and faster?

    There are a few sites that are noticeably slower on Safari. Its one of the only reasons I'm using Firefox. That and there are a few plug-ins that are better than Saaft and company.

    1. Re:Running Nighlty code by ArsonSmith · · Score: 2, Informative

      I have found Safari to be almost completely unusable. Sites like http://kbb.com/ wont let you look up certain car values. some web controlled APC power strips we have wont even display the first page, and http://www.az501st.com/ most of the menu's don't work.

      --
      Paying taxes to buy civilization is like paying a hooker to buy love.
    2. Re:Running Nighlty code by Serious+Callers+Only · · Score: 5, Informative

      I have found Safari to be almost completely unusable.


      http://kbb.com/ - Failed validation, 67 errors
      http://www.az501st.com/ - Failed validation, 207 errors

      You're blaming the wrong people; try complaining to the people who made the broken websites and didn't test or at least validate them.
    3. Re:Running Nighlty code by Graff · · Score: 2, Insightful

      The problem is not just bad code. What is happening is they are coding specifically to bugs in IE. IE has a number of quirks that web developers code around. Once the site works in IE they declare the site done and don't bother to check how it works in other browsers. Firefox has a quirks mode where it basically emulates IE's quirks so it mostly works. Also, a lot of developers check for Firefox compatibility because it is the second most-used browser out there. Even with this there are still a lot of sites that choke Firefox but work fine on IE.

      The upshot is that web developers shouldn't be coding to a specific browser, they should be coding to the web STANDARDS. If a browser doesn't work with the standards then it's the browser's developers that should be working on the problem, not the web developers.

      Safari (and KHMTL on which WebKit is based) are forerunners in being standards-complient. They do work around messy web code but it's pretty tough to actually figure out what a web developer meant when he coded something ugly. You can only sanity-check so far, at some point the onus is on the web developer to get his act together and make his web page work with the standards. This isn't about "elitist snobbery", this is about doing the right thing.

    4. Re:Running Nighlty code by jZnat · · Score: 2, Insightful

      Well, if the web browsers handled errors the way they're supposed to (ignore them in some cases, completely fail in other cases like malformed XHTML), people wouldn't be able to get away with errors. Since SGML was so lenient in the first place, we've had the problem where we have an XML standard that lots of people use but hardly anyone uses according to the standards (a big no-no when it comes to pretty much any other XML standard or standard in general).

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
  7. I concur by rattler14 · · Score: 3, Informative

    I love safari and gladly use it over any other browser. However, since 10.4.5+, I have noticed that (as a whole) there appears to be an inability of OS X to free RAM up as efficiently as it used to. Programs like Safari, after many hours of usage, will remain as a HUGE RAM/virtual memory sink. I constantly quit Safari to try and alleviate/fix this.

    But what seems to happen is that the process "kernal task" keeps eating up more and more ram even after Safari is shut down. After a couple days of usage, I feel the need for a restart just to flush out this annoyance.

    Sure, in the grand scheme of things, It's only a minor annoyance, but it is definitely noticeable and something I hope is dealt with when 10.5 comes out.

    --
    my last sig was too controversial... now, a new and improved useless sig!
    1. Re:I concur by loafing_oaf · · Score: 4, Funny

      Just switch to Firefox. I'm using it right now on Windows XP, and I haven't noticed any problems with memory le*$@!!- NO CARRIER

      --
      Always someone has power over you. The thing to consider is this: Is the power good, or bad?
    2. Re:I concur by StressedEd · · Score: 2, Interesting
      ...is that the process "kernal task" keeps eating up...

      Can anyone give a concise explanation of what "kernel_task" actually is? I have seen some broad chatter and an overview, but nothing significant. I too notice it going banannas from time to time. Then again I use MATLAB and various other memory eaters quite a lot...

      --
      Be nice to people on the way up. You will meet them again on your way down!
    3. Re:I concur by _|()|\| · · Score: 2, Insightful

      Memory is a real problem on OS X, especially with Apple programs. After Safari and Mail have been open for a while (say, a day or two), they get sluggish. Measuring memory is tricky, but Safari is almost always one of the first two or three processes in top sorted by rsize or vsize. (Is it bad if vsize for a single application exceeds the total RAM?)

      I suspect that some programs have been conservative in their use of autorelease pools, causing garbage to lie around longer than necessary. I ran across this article the other day, which argues that you shouldn't be shy about creating pools. I'm hoping that garbage collection will help, but it may be a while before the majority of apps. are compiled for 10.5+.

    4. Re:I concur by Saeed+al-Sahaf · · Score: 2, Funny

      However, since 10.4.5+, I have noticed that (as a whole) there appears to be an inability of OS X to free RAM up as efficiently as it used to. Programs like Safari, after many hours of usage, will remain as a HUGE RAM/virtual memory sink

      They must be using code from Firefox...

      (ducks)

      --
      "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    5. Re:I concur by Guy+Harris · · Score: 2, Informative

      The short and simple answer is: Kernel_task is the kernel.

      And a more correct answer is "kernel_task is the Mach task to which all kernel threads belong".

      Each user-mode process has a Mach task corresponding to it; each pthread in that task has a Mach thread corresponding to it. Those threads can be executing kernel code if they're in the middle of a system call, so not everything done by the kernel is done in a kernel_task thread.

      The kernel has threads of its own, not started within a user-mode process's task; those threads run in the kernel task.

  8. But I wonder by raynet11 · · Score: 3, Funny

    If a train leaves Boston with an I-MAC running Safari doing 40MPH heading west and a 2nd train leaves Chicago doing 60MPH heading East with an mini MAC running Safari and Quake 4. How many I-PODS will be sold funding more "Hi I'm a MAC" comercials before: a. My Karma can be kicked down another notch b. The code will be fixed ? c. This post will be changed to flame bait d. This post is silly and you can't believe your still reading it?

  9. Nokia have solved this ..... (S60 Webkit) by yohanes · · Score: 2, Informative

    The S60 webkit is a port of Webkit to the Series 60 3rd edition platform. Nokia has created a memory manager for this port that can make the webkit works with low memory. If only I can have the low memory footprint browser in my Mac.

  10. it's the memory stupid by goombah99 · · Score: 4, Informative
    I'v already tested this on my computer. here's the facts. 1) at idle on normal web pages safari consumes much LESS cpu time than other browsers 2) if you run a cpu intensive script background it is not slowed by safari in any measurable way.

    in the macenstein article they too noted that cpuintensive tasks like quicktime were not slowed but memory intensive tasks like photoshop were. Also they noted that the in memory and virtual memory footprints were several fold higher for safari than for firefox.

    clearly this is a no brainier. Safari is using more memory and doing so in a demanding way. I don't know why but I assume it probably has something to do with how it handles the back-forward cache, fast page compoaition, and images. Maybe there's some memory leak too, since safari's offtprint grows during the day.

    But this is utterly unsurprising. If you run a big memory app like photshop you already know better than to be running other apps that consume memory.

    The only problem I've had with safari is not this but there are just some webpages that don't seem to comlicated that make it grind to a halt and use 60% of the cpu. One example is pricegrabber.com.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:it's the memory stupid by MojoRilla · · Score: 4, Insightful

      But this is utterly unsurprising. If you run a big memory app like photshop you already know better than to be running other apps that consume memory.
      Really? You know, this isn't 1997 when OS's did cooperative multitasking and machines had 32 megs of RAM. In 2007, many people have dual core machines and 1 gig or more RAM, and like to run more than one program at the same time. In this day and age, people want and expect to be able to run multiple apps (including web browsers, instant messaging programs, office apps, and, gasp!, photo editing apps) at the same time.
    2. Re:it's the memory stupid by SporkLand · · Score: 2, Funny

      I've never seen a weird mistype like footprint -> offtprint. Are you typing like 2 hoojillion words a minute and those are the sort of strange errors that occur?

    3. Re:it's the memory stupid by bberens · · Score: 3, Informative

      In my experience Photoshop will chew through my 1GB of RAM quite easily. It does have a pretty advanced disk caching mechanism so usually it will perform about the same with less memory, but still. Like running a database it will consume as much memory as you let it for maximum performance.

      --
      Check out my lame java blog at www.javachopshop.com
  11. Re:Firefox is a better browser. by Paulrothrock · · Score: 2, Insightful

    Not only that, but the number of plugins available for Firefox make it really worth it. Adblock and Greasemonkey and Web Developer and Firebug give me functionality that's simply not available with Safari or WebKit.

    --
    I'm in the hole of the broadband donut.
  12. Re:Safari or Firefox? by Anonymous Coward · · Score: 3, Informative

    "Since I upgraded to 10.4.8, Safari crashes on me about once a week. Forum advice was to run "repair permissions", I did but it didn't help. "

    That seems to be the advice given for everything by some people. I'm not sure why anyone should think it would help in this case or many others.

    I suppose you could try reinstalling the application after getting it off the install disc with Pacifist:

    http://www.charlessoft.com/

    before doing that you might also try removing Safari's preference file: com.apple.Safari.plist from the "Preferences" directory in your Home library, so that a new one is generated, in case there's a corruption in that causing problems. All this, again, is unspecific advice, but at least it's not Voodoo.

    You might also like to try the Camino browser. That also uses Mozilla's Gecko engine, but has far better integration with the platform. It also uses a Safari-style bookmark manager:

    http://www.caminobrowser.org/

  13. Re:Firefox is a better browser. by greed · · Score: 2, Interesting

    All that Firefox lacks is password storage in the keychain and bookmark sync across multiple machines.

    Between the two, it doesn't matter where I am, Safari has the same stuff in it.

    Which is handy 'cause my stupid G4 iBook has a thermal fault somewhere around the NVRAM and I really should call the repair centre and see how they're getting along.

    It's not like the G3 iBook had 6 bad main logic boards put in it....

    (And yet I still can't stand to use Windows as a primary OS. Maybe I'll get one of those laptop Solaris machines. Or one of those old PowerPC Thinkpads that run AIX.)

  14. Re:Firefox is a better browser. by Paulrothrock · · Score: 3, Informative

    I've yet to find a solution for the keychain password storage, but there's a plugin from Google called Google Browser Sync that I use to keep Firefox on my Powerbook and the mobile Firefox on my flash drive synchronized.

    --
    I'm in the hole of the broadband donut.
  15. wasn't the slowdown natural?? by towsonu2003 · · Score: 2, Interesting
    I've been using Firefox in Linux so long, I got used to Firefox slowing down every inch of my laptop when I go to sites that use transparent PNGs or javascript (digg and sourceforge are a major slow-downers for instance - I don't go there anymore... and I can't comfortably use slashdot's new commenting system)*

    So when I read this item, I told myself "oh, so... what I'm experiencing isn't normal. it can be news in slashdot... wow." Firefox has different effects on different people I guess...


    * Using a clean profile + a nightly build doesn't help. Submitted bug reports do not get any interest from devels except tagging it with "perf" (I know, they're busy, but look - it's news on slashdot when it's Safari on Mac).


    bugs in question? so far, I was lazy enough to file just these: 366728; 368365; 368908; 369044; 369682; 370697


    pls don't reply w/ "worksforme". I spent considerable time trying to not reproduce the slow down effects, as you might guess...

  16. Hard to take this guy seriously... by sofla · · Score: 2, Insightful

    From the article:



    <quote>
    The only thing different was that I had been surfing the web a bit while the render was going on that day, where the day before I had not. "Surely surfing the web on a mulit-processor machine shouldn't add 15 minutes to a render", I thought. Well, yes it does actually, if you're using Safari.
    </quote>

    <p>Put another way: "Surely letting the computer ONLY do my render won't be any faster than letting the computer render AND surf the web". Surely you jest? Doing a standalone render vs. doing (anything else) while rendering should make your render take longer. If it doesn't, file a bug with Adobe and ask them why they aren't utilizing the hardware properly.</p>

  17. Re:Safari or Firefox? by NickFitz · · Score: 2, Interesting

    Forum advice was to run "repair permissions", I did but it didn't help.

    It didn't help because the people who gave you that advice are imbeciles who believe in voodoo. It was able to help with occasional problems caused by Classic and bad installers circa OS X 10.1, but there are hardly any circumstances where it will make any difference to anything on more recent versions, as explained here.

    --
    Using HTML in email is like putting sound effects on your phone calls. Just say <strong>no</strong>.
  18. Re:Firefox is a better browser. by SuperMog2002 · · Score: 3, Informative

    Opera for Windows and Mac has been free as in beer for quite some time now. Go download it from Opera.com, it's pretty good.

    --
    Sunwalker Dezco for Warchief in 2016
  19. I get it... by petermartin · · Score: 2, Funny

    Safari slows down other programs so that it can look faster in comparison. So that's the secret of their success!

  20. Hmm by bill_kress · · Score: 4, Insightful

    I'm not an apple fanboy yet, but I'm really impressed with the immediate response of the Safari development team. Imagine if IE was slowing down some other program--the last group you'd expect to hear from would be the IE dev team--so far outside the realm of possibility as to be laughable.

  21. Re:WTF by cowscows · · Score: 3, Insightful

    This story isn't about some exciting new program, or some cool technology, or even an updated version of a popular piece of software. This is a report about a non-critical bug for a web browser. A web browser with limited market share and a number of good alternatives. Oh, and the developer has already acknowledged it, explained it, and described some of the progress being made to fix it. This isn't about technology, it's about a minor decision in the production of a web browser not being the optimal solution.

    Slashdot covers a huge range of topics, a lot of information goes through it each day. It's constantly bring in new editors, and they get craploads of submissions each day. Keeping all of that in mind, I just fail to see how anything in this article was worthy of a front page spot on the site. I'm not calling for the firing of the editors or anything, just making fun of them a little bit for posting something silly.

    --

    One time I threw a brick at a duck.

  22. Re:Problems with slashdot and safari by redanzl · · Score: 2, Interesting

    I used to use Saft for ad blocking and saving sessions, but Saft slowed down Safari even more. Now I use SafariBlock for blocking ads, and Forget Me Not for saving sessions, and it works fine.

    You can import adblock filter lists into SafariBlock, as well as add site on the fly.

    --
    I'm gonna do what I want and I'm gonna get paid -- Tom Waits
  23. Safari is not one browser by hudsucker · · Score: 2, Interesting

    What is not always realized is that there are two Safari versions.

    Safari 1.x runs on OS X 10.3 and earlier.

    Safari 2.x runs requires OS X 10.4.

    All the performance fixes go into Safari 2.x only. The only fixes for Safari 1.x are for security problems.

    I'm running OS X 10.3, and I have noticed that Safari has severe severe performance problems. I think it is caused by Flash applets, which bring it to its knees. Websites with flash applets frequently will cause 100% cpu usage. And trying to use flash based video players often can't keep up, because it is demanding more than 100% cpu.

    So now that there are so many flash ads, exploring the web is a painful experience.

      * * *

    OK, I know this is futile, but I'll try to head off the obligatory responses:

    Q. Do you really expect Apple to enhance Safari for older operating systems?
    A. I don't expect them to. But I wish they would fix the performance problems.

    Q. If Flash ads are the problem, why don't you block them?
    A. The ads pay for the web sites.

    Q. Why don't you upgrade to OS X 10.4?
    A. Because that would break certain other software needed for work.

    Q. Why don't you use another browser?
    A. I do.

    Q. Why don't you just get a get a new, faster computer?
    A. Because I keep expecting Apple to release a new model, in between a Mac mini and a Mac Pro.