Re: [uClinux-dev] MMU trade-off

2009-03-31 Thread Michael Schnell
You get the ability to memory map files. Handy for some tasks. mmap() does work without an MMU. -Michael ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclin

Re: [uClinux-dev] MMU trade-off

2009-03-31 Thread Michael Schnell
... you support __thread. the latter is just a keyword to gcc to tell it to generate TLS relocs against the specified storage. If the ggc-version is not constructed to support __thread, I don't think you can tell it to do so, as gcc needs to know how to support __thread (e.g. x86 uses reg

Re: [uClinux-dev] MMU trade-off

2009-03-31 Thread Michael Schnell
but most people are naturally a bit cautious about touching GCC and Binutils, so it doesn't happen until someone is really interested or is being paid to do that specific work. As nowadays, more and more of the new archs do have MMU, I doubt we will see much more non-MMU archs with theses fea

Re: [uClinux-dev] MMU trade-off

2009-03-29 Thread Greg Ungerer
Mike Frysinger wrote: On Friday 27 March 2009 14:26:57 Lennart Sorensen wrote: On Fri, Mar 27, 2009 at 12:37:07PM -0400, Mike Frysinger wrote: lies. there are no serious limitations at all with FDPIC ELF. it is functionality equivalent to ELFs running under a MMU. Well I haven't looked at FD

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread David Howells
Lennart Sorensen wrote: > > you can memory map files without a MMU > > How? It's limited, but everything I could get to work, works. See: Documentation/nommu-mmap.txt David ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Geert Uytterhoeven
2009/3/27 Mike Frysinger : > On Friday 27 March 2009 12:15:57 Lennart Sorensen wrote: >> You also get fork().  That's a big deal to a lot of code.  Fork requires >> being able to copy an address space (preferably efficiently), which an >> MMU can help you do.  It might be possible to do without an

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Mike Frysinger
On Friday 27 March 2009 15:37:31 Jamie Lokier wrote: > Thomas Häberle wrote: > > All used CPUs have a MMU, but it is not used due to performance > > reasons as the developers state. Someone threw a number into the > > discussion and said enabling the MMU would cause performance losses > > of about

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Jamie Lokier
Sujit Karataparambil wrote: > Is it disabled in the proprietary operating system. It is an misnomer > that MMU Slows down the embedded application. > Certainly debatable. > > The key issue is do you have enough memory to turn on the MMU. Say an > 4K Memory to 256M Memory the requirements are > dif

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Jamie Lokier
Michael Schnell wrote: > > >So, only looking at processing power is only half of the story. > Agreed ! > > Even there is no real technical cause for this, most non-MMU Linux > implementations seem not to support several important features needed > for doing multithreaded: TLS, NPTL, "__tread"

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Jamie Lokier
Thomas Häberle wrote: > All used CPUs have a MMU, but it is not used due to performance > reasons as the developers state. Someone threw a number into the > discussion and said enabling the MMU would cause performance losses > of about 30-40 percent, thus if we switch to Linux at all it would > h

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Mike Frysinger
On Friday 27 March 2009 15:29:20 Jamie Lokier wrote: > Lennart Sorensen wrote: > > > lies. there are no serious limitations at all with FDPIC ELF. it is > > > functionality equivalent to ELFs running under a MMU. > > > > Well I haven't looked at FDPIC ELF since it doesn't work on m68knommu > > ye

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Jamie Lokier
Lennart Sorensen wrote: > > lies. there are no serious limitations at all with FDPIC ELF. it is > > functionality equivalent to ELFs running under a MMU. > > Well I haven't looked at FDPIC ELF since it doesn't work on m68knommu yet. > > > you cannot do fork() without virtual memory since both

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Mike Frysinger
On Friday 27 March 2009 14:26:57 Lennart Sorensen wrote: > On Fri, Mar 27, 2009 at 12:37:07PM -0400, Mike Frysinger wrote: > > lies. there are no serious limitations at all with FDPIC ELF. it is > > functionality equivalent to ELFs running under a MMU. > > Well I haven't looked at FDPIC ELF since

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Bob Amstadt
memory protection is not strictly part of the MMU. some processors implement MPU's (like the Blackfin processor) and the kernel supports it just fine. that gets you standard data/instruction rwx control. OK, I had never heard of it done that way before. That's neat. Certainly not typical of a

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Lennart Sorensen
On Fri, Mar 27, 2009 at 12:37:07PM -0400, Mike Frysinger wrote: > there are processors which implement other features that people consider part > of the MMU (like protection). virtual memory is the most significant feature. Sure. > lies. there are no serious limitations at all with FDPIC ELF.

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Mike Frysinger
On Friday 27 March 2009 12:15:57 Lennart Sorensen wrote: > On Fri, Mar 27, 2009 at 08:39:57AM +0100, Thomas H?berle wrote: > > A client is currently considering to switch Linux as operating system on > > his devices. In a recent discussion the theme "virtual memory & MMU > > usage" came up. All use

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Lennart Sorensen
On Fri, Mar 27, 2009 at 08:39:57AM +0100, Thomas H?berle wrote: > A client is currently considering to switch Linux as operating system on his > devices. > In a recent discussion the theme "virtual memory & MMU usage" came up. > All used CPUs have a MMU, but it is not used due to performance reaso

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Mike Frysinger
On Friday 27 March 2009 06:53:15 David Howells wrote: > Michael Schnell wrote: > > Even there is no real technical cause for this, most non-MMU Linux > > implementations seem not to support several important features needed for > > doing multithreaded: TLS, NPTL, "__tread" keyword in C, really use

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread David Howells
Michael Schnell wrote: > Even there is no real technical cause for this, most non-MMU Linux > implementations seem not to support several important features needed for > doing multithreaded: TLS, NPTL, "__tread" keyword in C, really user space > based FUTEX. TLS, NPTL and userspace FUTEX are all

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Sujit Karataparambil
> All used CPUs have a MMU, but it is not used due to performance reasons as > the developers state. > Someone threw a number into the discussion and said enabling the MMU would > cause performance losses of about 30-40 percent, thus if we >switch to Linux > at all it would have to be ucLinux.

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Michael Schnell
So, only looking at processing power is only half of the story. Agreed ! Even there is no real technical cause for this, most non-MMU Linux implementations seem not to support several important features needed for doing multithreaded: TLS, NPTL, "__tread" keyword in C, really user space bas

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Michael Schnell
If there are many context switches, cache flushing/reloading is the main cause of slowdown. The exact amount of slowdown depends on your application. No need for cache flushing when switching the context with "decent" cache designs (like x86). -Michael ___

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Wolfgang Mües
Thomas, On Friday 27 March 2009 08:39:57 Thomas Häberle wrote: > A client is currently considering to switch Linux as operating system on > his devices. In a recent discussion the theme "virtual memory & MMU usage" > came up. All used CPUs have a MMU, but it is not used due to performance > reason

RE: [uClinux-dev] MMU trade-off

2009-03-27 Thread Goran Bilski
] On Behalf Of Michael Schnell Sent: Friday, March 27, 2009 9:48 AM To: uClinux development list Subject: Re: [uClinux-dev] MMU trade-off > Someone threw a number into the discussion and said enabling the MMU would > cause performance losses of about 30-40 percent, thus if we switch to

Re: [uClinux-dev] MMU trade-off

2009-03-27 Thread Michael Schnell
Someone threw a number into the discussion and said enabling the MMU would cause performance losses of about 30-40 percent, thus if we switch to Linux at all it would have to be ucLinux. uCLinux does not mean "without MMU". uCLinux does support several architectures with MMU. The numbers

[uClinux-dev] MMU trade-off

2009-03-27 Thread Thomas Häberle
Hello! A client is currently considering to switch Linux as operating system on his devices. In a recent discussion the theme "virtual memory & MMU usage" came up. All used CPUs have a MMU, but it is not used due to performance reasons as the developers state. Someone threw a number into the di