Hallo Patrick,
hm, nach dem Artikel ist swappen benötigt, um die Speicherstellen zu identifizieren, die nicht mehr benötigt werden.
http://lwn.net/Articles/82759/
The bigger issue remains, however: should the kernel swap out user applications in order to cache more file contents? There are plenty of arguments in favor of this behavior. Quite a few large applications set up big areas of memory which they rarely, if ever use. If application memory is occasionally forced to disk, the unused parts will remain there, and that much physical memory will be freed for more useful contents. Without swapping application memory to disk and seeing what gets faulted back in, it is almost impossible to figure out which pages are not really needed.
Mit meiner Aussage "sonst könnte er nicht feststellen, was nicht mehr benötigt wird", habe ich natürlich nicht gemeint, daß Swap etwas mit der Speicherallokation zu tun hat, sondern nur, daß dadurch sichergestellt wird, daß Speicherbereiche, die lange nicht mehr angesprochen wurden, auf Platte verlagert werden, um einen schnellen Zugriff auf häufig verwendete Speicherbereiche zu ermöglichen.
Viele Grüße, Lars