From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Andrew Morton <akpm@osdl.org>
Cc: Pavel Machek <pavel@suse.cz>,
linux-kernel@vger.kernel.org,
Peter Williams <pwil3058@bigpond.net.au>
Subject: 2.6.9-rc2-mm[2-4]: zaphod-scheduler.patch makes swsusp incredibly slow (was: Re: 2.6.9-rc2-mm3: swsusp horribly slow on AMD64)
Date: Wed, 29 Sep 2004 23:58:54 +0200 [thread overview]
Message-ID: <200409292358.54609.rjw@sisk.pl> (raw)
In-Reply-To: <200409280123.54857.rjw@sisk.pl>
Hi,
I have verified that the odd symptoms described previously in this thread
result from the zaphod-scheduler.patch.
To show this, I took the 2.6.9-rc2-mm2 kernel, reverted the
zaphod-scheduler.patch and applied the following changes to swsusp.c:
--- a/kernel/power/swsusp.c 2004-09-29 21:45:15.000000000 +0200
+++ b/kernel/power/swsusp.c 2004-09-29 22:08:33.971404368 +0200
@@ -295,18 +295,20 @@
int error = 0;
int i;
unsigned int mod = nr_copy_pages / 100;
+ unsigned long start_time = jiffies;
if (!mod)
mod = 1;
- printk( "Writing data to swap (%d pages)... ", nr_copy_pages );
+ printk( "Writing data to swap (%d pages)... ",
nr_copy_pages );
for (i = 0; i < nr_copy_pages && !error; i++) {
if (!(i%mod))
- printk( "\b\b\b\b%3d%%", i / mod );
+ printk( "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b%3d%%, time: %3ld",
+ i / mod, (jiffies - start_time)/HZ);
error = write_page((pagedir_nosave+i)->address,
&((pagedir_nosave+i)->swap_address));
}
- printk("\b\b\b\bdone\n");
+ printk(" ... done\n");
return error;
}
Then, I obtained the following result:
Stopping tasks: ===============================|
Freeing memory... done (17507 pages freed)
PM: Attempting to suspend to disk.
PM: snapshotting memory.
swsusp: critical section:
..<7>[nosave pfn 0x582].............................................swsusp:
Need to copy 10738 pages
suspend: (pages needed: 10738 + 512 free: 120141)
..<7>[nosave pfn 0x582].............................................swsusp:
critical section/: done (10866 pages copied)
PM: writing image.
PCI: Setting latency timer of device 0000:00:02.0 to 64
PCI: Setting latency timer of device 0000:00:02.1 to 64
PCI: Setting latency timer of device 0000:00:02.2 to 64
ACPI: PCI interrupt 0000:00:06.0[A] -> GSI 5 (level, low) -> IRQ 5
PCI: Setting latency timer of device 0000:00:06.0 to 64
ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:02:01.2[C] -> GSI 11 (level, low) -> IRQ 11
swsusp: Version: 132617
swsusp: Num Pages: 130880
swsusp: UTS Sys: Linux
swsusp: UTS Node: albercik
swsusp: UTS Release: 2.6.9-rc2-mm2
swsusp: UTS Version: #4 Wed Sep 29 22:09:48 CEST 2004
swsusp: UTS Machine: x86_64
swsusp: UTS Domain:
swsusp: CPUs: 1
swsusp: Image: 10866 Pages
swsusp: Pagedir: 0 Pages
Writing data to swap (10866 pages)... 100%, time: 2 ... done
Writing pagedir (85 pages)
S|
Powering off system
Shutdown: hdc
acpi_power_off called
which is OK, IMO. However, for the vanilla 2.6.9-rc2-mm2 (with the same
changes to swsusp.c), I get:
[-- snip --]
swsusp: Version: 132617
swsusp: Num Pages: 130880
swsusp: UTS Sys: Linux
swsusp: UTS Node: albercik
swsusp: UTS Release: 2.6.9-rc2-mm2
swsusp: UTS Version: #2 Wed Sep 29 23:12:00 CEST 2004
swsusp: UTS Machine: x86_64
swsusp: UTS Domain:
swsusp: CPUs: 1
swsusp: Image: 11115 Pages
swsusp: Pagedir: 0 Pages
Writing data to swap (11115 pages)... 6%, time: 738<6>SysRq : Resetting
which should give you an idea what kind of a slowdown I was talking about
earlier.
Well, zaphod-scheduler.patch is a big patch and I know to little to be able to
figure out what's wrong with it so it causes the observed symptoms to appear.
If you can, please help me fix this.
Greets,
RJW
--
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
-- Lewis Carroll "Alice's Adventures in Wonderland"
next prev parent reply other threads:[~2004-09-29 21:56 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-25 10:14 2.6.9-rc2-mm3: swsusp horribly slow on AMD64 Rafael J. Wysocki
2004-09-25 21:33 ` Stefan Seyfried
2004-09-26 10:02 ` Rafael J. Wysocki
2004-09-26 10:10 ` Pavel Machek
2004-09-26 11:45 ` Rafael J. Wysocki
2004-09-26 13:22 ` Pavel Machek
2004-09-26 17:06 ` Rafael J. Wysocki
2004-09-26 18:34 ` Pavel Machek
2004-09-26 19:25 ` Rafael J. Wysocki
2004-09-26 20:48 ` Stefan Seyfried
2004-09-26 22:05 ` Rafael J. Wysocki
2004-09-26 22:41 ` Pavel Machek
2004-09-25 23:40 ` Pavel Machek
2004-09-26 10:08 ` Rafael J. Wysocki
2004-09-26 10:09 ` Pavel Machek
2004-09-26 11:37 ` Rafael J. Wysocki
2004-09-26 13:20 ` Pavel Machek
2004-09-27 23:23 ` 2.6.9-rc2-mm3: swsusp horribly slow on AMD64 (update) Rafael J. Wysocki
2004-09-28 2:03 ` Narayan Desai
2004-09-29 21:58 ` Rafael J. Wysocki [this message]
2004-09-29 22:50 ` 2.6.9-rc2-mm[2-4]: zaphod-scheduler.patch makes swsusp incredibly slow (was: Re: 2.6.9-rc2-mm3: swsusp horribly slow on AMD64) Pavel Machek
2004-09-26 21:00 ` 2.6.9-rc2-mm3: swsusp horribly slow on AMD64 Stefan Seyfried
2004-09-26 22:01 ` Rafael J. Wysocki
2004-09-26 22:33 ` Pavel Machek
2004-09-27 9:11 ` 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=200409292358.54609.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
--cc=pwil3058@bigpond.net.au \
/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