LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-14-2008, 11:07 AM   #1
darren10
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Memory Management


Hi guys! I need your help here, I am doing a research on Linux Ubuntu for my assignment recently, as I know the Ubuntu is based on the Linux Kernel. And my question is, Linux;s using what kind of techniques to implement the memory management. As I know from my lecturer, there three types of techniques: single tasking with overlay, memory partitioning fixed or dynamic. I have been searching it for a long time. Can anyone answer my question? I need it very urgent please...
 
Old 09-14-2008, 11:20 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Why don't you start by setting out your understanding of the various types of memory management, as given you in your lecture. You could perhaps list that information here.

Then, you could consider the capabilities of the Linux kernel, and see which of those memory management models fits best with the way the kernel behaves. You might also list THAT analysis here.

Then, perhaps, someone could help you toward the answer you are looking for.

Wouldn't that be a much better learning experience than just having someone tell you?
 
Old 09-14-2008, 11:25 AM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
There's plenty of information on the web about Linux memory management techniques. To name a few excellent sources:
http://tldp.org/HOWTO/KernelAnalysis-HOWTO-7.html
http://www.ibm.com/developerworks/li...rary/l-memmod/

I'm not familiar with the terminology you use, maybe, as suggested above, you could elaborate what you mean by these things?
 
Old 09-14-2008, 11:28 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by darren10 View Post
As I know from my lecturer, there three types of techniques: single tasking with overlay, memory partitioning fixed or dynamic.
That's an incredibly crude way of categorizing memory management (not that I think there is any good way to form top level categories for something as multifaceted as memory management, but that set of categories is stupider than most).

Linux memory management is absolutely not "single tasking with overlay" and it is absolutely not "fixed memory partitioning".

"Dynamic memory partitioning" isn't a good way to describe Linux memory management. But it has enough range of possible meaning that you couldn't make the blanket claim it is wrong (as you could for those other two).

I hope it is your instructor, rather than you, who is being stupid or lazy about this question. If it is you, then I've provided more of an answer than is generally appropriate here for a homework question.

If the instructor is being stupid or lazy, getting a good answer to the questions here may not even be helpful. You need to pay attention in class and parrot back whatever nonsense you're being taught. If you want to understand things, maybe ask here. If you want the answer your instructor will like, you need to get it from him. The experts in this forum were not listening in your class. If you also weren't listening, try to get help from a classmate who was.

Last edited by johnsfine; 09-14-2008 at 11:33 AM.
 
Old 09-14-2008, 09:39 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
Let me see if I can help set the stage here ...

In the very earliest days of mainstream computing (for our purposes, that might be the IBM System/360, or MS-DOS...) "the operating system" created a standardized environment in which application programs could run. No longer did every single program have to carry along with it all of the 'baggage' necessary to work correctly on a particular piece of hardware: it could rely upon a faceless "operating system" to provide certain fundamental services.

In those days, "the operating system" could 'wall itself off from' the various programs that were running (in order to protect itself from being destroyed by any one of them...) but it couldn't really present to them any operating-environment that was different from the 'reality' that the hardware itself presented. Both the operating system and the application programs dealt with, and were aware of, the same hardware-imposed environment.

Crufty hacks like "overlays" were born from these then-necessary limitations...

In time, the operating-systems (like IBM's System/370 or Microsoft Windows) started solving these problems by gaining the ability to present to application programs a world-view that was different from the actual hardware. Programs could believe that "they had 'memory' entirely to themselves." They could also imagine that "they had as much 'memory' as they wanted!" The operating system, meanwhile, employed specialized hardware features to maintain that illusion.

This was a huge step forward... through the magic of advanced hardware features, combined with operating-system support, application programs could now run efficiently "in an ideal world." Crufty hacks like overlays became a thing of the past.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory management ?????? cs_raja Linux - Newbie 1 12-17-2006 11:18 AM
memory management exigent Linux - General 1 08-17-2003 08:28 PM
memory management? snow Linux - Software 7 02-12-2003 01:57 PM
Memory Management hhegab Linux - General 3 08-07-2002 10:20 PM
Memory Management mrsolo Linux - General 7 06-26-2002 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration