MAC OS X Lion performance problem - broken memory management

Starting with OS X 10.5 there are evident memory management problems in MAC OS X. The web was already then cluttered with complaints about system slowing down dramatically after some time. Back then i had slower machine, Mac Mini with 1GB RAM, so i (wrongly) concluded that it was due to inferior hardware.
Now i have 2010 MBP, core i7, 8 GB RAM, dual GPU.
Mac os X Snow Leopard was pain, but after migrating to OS X Lion, working some serious stuff on MAC started to be a nightmare.
I finally managed to reproduce the problematic scenario, so i run the test and recorded the screen, into video.
http://www.youtube.com/watch?v=u5wZwZh61_4
I run the tar+bzip command, which is basic unix stuff, on the large amount of picture files, in my Pictures/ folder. Just before start, i run the "purge" command, to delete inactive/cached program data.
You can see on the video that free memory starts to drop very fast, and inactive is constantly rising. If you take a look at "bsdtar" command, it takes only a fragment of RAM, so the problem is not in this process. You cannot say that it is a program memory leak, because then the problem would not be in inactive ram, rather in active/wired.
When the free memory dropped below 100mb, i started some apps, like Safari, iPhoto and MS Word, and you can see in the video, that it takes even minutes to start an app, when normally (when there is free RAM), it would take some 3-5 secs to load.
I run the same scenario and the same commands on my Linux Centos 6 box, no problem there ! Memory usage is some 10-20mb, no problems with cache/buffer.
The memory management must be very broken in Mac OS X !

Broken?  That's a bit harsh.
Immature?  That's perhaps a better explanation.
This paper describes Priority Paging as implemented in Solaris 2.7 back in 1998, and that's essentially what Mac OS X is in need of today:
The problem is that when pages are needed, no differentiation is made between system file cache pages and application pages, and worse, the file cache can actually steal pages needed by applications.
Finally when Dynamic Pager starts up and needs to start swapping things out, it's fairly heavy weight in operation, and causes the UI not responding cursor (aka the spinning beach ball) to appear.

Similar Messages

  • Old macbook air dual core 1.4 or 1.6 VS Mac Os X Lion performance

    what are your experience using Mac os X Lion with old mac book air ( dual core 1.4 or 1.6 )

    thanks for that info guys. I will download the 10.7.2 update and see if that fixes it.
    regarding booting into safe mode: I haven't tried that but I am able to boot the computer up normally after the crash. It's just annoying that I have to reboot it at all.

  • Problems with memory management

    Since my adoption of 10.7, I have noticed a problem that is really reminiscent of 10.2 and 10.3 of poor memory management. This is quite distressing as it has taken away from the performance of the operating system and has created many pages of VM files that are just below the engineering standards of Apple. Any suggestions along this line to clear this up would be greatly helpful. I have 3 GB of memory that is over utilized and over taxed.

    I have read a bit about the "better" memory management, but that is all in theory. In the real world, Lion eats RAM and i upgraded from 4 to 8 Gb last week, that makes all the difference. If i close all apps now, 5.5 Gb RAM is still used, and i know that has something to do with Lions special workmemory management that is supposed to work to our favour, but it doesnt! Now after upgrading, fairly cheap but nothing for mainstream people, things work the way i suppose they are meant to work, but when Windows 7 and soon 8 are working towards less RAM needed, Apple seems to say one thing and do another. That is, they claim to have a improved (superior, fantastic?) system for RAM, but in reality it eats RAM for breakfast. Now i dont haveto close one app before opening another just to avoid the little spinning ball of colours.
    Also Safari can use gigabytes of RAM on its own....not good.

  • Mac OS X Lion being a HUGE memory hog. What to do?

    I have a unibody macbook pro, screenshot of specs following and I've had a huge problem ever since I got this computer with OS X Lion just performing poorly and slowly. I was informed by a genius bar genius that having a computer switched over from another mac could have damaged permissions which could account for most/all of the performance issues so they repaired issues in store, on top of replacing the logic board based on other information, but I am still seeing problems. What can I do?
    As you can see Safari alone i susing up over half a gig of memory and I have only 2 tabs open. One is Pandora and the other is the tab to this forum. Maybe I'm overestimating my computer because it is a notebook but I have a much much older, imac with a 2.1ghz dual core system I believe and I can get away with having Photoshop, Dreamweaver Illustrator, Itunes, Safari, Firefox and Mail before I even start to notice performance issues but on this computer that wouldn't even be conceivable as it'd probablyt ake half an hour to fully open all of those programs.
    What can I do?

    Damien999, this is a screenshot of my MacBook Air with two browsers and many apps open, and shows what etresoft has asked you to produce - all processes sorted by CPU load:
    This MBA is running Safari, Firefox, iPhoto, iMovie, iTunes, Mail, Pages, plus other apps. It is running the exact same version of Lion in the exact same amount of memory as your MBP (4 GB). It can therefore be concluded that Lion and memory themselves are not the cause of your ills, as I explained earlier. More memory is only likely to mask whatever problems exist.
    The MBA is much less capable than your MBP. I have attempted many times to push its limits and have failed to experience anything remotely resembling what you have described. What I do not have though is any AV junk or whatever Splashtop is, but you haven't indicated a willingness to address those concerns. You have also ignored repeated requests for information that may help diagnose what's wrong.
    This creates the impression you are more interested in complaining than solving your problems.
    If you believe that is an unjustified conclusion I suggest you post a new, more appropriately worded question. There are plenty of knowledgable people willing to help.

  • New Mac Mini with Lion Video Problem With Dell E228WFP monitor

    Just purchased a new mini Mac 2.3 with Lion pre installed.  I connected to my old Dell E228WFPI monitor via the Mini Display to VGA adapter.  The mini mac worked fine for an hour until I put it to sleep.  It would not rewake.  After rebute the gray screen and apple logo appear with clock, but after clock screen to black and monitor goes to power saver mode.  Took unit to apple store twice and could not resolve problem by changing resolution or other methiods.  Finally, we learned that the system works fine using Belkin HDMI to DVI cable.  This Dell Monitor had DVI connector.  Hope this helps...

    How can a computer that's been turned off (and I mean completely OFF) get a network request? Only a sleeping computer should react to such a request. If you're sure you shut down (Apple Menu, Shut Down), then only an internal power supply or logic board problem should cause this. The only way it could be software is if Lion is not shutting down the computer but is instead putting it to sleep. Is it a new Mac Mini? If so, you should have it replaced or repaired.

  • Logic 9 + Mountain Lion = Performance Problems

    Hi,
    After months of debating to upgrade to Mountain Lion, I did it (and regret it like iOS 6).
    I'm just wondering if anyone gets the issue with Logic 9, where it works for around an hour no problems, then the CPU meter goes mental and causes glitching in the audio no matter what I/O buffer size I choose, or what sample rate my projects in, OR how many plugins/instruments I have open?
    It's really starting to affect my clients as to solve the problem the OS needs a full reboot.
    I am fully updated in Software Update and it worked perfectly until Mountain Lion.
    Hope there is a solution!
    Tim

    Your question is too vague... More details are required...

  • Mac OS X Lion: Sound problem after unplugging my headphones.

    I am running the latest Lion on my Macbook Pro. I pluged in my Beats headphone while using face time and after i unpluger the headphones the sound only work with headphones.  The hole where the headphone go has a red light coming out of it. I have looked arround the web but have not found a solution. Help????

    Hi b,
    There is a switch inside the audio jack that may be stuck. Try gently inserting an audio plug, gently wiggling it, and then removing the audio plug.

  • Hi, i have upgraded my mac to OS Lion. mail problem

    now my mail does not work. i get a massage: tht i have mail 4.4, and that i can't use version application mail with this version of mac osx
    Please Please help me.
    thanks,

    thansk for you answer, but i have mail in my Applications foler, and when i try to open it, it gives me the same answer: "you have mail 4.4". i think i have to upgred it. how do i do it?
    thanks,

  • Mac OS X Lion - Crash problems

    Hi, it often happens that my computer's blocking after boot. This since I upgraded to Lion. It shows the dock and a few moments later compare the colored circle instead of arrow and the computer stop to work. I tried with disk utility, the permission repair and the disk repair, but they doesn't had effect. What can I do?
    P.s. the first time I installed Lion, the installation process, didn't ended normally. I must had reboot computer with the power off button because was at 100% but didn't run

    Did you reinstall lion?

  • Mac OS X Lion 10.7.5

    Hi Guys/Ladies,
    What is the last operating system available for OS X Lion?
    Does anybody knows about incompatibility of OS X Lion with Kespersky? It seems like, Kespersky has resloved the issues according to the recent (2014) information provided.
    Does anybody recommends any other security software?
    Thanks

    Uninstall Kaspersky, you don't need it and it is garbage software that can slow down your Mac and cause other performance problems. 10.7.5 is the latest Lion and I don't think they will be coming out with any new updates besides security updates. Look to see if your Mac can upgrade to Mountain Lion or Mavericks.
    OS X Mountain Lion system requirements
    To install Mountain Lion, you need one of these Macs:
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Xserve (Early 2009)
    Your Mac needs:
    OS X v10.6.8 or OS X Lion already installed
    2 GB or more of memory
    8 GB or more of available space
    To install Mavericks, you need one of these Macs:
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later),
    MacBook Pro (15-inch or 17-inch, Mid/Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mountain Lion, Lion, or Snow Leopard v10.6.8 already installed
    2 GB or more of memory
    8 GB or more of available space

  • Why i can't full screen my apps in my display?? with the mac os x lion, why i can't full screen my apps in my display?? with the mac os x lion

    i have a cinema display and i just downloaded the new mac os x lion. the problem is that i can't use full screen with my display, when i push the full screen button the app moves to my macbook, but i want it to stay at the display.

    It appears that the full-screen display will only work on the display that has the menu bar.
    You can switch the menu bar to your external display by going to Solid Apple -> System Preferences -> Displays, then Arrangement.
    Grab the menu bar and drop it on the icon representing your external display.
    When you full screen an app it should then full screen on the Cinema display.
    I wish it would just full screen on the display the window is on, but that is evidently not the way it was designed to work.

  • Memory management in jelly bean xperia tablet s and performance issues

    Most used apps are always in memory.
    while recent apps few remain in memory untill memory is full.
    this is how memory management is supose to work.
    pretty much same as windows 7
    but if this true then why are games lagging ?
    http://www.youtube.com/watch?v=S3TwBlW5ibk
    When their not enough memory games i suspect lagging.
    if their not enough memory recent apps getting killed to free up ram.
     why does't this happen ?
    And why are their apps in memory that i never use ?
    tv sideview never use why its in memory ?
    social life again never use again using memory
    reader widget again using ram again never use at all
    music unlimited again in memory never actualy use
    Like i say'd most used apps are in memory all the time while rest is in cache.
    But my most used apps are never in ram untill i start them
    now if disabled lot apps my tablet become much faster respondsive.
    Can sony plz plz plz plz fix memory management stop saying you did ?
    You maybe reduced random shutdowns by like 90% or 95% perhaps even 99.99%
    Before random shutdowns happend because of broken memory management, which obviously still broken as i see lag in games
    sony apps use way to much ram, stop treating it like a computer with infinity amount of ram

    I rooted my tablet, and when looking at the processor speed in SetCPU, Sony uses a governor for power management that makes the tablet run jagged... I changed the power governor to ondemand, and got MUCH better smoothness and performance, while not sacrificing my battery life. You should try it out, maybe that'll help with games and such.

  • Mac OS X Lion and Java7 + JavaFX2.1 performance issues

    Currently I'm using the JavaFX 2.1 GA Build with Mac OS X Lion (10.7.3) on my MacBook Pro (2.33 GHz Intel Core 2 Duo, 4GB 667 MHz DDR2 SDRAM, ATI Radeon X1600 256 MB) an run into some performance and ui problems. The overall rendering framerate is arround ~30fps (which is normally 60fps on my desktop computer) and if I try to resize the main window the window starts to flicker and I get the following exception:
    Glass detected outstanding Java exception at -[GlassRunnable run]:src/com/sun/mat/ui/GlassApplication.m:163
    Exception in thread "AWT-AppKit" java.lang.NullPointerException
    at com.sun.glass.ui.mac.MacView._uploadPixels(MacView.java:72)
    at com.sun.glass.ui.View.uploadPixels(View.java:706)
    at com.sun.prism.j2d.J2DPresentable$Glass$1.run(J2DPresentable.java:99)So, how can I avoid the flickering and the performance drop? Any suggestions?

    2.1 system requirements =>
    http://docs.oracle.com/javafx/2/system_requirements_2-1/jfxpub-system_requirements_2-1.htm
    For JavaFX applications to take advantage of the new hardware acceleration pipeline provided by JavaFX, your system must feature one of a wide range of GPUs currently available in the market. Table 1 lists the graphics cards that have been tested with JavaFX. If your system does not support hardware acceleration, then JavaFX uses the Java2D software pipeline.
    For Mac OS X, the following standard Apple hardware graphics chips provide the required support:
    - Intel HD Graphics 3000 processor with 288MB of DDR3 SDRAM shared with main memory
    - AMD Radeon HD 6630M graphics processor with 256MB of GDDR5 memoryYour graphics card is not on that list, so JavaFX is falling back to a software pipeline, which does not work that well for you. You may not be able to resolve some performance issues when using a software pipline. You can log an issue at http://javafx-jira.kenai.com to request the NullPointerException be fixed - as that should not occur in any case and is a bug.

  • Sluggish Flash Builder 4.5.1 performance on Mac OS X Lion

    I recently acquired an iMac with Core i7 3.4GHz CPU, 8GB of RAM.  The system is brand new with nothing but Flash Builder installed.  I have similar setup on Windows which is running on an 3-yo laptop sporting Win7 x64, 1.6GHz low voltage Core 2 Duo CPU and 8GB of RAM.  Since the laptop is my primary computer, so it is constantly running other apps such as Outlook, Doc, etc.
    My project consists of 3 library projects and two application projects on Mac.  I have set the IDE to turn off automatic build as building the application takes more than a few seconds.  To my surprise, I notice any changes made to the application or library, Mac OS X takes significantly longer time to compile the application.
    I wonder if this is a known issue on Mac OS X Lion, or if there is anyway to improve Flex compiler performance on Mac.
    Tangent

    Yes, I have EXACTLY the same problem - except that my project is much larger and FB on Lion never gets to finish!
    Going back to Snow Leopard would be a big bind - anyone in adobe care to shed some light on this?

  • Mac OS X Lion Problems (Sound, Resolution, Missing Partition, and Crashes)

    Ohia everybody! So recently I installed Mac OS X Lion (GM) on my Mac Mini. It's been installed for about 2 weeks, but I quickly noticed a couple of problems with it.
    Problem 1 - Screen Resolution:
    When I had Snow Leopard installed and I held alt to switch into Windows, the menu that appeared to let you switch partitons resolution was correct. Now it seems to be 800x600. Same thing with the boot screen with the Apple logo. When the actual OS is booted up, the resolution is correct (1600x900). Why is it doing this with Lion and now when I had Snow Leopard?
    Problem 2 - Windows Partition:
    Before I installed Lion, I had a Windows partition set up using BootCamp. I was able to see the Windows partition on my Macs desktop as well as my Mac partiton. Now it doesn't show up at all, and when I go to Disk Utility, it shows up as BOOTCAMP, and its greyed off. When I click on it and try to mount it, it just said that it couldn't be mounted. Nothing more. I can still boot into it just fine, but I can't view files, which is quite useful when transfering files between the operating systems.
    Problem 3 - Speakers Buzzing:
    On Snow Leopard, when I went to play a sound, the speakers were completely quiet and the sound came out nicely. Now, the speakers will be quiet, and when I get a notification or something, the speakers will have a quiet buzzing sound and will continue buzzing for a few minutes after the sound is over. When I play another sound, they will start buzzing again. It never used to do this before Lion, so I'm sure its not the speakers. Hopefully someone has any info on this because I'm clueless.
    Problem 4 - Safari Crashes:
    Last problem! Sometimes on Lion (not on Snow Leopard), if I leave Safari open for a little bit, it will randomly crash. It usually doesn't do it while I'm browsing, but if I'm uploading pictures or videos and I just leave it open, I will come back to my computer and it will say safari crashed.
    Note:
    I always keep my computer up to date, and have googled all of these problems before with no help. Hopefully someone get help me fix any of these problems.

    So I am not the only one with this issue. The sound of my imac g5 sounds buzzing as well. I am hoping for a fix from Apple soon.

Maybe you are looking for

  • New MBP and 24" ACD

    I found this post on another forum and was interested to know if anyone on here has similar issues, I am thinking of buying this combo "I previously owned the "first generation" of unibody MacBook Pro when it was released back in 2008. I purchased 24

  • Need to make a print button in indesign

    hi I need to make a print button in indesign for a brochure. I have made several buttons by using the create button toll but there is no 'print' option in the list of behaviours. can anyone help me with this please. The final output is a pdf and the

  • File Name Changes

    Can someone tell me why Adobe adds a '-1' to the end of the file name every time I move a file? Thanks

  • Master html document?

    I am wondering if it is possible to create a 'master html' document that is inherited by all of the other pages on the site. By that I mean, a way to make any changes to index.html apply to all other pages. So that if I have to change something on in

  • Filtering by Calendar versus Date

    Hi All, So, we can filter on Calendar, which shows a nice graphical representation of when we took our pictures. Click on a highlighted date, and see all the photos from that *one specic* date. However, to see, for instance, everything from a month (