[lkml]   [1997]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Memory overcommitting (was Re:
> SUICIDE! No wonder Linux gets such a rap for being unreliable.  (If this is
> truely how things work. Someone please tell me this isn't so.)
> As a programmer I expect that when I have sucessfully requested memory to
> be allocated, that it really has happened. It now appears that on top of
> everything else that writing to memory at the wrong time, I could run of
> virtual memory.

Well, have you ever written a heap manager before? You allocate more
memory from the system than you need, then break it up into smaller
chunks to be allocated on demand. The system (kernel) only sees the
heap manager's allocations (big and few) not the program's allocations
(smaller and many more). Instead of lots of system calls, there are
only a couple (faster). Not to mention that the memory would be sitting
around doing nothing until some process touches it....what a waste.

Andrew E. Mileski
Linux Plug-and-Play Kernel Project
XFree86 Matrox Team

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