lkml.org 
[lkml]   [2003]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Software suspend testing in 2.6.0-test1
Pavel Machek <pavel@ucw.cz> wrote:
>
> > It would be much better to freeze kernel threads _after_ doing the big
> > memory shrink.
>
> I wanted to avoid that: we do want user threads refrigerated at that
> point so that we know noone is allocating memory as we are trying to
> do memory shrink.

freeze(threads which have task->mm)
shrink_memory();
freeze(threads which have !task->mm)

That's pretty simple.

> I'd like to avoid having refrigerator run in two phases....

The whole thing can deadlock without kernel thread services.

-
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:46    [W:0.322 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site