lkml.org 
[lkml]   [2002]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] writeback daemons
Pavel Machek wrote:
>
> Hi!
>
> > The number of threads is dynamically managed by a simple
> > demand-driven algorithm.
>
> So... when we are low on free memory, we try to create more threads... Possible
> deadlock?

Nope. The number of threads is never allowed to fall below two,
for this very reason.

If the machine is super-low on memory, attempts to start more threads
fail (usually due to the 1-order allocation for the kernel stack).
I've seen this happen. But the existing two threads are safe,
and that's plenty to get the machine out of trouble.

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

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