[lkml]   [1997]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: fork: out of memory
Pavel Machek <> writes:

> Hi!
> Seems to me that newer kernel (2.1.46) have bad problems with above
> error... Is someone else experiencing this? It is bad when running cvs
> (in way export CVSROOT=localhost:/...), cvs can not fork sometimes and
> it is _bad_.

That's caused by the new two page kernel stack/current task struct
allocation. Every process needs two consecutive pages now
(get_free_pages(2)). When your memory fragments fork() often can't
find two consecutive pages anymore. Unfortunately do_fork() doesn't
try to call the swapper to free some pages or buffers and just return


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