Google Groups Home
Help | Sign in
How can uClinux work with no MMU ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
probl...@gmail  
View profile
 More options Jul 18, 10:34 pm
Newsgroups: linux.dev.kernel, comp.os.linux.misc
From: problems@gmail
Date: Fri, 18 Jul 2008 21:34:52 -0500
Local: Fri, Jul 18 2008 10:34 pm
Subject: How can uClinux work with no MMU ?
I'm interested in linux on minimum electric consumption hardware.
Surely, linux being a pre-emptive multi-tasking OS *MUST* have
substantial memory-management ?

So what can uClinux do ?

Isn't the MMU facility based on suitable hardware, too ?

==TIA.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Edwards  
View profile
 More options Jul 19, 12:14 am
Newsgroups: linux.dev.kernel, comp.os.linux.misc
From: Grant Edwards <gra...@visi.com>
Date: Fri, 18 Jul 2008 23:14:04 -0500
Local: Sat, Jul 19 2008 12:14 am
Subject: Re: How can uClinux work with no MMU ?
On 2008-07-19, problems@gmail <problems@gmail> wrote:

> I'm interested in linux on minimum electric consumption
> hardware. Surely, linux being a pre-emptive multi-tasking OS
> *MUST* have substantial memory-management ?

It depends.

> So what can uClinux do ?

It can do much of what "normal" linux can do.

> Isn't the MMU facility based on suitable hardware, too ?

No clue what you're asking.

Try reading a little:

  http://www.uclinux.org/
  http://en.wikipedia.org/wiki/%CE%9CClinux

--
Grant Edwards                   grante             Yow!  My forehead feels
                                  at               like a PACKAGE of moist
                               visi.com            CRANBERRIES in a remote
                                                   FRENCH OUTPOST!!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Riches  
View profile
 More options Jul 19, 12:54 am
Newsgroups: linux.dev.kernel, comp.os.linux.misc
From: Robert Riches <spamtra...@verizon.net>
Date: 19 Jul 2008 04:54:01 GMT
Local: Sat, Jul 19 2008 12:54 am
Subject: Re: How can uClinux work with no MMU ?
On 2008-07-19, Grant Edwards <gra...@visi.com> wrote:

> On 2008-07-19, problems@gmail <problems@gmail> wrote:

>> I'm interested in linux on minimum electric consumption
>> hardware. Surely, linux being a pre-emptive multi-tasking OS
>> *MUST* have substantial memory-management ?

> It depends.

The Amiga 500 and 1000 computers I used to have at home ran
an operating system that was fully "pre-emptive
multi-tasking" without any memory management.  There was
_NO_ protection from one task corrupting the memory of
another process.

--
Robert Riches
spamtra...@verizon.net
(Yes, that is one of my email addresses.)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Black  
View profile
 More options Jul 19, 1:13 am
Newsgroups: linux.dev.kernel, comp.os.linux.misc
From: Michael Black <et...@ncf.ca>
Date: Sat, 19 Jul 2008 01:13:36 -0400
Local: Sat, Jul 19 2008 1:13 am
Subject: Re: How can uClinux work with no MMU ?

On Fri, 18 Jul 2008, problems@gmail wrote:
> I'm interested in linux on minimum electric consumption hardware.
> Surely, linux being a pre-emptive multi-tasking OS *MUST* have
> substantial memory-management ?

> So what can uClinux do ?

It can run on hardware that doesn't have an MMU.  That's less and less of
an issue, but even a decade ago a lot of hardware didn't have one which
meant you couldn't use that Mac LC II for Linux.

I ran a mult-user/multitasking operating system back in 1984, Microware's
OS-9.  Not a bit of MMU, though OS-9 level 1 did require an MMU.
Microware had previously done a tiny multitasking monitor/OS for the 8bit
6800.

I have a book about the 68000, and it has a small mutlitasking monitor/OS
in it.

Multitasking doesn't require memory management, it just works
better/faster.

    Michael


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
The Natural Philosopher  
View profile
 More options Jul 19, 1:47 am
Newsgroups: linux.dev.kernel, comp.os.linux.misc
From: The Natural Philosopher <a...@b.c>
Date: Sat, 19 Jul 2008 06:47:58 +0100
Local: Sat, Jul 19 2008 1:47 am
Subject: Re: How can uClinux work with no MMU ?

Better/slower.

All that preemptive multitasksing requires is that each process has its
own code space, and data space and most importaantly stack space.

You ca write your alloc() stuff to deal with large allocations on the
heap etc, but the allocatin of static variables and dynamic variables is
done on a area of ram that you need to reserve on a per process basis.
So any fork() has to know how much memory to grab for it..if thats done
by calls to your alloc, then its not too bad. Hey you have just made
your own MMU! In software.

However if memory gets fragmented, you are in trouble, since the stack
and heap MUST be contiguous..a hardware MMU can fake that even if in
reality they are not.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Halliwell  
View profile
 More options Jul 19, 3:13 am
Newsgroups: linux.dev.kernel, comp.os.linux.misc
From: Andrew Halliwell <spi...@ponder.sky.com>
Date: Sat, 19 Jul 2008 08:13:46 +0100
Local: Sat, Jul 19 2008 3:13 am
Subject: Re: How can uClinux work with no MMU ?

Michael Black <et...@ncf.ca> wrote:
> Multitasking doesn't require memory management, it just works
> better/faster.

And safer...

--
|   spi...@freenet.co,uk   | "Are you pondering what I'm pondering Pinky?"   |
|   Andrew Halliwell BSc   |                                                 |
|            in            | "I think so brain, but this time, you control   |
|     Computer Science     |  the Encounter suit, and I'll do the voice..."  |


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
The Natural Philosopher  
View profile
 More options Jul 19, 6:42 am
Newsgroups: linux.dev.kernel, comp.os.linux.misc
From: The Natural Philosopher <a...@b.c>
Date: Sat, 19 Jul 2008 11:42:16 +0100
Local: Sat, Jul 19 2008 6:42 am
Subject: Re: How can uClinux work with no MMU ?
Andrew Halliwell wrote:
> Michael Black <et...@ncf.ca> wrote:
>> Multitasking doesn't require memory management, it just works
>> better/faster.

> And safer...

True. You get a segfault instead of crashing the entire system ;-)

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean-David Beyer  
View profile
 More options Jul 19, 8:39 am
Newsgroups: linux.dev.kernel, comp.os.linux.misc
From: Jean-David Beyer <jeandav...@verizon.net>
Date: Sat, 19 Jul 2008 12:39:51 GMT
Local: Sat, Jul 19 2008 8:39 am
Subject: Re: How can uClinux work with no MMU ?
problems@gmail wrote:
> I'm interested in linux on minimum electric consumption hardware. Surely,
> linux being a pre-emptive multi-tasking OS *MUST* have substantial
> memory-management ?

IIRC, the PDP-11/20 that UNIX was developed on had no MMU. I had a PDP-11/45
with 48K Bytes of RAM and because of the users I had and the applications
they needed to run, we got Ken (and maybe Dennis) to revise the kernel to
use the MMU. This was long ago when the UNIX kernel was written in assembler
and the maximum file size was 2^16 bytes.

--
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 08:35:01 up 23 days, 17:55, 4 users, load average: 4.37, 4.25, 4.19


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google