Re: What exactly is the need to have swappable and non swappable pages



On Sep 18, 9:50 pm, MAx <mahesh1...@xxxxxxxxx> wrote:

What is the need of having non swappable pages?

Where else do you store the code to swap pages?

What is the disadvantage of *NOT* having non swappable pages?

Your system would crash the first time it swapped out something that
was needed in order to swap pages back in.

Is there any problem if Non Swappable pages were to be made
swappable...?

Yes, the system will crash.

This is a question which i came across in an interview.

The answer should be immediately obvious. If you swap out anything
that might ever be needed in order to do swapping, you're screwed.

Consider a newly-started system. It has never ever swapped any pages
back in because of low memory, so that code may get swapped out. As
soon as it needs any pages, it calls the code to swap pages back in
due to memory pressure, and *boom*. The swap code can't work until it
loads those pages. It can't load those pages because the swap code is
*in* those pages.

DS

.



Relevant Pages

  • Re: did gbde on swap destroy some boot sectors?
    ... my swap labels are the following ones... ... boot sector, ... i enabled gbde on swap... ... crash the machine disnt boot again... ...
    (freebsd-current)
  • 2.6.14.5 / swapping / killing random apps
    ... If a system with say a swap of 2GB on a fast drive and like 260MB is ... I noticed that the when swapping occurs, ... random apps start to crash. ... booted with m$ xp or freebsd but crashes do not occur even under heavy ...
    (Linux-Kernel)
  • Re: CD insert causes system crash regularly
    ... I don't have another system that I can swap the drive with right now. ... I'd find it odd that it would be overheating. ... Malke wrote: ... >> comes back up, it doesn't crash, but if the system has been running ...
    (microsoft.public.windowsxp.general)
  • Re: 2.6.14.5 / swapping / killing random apps
    ... > If a system with say a swap of 2GB on a fast drive and like 260MB is ... > actively used for swapping, could it cause certain applications to crash ... > random apps start to crash. ... > booted with m$ xp or freebsd but crashes do not occur even under heavy ...
    (Linux-Kernel)
  • Re: Sparcstation 20 problems with 2.4.27 kernel
    ... >> containing the rest of the partitiona ... > Your system WILL crash if/when you lose either of the swap ... unless you're really not using any swap at all. ... > keep on truckin' even if they lose one of their root disks. ...
    (comp.os.linux.hardware)