LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-20-2010, 02:10 AM   #1
harinathreddy.c
LQ Newbie
 
Registered: Dec 2010
Posts: 22

Rep: Reputation: 0
Virtual Memory concept in Embedded Sysytem


Hi,

This is Harinath.

We have designed a board with Cirrus Logic(arm) processor, A Flash memory and some other peripherals have been connected to that.

While building kernel we have selected MMU support.
We have written few custom drivers for keypad,LED,LCD.

But i would like to know how virtual memory mechanism can be helpful here even though there is no any hard disk has been connected.

If it helpful,where will be the virtual memory reside.

Thanks & Regards,
Harinath
 
Old 12-21-2010, 11:08 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

As I'm sure you know, "virtual memory" != "swap". Just because you don't have a swap space, or just because all active processes can fit in available RAM, does *not* mean you're not using "virtual memory".

So far, so good?

Q: So why bother with "virtual memory" if you're not using swap? What's the point?

A: There are literally HUNDREDS of compelling advantages. Including:

1) Increased program security (a buggy program can't easily "step on" a well-behaved neighbor)

2) That's just the way it works (Linux, Windows and MacOS are all "virtual memory" systems
wherein "kernel code" executes in a different, "privileges" address space from "user code").

It's worth noting that BOTH kernel space and user space exist in VIRTUAL memory

This link might help:

Quote:
http://www.cs.ucla.edu/~kohler/class...tes/lec12.html

VM Advantages
+ Flexible Allocation
+ Isolation
+ Illusion of very large memory
+ Performance

“Any problem in CS can be solved with another layer of indirection” - David Wheeler
...
 
Old 12-21-2010, 04:20 PM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,064

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
Quote:
Originally Posted by harinathreddy.c View Post
But i would like to know how virtual memory mechanism can be helpful here even though there is no any hard disk has been connected.
Well, you don't have to have a hard disk for virtual memory to be useful, but you do have to have some kind of memory hierarchy (even if only two levels). If you don't, then you might as well just have a a flat, directly addressed, memory space, and for that you don't need an mmu.

On the other hand, if you do have a memory hierarchy using virtual memory can make life easier in minimising the amount of 'special case' stuff you have to do, if you don't have the memory to load everything in at once.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Application Virtual address space memory allocation - memory does not get free chamara82 Linux - General 4 01-01-2011 09:19 PM
pthreads virtual memory usage -- memory is not freed after thread exit minimol Linux - General 2 05-26-2009 02:19 AM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 05:05 AM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 01:50 PM

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

All times are GMT -5. The time now is 07:09 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration