Go Back   MacRumors Forums > Apple Systems and Services > Windows, Linux & Others on the Mac

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 27, 2013, 08:27 PM   #1
RedCroissant
macrumors 68000
 
RedCroissant's Avatar
 
Join Date: Aug 2011
Location: Arizona
Is Linux better at memory management than XP?

I am wondering whether or not Ubuntu is better at memory management based solely off my experiences with both Ubuntu and XP running in virtualization via Virtual Box. When I run XP, my RAM slowly fades away and then I have more than 2GB of inactive memory. When I'm running Ubuntu, my RAM usage is consistent and my resources on OS X Lion are not heavily diminished.
__________________
Welcome to the Grid, Program.

27" iMac, 3.2GHz i5, 16GB RAM, 3TB HDD; 32GB iPad 1 WiFi+3G; 30GB iPod Video 5G

Last edited by RedCroissant; Jan 28, 2013 at 01:18 AM.
RedCroissant is offline   0 Reply With Quote
Old Jan 28, 2013, 06:08 AM   #2
maflynn
Moderator
 
maflynn's Avatar
 
Join Date: May 2009
Location: Boston
I'd say Linux, Unix (and by way OSX) are superior at memory management then Windows.
__________________
~Mike Flynn
maflynn is offline   0 Reply With Quote
Old Jan 28, 2013, 10:22 AM   #3
RedCroissant
Thread Starter
macrumors 68000
 
RedCroissant's Avatar
 
Join Date: Aug 2011
Location: Arizona
Quote:
Originally Posted by maflynn View Post
I'd say Linux, Unix (and by way OSX) are superior at memory management then Windows.
Thank you for your response. I wasn't sure if my experience with both of them through virtualization was enough to make that determination, but I'm glad that it seems to be correct.
__________________
Welcome to the Grid, Program.

27" iMac, 3.2GHz i5, 16GB RAM, 3TB HDD; 32GB iPad 1 WiFi+3G; 30GB iPod Video 5G
RedCroissant is offline   0 Reply With Quote
Old Feb 1, 2013, 04:02 AM   #4
Dr. McKay
macrumors 6502a
 
Join Date: Jan 2010
Location: Belgium, Europe
Anything's better than XP at memory management
__________________
I had been eating Apples for 15 years and I was getting a little tired of them... So all I'm eating now is fish...
Dr. McKay is offline   0 Reply With Quote
Old Feb 5, 2013, 12:00 PM   #5
err404
macrumors 68000
 
Join Date: Mar 2007
It depends on what you mean by "better". When comparing a ten year old Linux kernel of the same era as Windows XP, you will see both have different strengths and weaknesses. While Linux will be a bit more resilient to memory related faults, it was also less complex and generally slower (not the OS, but specific memory allocations and paging functions). Basically Windows makes more assumptions on how an app will behave in order to anticipate its needs. Unfortunately this occasionally leads to mistakes where the wrong actions take place. This can lead to memory being lost where neither the application nor OS realizes that it is still available, or crashes when the OS and application have a disconnect for how a block of RAM can be accessed.
Like most stability issues in windows, they are not due to deficiencies in the kernel design, but rather are hard coded exceptions to the protections otherwise offered by the by the NT kernel. For example the video driver in XP ran as a kernel level process. While this saves time on mode switching, it creates a point of failure that the kernel otherwise wouldn’t have allowed (BSOD). Linux on the other hand took a simpler approach and did not have these exceptions. In general this contributed to Linux based machines from 10 years ago struggling more with video intensive tasks like full screen HD video playback and 3D rendering (less mature drivers didn’t help either).
In modern Windows, the areas of potential contention have been greatly reduced, allowing for the optimized performance without compromising stability.
err404 is offline   0 Reply With Quote
Old Feb 5, 2013, 12:20 PM   #6
RedCroissant
Thread Starter
macrumors 68000
 
RedCroissant's Avatar
 
Join Date: Aug 2011
Location: Arizona
Quote:
Originally Posted by err404 View Post
It depends on what you mean by "better". When comparing a ten year old Linux kernel of the same era as Windows XP, you will see both have different strengths and weaknesses. While Linux will be a bit more resilient to memory related faults, it was also less complex and generally slower (not the OS, but specific memory allocations and paging functions). Basically Windows makes more assumptions on how an app will behave in order to anticipate its needs. Unfortunately this occasionally leads to mistakes where the wrong actions take place. This can lead to memory being lost where neither the application nor OS realizes that it is still available, or crashes when the OS and application have a disconnect for how a block of RAM can be accessed.
Like most stability issues in windows, they are not due to deficiencies in the kernel design, but rather are hard coded exceptions to the protections otherwise offered by the by the NT kernel. For example the video driver in XP ran as a kernel level process. While this saves time on mode switching, it creates a point of failure that the kernel otherwise wouldn’t have allowed (BSOD). Linux on the other hand took a simpler approach and did not have these exceptions. In general this contributed to Linux based machines from 10 years ago struggling more with video intensive tasks like full screen HD video playback and 3D rendering (less mature drivers didn’t help either).
In modern Windows, the areas of potential contention have been greatly reduced, allowing for the optimized performance without compromising stability.
Thank you for that awesome response!
__________________
Welcome to the Grid, Program.

27" iMac, 3.2GHz i5, 16GB RAM, 3TB HDD; 32GB iPad 1 WiFi+3G; 30GB iPod Video 5G
RedCroissant is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Windows, Linux & Others on the Mac

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Optimizing memory management activate OS X 10.8 Mountain Lion 15 Jun 23, 2013 08:07 PM
Memory management is confusing! nashyo iPhone/iPad Programming 1 Mar 2, 2013 07:33 PM
Improved memory management brijazz OS X 10.8 Mountain Lion 18 Jul 28, 2012 12:17 PM
Memory Management StuffMattSays Mac OS X 10.7 Lion 12 Jul 3, 2012 02:48 PM
iOS memory management. Tumbleweed666 iPhone 9 Jun 26, 2012 11:07 PM

Forum Jump

All times are GMT -5. The time now is 11:28 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps