Re: How does Debian load the kernel modules



Matus UHLAR - fantomas wrote:

On 29.09.06 16:46, Hernán Freschi wrote:

I wonder what happens to modules when the system needs RAM? I know Windows stupidly swaps the System memory by default (unless you enable the DisablePagingExecutive option in the registry). Does linux force the modules to stay in RAM or does it try to swap them when it's RAM-hungry?


I think linux does not swap kernel memory due to its "monolitic kernel"
architecture. As long as windows have microkernel architecture, it allows to
swap even the kernel.

Hard to say which is better. If the kernel space needs to be swapped,
something is very bad... but swapping out unused kernel code may make the
system go faster due to more memory available.

Well, I, for one, do not like that. The kernel is very small and unloading it from RAM means trouble. It doesn't free up that much memory to justify such an "extreme" action. (The system runs very, very slow once the Kernel, and other system processes, have been swapped).

Cheers,
Hernan


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: How does Debian load the kernel modules
    ... Does linux force the ... modules to stay in RAM or does it try to swap them when it's RAM-hungry? ... I think linux does not swap kernel memory due to its "monolitic kernel" ...
    (Debian-User)
  • Re: Kernel option: SWAP
    ... > recompiling the kernel. ... > for socalled swap devices or swap files in your kernel that are ... Linux uses is paging space) is space on the hard drive for the memory ...
    (Fedora)
  • Re: limitiation on memory allocation
    ... arrays that are considerably bigger than the physical memory size? ... Yes, upto kernel limits... ... swap space is completely separate from the rest of the equation. ... GB of memory total (for obvious reasons). ...
    (freebsd-questions)
  • Re: [ck] Re: 2.6.20-ck1
    ... > Has anyone tried booting a kernel with the various patches in question ... > when the kernel thinks it has relatively little memory ... performance improvements for these machines are based on numbers, ... Is it possible to command a program's memory usage be put into swap on ...
    (Linux-Kernel)
  • Re: Whats an oom-killer when its at home?
    ... Anyway the kernel is between a rock and a hard place when it decides to deploy the OOMK, the other choice would be to abend. ... Fedora docs say that oom-killer should pick on big niced programs first, which would make Malaria-control its prime target. ... The program is capable of oversubscribing memory all by itself: it has successfully run to completion despite expanding its heap so it occupies up to 400 MB of virtual memory despite my box only having 256 MB RAM and 1 GB of swap space. ...
    (uk.comp.os.linux)