> Tauno Voipio <tauno.voipio@iki.fi.NOSPAM.invalid> wrote:
>
>> Did you read the pretty comprehensive responses in the
>> Linux group for exactly the same question?
>
> Which "the Linux group" are you refering to?
>
> (I'd like to read the responses too and a quick google search
> didn't turn up any responses from you)
One more reason not to rely on Google for Usenet. I understand
they can't handle cross-posts at all. The articles just disappear
from all but one group.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Reply by Niels Kristian Jensen●July 14, 20052005-07-14
Tauno Voipio <tauno.voipio@iki.fi.NOSPAM.invalid> wrote in
news:4UsBe.138$3J3.26@read3.inet.fi:
>> Which "the Linux group" are you refering to?
>>
>> (I'd like to read the responses too and a quick google search didn't
>> turn up any responses from you)
>>
>
> comp.os.linux.embedded, headers:
Thank you very much, Tauno.
Best regards,
Niels Kristian Jensen
Reply by Tauno Voipio●July 14, 20052005-07-14
Niels Kristian Jensen wrote:
> Tauno Voipio <tauno.voipio@iki.fi.NOSPAM.invalid> wrote in news:GfdBe.238
> $k51.137@read3.inet.fi:
>
>
>>Did you read the pretty comprehensive responses in the
>>Linux group for exactly the same question?
>
>
> Which "the Linux group" are you refering to?
>
> (I'd like to read the responses too and a quick google search didn't turn
> up any responses from you)
>
Reply by Niels Kristian Jensen●July 14, 20052005-07-14
Tauno Voipio <tauno.voipio@iki.fi.NOSPAM.invalid> wrote in news:GfdBe.238
$k51.137@read3.inet.fi:
> Did you read the pretty comprehensive responses in the
> Linux group for exactly the same question?
Which "the Linux group" are you refering to?
(I'd like to read the responses too and a quick google search didn't turn
up any responses from you)
--
DYT ikke ved E-mail...
Reply by Tauno Voipio●July 13, 20052005-07-13
vinaynk@gmail.com wrote:
> Hello
>
> I am little confused about the memory managent in Embedded Linux. My
> understanding is that, one of the properties of embedded OS it
> predictability. And the demand-paging/swapping is something that brings
> in un-predictability.
>
> But in practical situations how is demand-paging handled in embedded
> linux ? Is it disabled? Are all the pages needed by a process loaded
> earlier itself??
>
> Is MMU used in such embedded devices? Can we have a system where MMU is
> enabled but demand-paging/swapping is disabled ?
>
> Just how does the whole thing work in embedded Linux system like a
> mobile phone????
Did you read the pretty comprehensive responses in the
Linux group for exactly the same question?
Next time, please, cross-post instead of multi-posting,
and think twice about the proper groups.
For the group: the OP got good answers, but he seems
to ignore them.
--
Tauno Voipio
tauno voipio (at) iki fi
Reply by Grant Edwards●July 13, 20052005-07-13
On 2005-07-13, Kelly Hall <khall@acm.org> wrote:
>> But in practical situations how is demand-paging handled in
>> embedded linux ? Is it disabled? Are all the pages needed by a
>> process loaded earlier itself??
>
> If you don't have any swap enabled, then you don't have to
> worry about pages gone missing.
I think you still have to worry about demand-paging as
executable pages are read from "disk" as page faults occur. Of
course, there are ways to get around that by pre-loading and
then locking a process in memory.
If you're using a RAM disk, is the kernel smart enough to use
read-only (e.g. text segment) pages from the file "in-place"?
There will also be page-faults due to copy-on-write attributes
on data and bss pages in newly forked processes.
>> Is MMU used in such embedded devices? Can we have a system
>> where MMU is enabled but demand-paging/swapping is disabled ?
>
> In the Linux systems I've developed we generally had MMUs
> built in to the CPU. We rarely configured any swap space, and
> sized system RAM much larger than our worst-case memory needs.
Same here. The examples I'm thinking of booted from Compact
Flash and didn't have swap enabled.
--
Grant Edwards grante Yow! RELATIVES!!
at
visi.com
Reply by Kelly Hall●July 13, 20052005-07-13
vinaynk@gmail.com wrote:
> But in practical situations how is demand-paging handled in embedded
> linux ? Is it disabled? Are all the pages needed by a process loaded
> earlier itself??
If you don't have any swap enabled, then you don't have to worry about
pages gone missing. On the other hand, if something tries to allocate
more memory than is physically available, malloc will fail and the code
will have to deal with that failure gracefully.
> Is MMU used in such embedded devices? Can we have a system where MMU is
> enabled but demand-paging/swapping is disabled ?
In the Linux systems I've developed we generally had MMUs built in to
the CPU. We rarely configured any swap space, and sized system RAM much
larger than our worst-case memory needs.
In the one box where there was swap enabled, we actually allocated a
small ram disk and then swapped to that. Crazy, yes, but we were
working around a bug in the Linux 2.2.18 (?) VM routines - that code
really really expected to have swap available even if it never used it.
> Just how does the whole thing work in embedded Linux system like a
> mobile phone????
I've never built a mobile phone, and if I did I doubt I'd run Linux on it.
Kelly
Reply by ●July 13, 20052005-07-13
Hello
I am little confused about the memory managent in Embedded Linux. My
understanding is that, one of the properties of embedded OS it
predictability. And the demand-paging/swapping is something that brings
in un-predictability.
But in practical situations how is demand-paging handled in embedded
linux ? Is it disabled? Are all the pages needed by a process loaded
earlier itself??
Is MMU used in such embedded devices? Can we have a system where MMU is
enabled but demand-paging/swapping is disabled ?
Just how does the whole thing work in embedded Linux system like a
mobile phone????
thanx
Vinay