lkml.org 
[lkml]   [1998]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Out Of Memory in v. 2.1
Date
>    That's one thing I've always wondered about.  Why not have the system
> keep track of total memory instead of wanting to mirror memory onto
> swap? It seems to me that if you have 512mb of core and 128mb of
> swap that you've got 640mb of memory and you should be able to do
> allocations against that, since either a page will be in core or
> on the swap device.

Two reasons

1. Some (potentially quite a bit) of the memory is needed for kernel
side resources - page tables, disk cache, kernel image, network
buffers etc

2. Keeping pages both in memory and on swap is good. The swap cache
massively reduces disk reads to memory.

Alan



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.293 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site