mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Andrew Morton <akpm@osdl.org>
Cc: rjw@sisk.pl, linux-kernel@vger.kernel.org, hugang@soulinfo.com
Subject: Re: swsusp: use non-contiguous memory on resume
Date: Fri, 4 Mar 2005 11:21:21 +0100	[thread overview]
Message-ID: <20050304102121.GG1345@elf.ucw.cz> (raw)
In-Reply-To: <20050304021347.1b3e0122.akpm@osdl.org>

Hi!

> > Subject: non-contiguous pagedir for resume
> > 
> >  This fixes problem where we could have enough memory but not in
> >  continuous chunk, and resume would fail.
> 
> It seems to do more that that?  What's all the assembly stuff?
> 
> General point: this changlog entry doesn't describe the problem and it
> doesn't describe how the patch fixes that problem.  It's a model
> how-not-to ;)

Sorry.

Problem is that pagedir is allocated as order-8 allocation on resume
in -mmX (and linus). Unfortunately, order-8 allocation sometimes
fails, and for some people (Rafael, seife :-) it fails way too often.

Solution is to change format of pagedir from table to linklist,
avoiding high-order alocation. Unfortunately that means changes to
assembly, too, as assembly walks the pagedir.

[Is it better now?]

> >  --- linux-mm/kernel/power/swsusp.c	2005-02-28 01:14:08.000000000 +0100
> >  +++ linux.middle/kernel/power/swsusp.c	2005-02-28 21:29:06.000000000 +0100
> >  @@ -241,7 +241,7 @@
> >   	swp_entry_t entry;
> >   	int error = 0;
> >   
> >  -	entry = get_swap_page(NULL, swp_offset(*loc));
> >  +	entry = get_swap_page();
> 
> Something's gone wrong here.  In -mm, get_swap_page() takes two args and in
> -linus it takes zero args.

Aha, okay, I guess I'll have to wait for resync between submitting
these. Forget the resume-from-initramfs patch...

(Or maybe Rafael is willing to create -mm version and submit it
himself?)

								Pavel

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

  reply	other threads:[~2005-03-04 10:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-04  9:59 Pavel Machek
2005-03-04 10:13 ` Andrew Morton
2005-03-04 10:21   ` Pavel Machek [this message]
2005-03-04 10:51     ` Andrew Morton
2005-03-04 11:01       ` Pavel Machek
2005-03-04 11:29         ` Andrew Morton
2005-03-04 11:52           ` Pavel Machek
2005-03-04 12:00             ` Rafael J. Wysocki
2005-03-04 12:30               ` Pavel Machek
2005-03-04 11:09       ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050304102121.GG1345@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=akpm@osdl.org \
    --cc=hugang@soulinfo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®