[lkml]   [2004]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: swsusp: fix error handling in "not enough swap space"

> >I agree with you; it does sound like the process of eating memory is
> >grabbing all the swap. I can't see how it could be doing that,
> >however. If you really want to use Pavel's version, I'd suggest
> >adding some more debug statements. Perhaps print out the number of
> >swap pages free at the start of that loop.
> >
> Ok, now funny bit happends. Simple program like that:
> while(1){
> char *a=malloc(1024*1024*16);
> if (a==NULL)
> break;
> }
> can allocate only about 200MB, than exits. That's the fist thing.

That's bad. That's even without swsusp, right? Again, test on 2.6.5
and post test case. Something is probably wrong in 2.6.6-bk.

> Second one, starting KDE, and when swap usage != 0 (just to be sure
> there is no problem with any assumption), gives me loads of error
> messages (see attached file).

Can you try CONFIG_PREEMPT=n?

When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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