Behaviour of the VM on a embedded linux



Hi Folks,

I'm trying to figure out whats going on an embedded system I have to deal with. It's running a 2.6.24.7 kernel on 32 MBytes of RAM.
There is no swapping. There are some daemons and shells running and - a big monolithic c++ application.

The application runs a lot of pthreads on different real time priority levels. It looks like the application consumes a huge
ammount of real memory in contrast to the assumption, that large code size is no problem due to paging out pages with unused code.

I'm not so familiar with the VM internas of the Linux kernel - I only have some general ideas about systems using MMUs. So my
assumption was, that even if a application consists of a lot of code, almost all memory pages containing executable code can be
paged out in favour of pages which are needed to store data (stacks, heap, slab). I tried to figuring this out through reading in
different books like "understanding the linux kernel" but those parts I was not able to catch anywhere.

Now there is the idea, that pages which contain code of pthreads running at real time priority cannot be paged out because of the
real time demand.

Is this true?

Thanks a lot,
Marcel

PS: please CC me personaly on replies
PPS: I'm hapy about every plausible idea
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Windows XP optimization tricks
    ... small devices run a full Linux kernel. ... not the most basic part of the OS--the kernel. ... On a normal distro, the kernel is configured to enable ... That does not make it an embedded system. ...
    (comp.os.linux.hardware)
  • Re: Unix runs faster, maybe
    ... A kernel which can do hard real time is at the top of the list. ... I didn't think VMS was hard realtime. ...
    (comp.os.vms)
  • Re: RT patch acceptance
    ... > Bill, you can belittle me to your heart's content. ... you mean pervasively throughout the kernel for every system, ... should run within an interrupt plus a thread to enable if assuming ... practicality we're very close to hard real time. ...
    (Linux-Kernel)
  • Re: Newbie Question About Device Drivers
    ... I guess we are trying to achieve a more "Real Time" operating system. ... in the kernel you have access to the ... >if you can achieve what you want in user space, it is probably better to do ...
    (microsoft.public.development.device.drivers)
  • JAD and AppArmor problem
    ... during boot up that I can not modify, add or delete any AppArmor profiles. ... Has anybody booted to the rt kernel and got AppArmor ... jackd runs with real time capabilities enabled. ...
    (alt.os.linux.suse)