All of lore.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: linux list <linux-kernel@vger.kernel.org>
Cc: ck list <ck@vds.kolivas.org>, Andrew Morton <akpm@osdl.org>,
	"Rafael Wysocki" <rjw@sisk.pl>, Pavel Machek <pavel@ucw.cz>,
	linux-mm@kvack.org
Subject: [PATCH][3/3] mm: swsusp post resume aggressive swap prefetch
Date: Mon, 20 Mar 2006 02:34:00 +1100	[thread overview]
Message-ID: <200603200234.01472.kernel@kolivas.org> (raw)


Swsusp reclaims a lot of memory during the suspend cycle and can benefit
from the aggressive_swap_prefetch mode immediately upon resuming.

Signed-off-by: Con Kolivas <kernel@kolivas.org>

---
 kernel/power/swsusp.c |    3 +++
 1 files changed, 3 insertions(+)

Index: linux-2.6.16-rc6-mm2/kernel/power/swsusp.c
===================================================================
--- linux-2.6.16-rc6-mm2.orig/kernel/power/swsusp.c	2006-03-20 02:15:47.000000000 +1100
+++ linux-2.6.16-rc6-mm2/kernel/power/swsusp.c	2006-03-20 02:20:35.000000000 +1100
@@ -49,6 +49,7 @@
 #include <linux/bootmem.h>
 #include <linux/syscalls.h>
 #include <linux/highmem.h>
+#include <linux/swap-prefetch.h>
 
 #include "power.h"
 
@@ -239,6 +240,8 @@ Restore_highmem:
 	device_power_up();
 Enable_irqs:
 	local_irq_enable();
+	if (!in_suspend)
+		aggressive_swap_prefetch();
 	return error;
 }
 


WARNING: multiple messages have this Message-ID (diff)
From: Con Kolivas <kernel@kolivas.org>
To: linux list <linux-kernel@vger.kernel.org>
Cc: ck list <ck@vds.kolivas.org>, Andrew Morton <akpm@osdl.org>,
	Rafael Wysocki <rjw@sisk.pl>, Pavel Machek <pavel@ucw.cz>,
	linux-mm@kvack.org
Subject: [PATCH][3/3] mm: swsusp post resume aggressive swap prefetch
Date: Mon, 20 Mar 2006 02:34:00 +1100	[thread overview]
Message-ID: <200603200234.01472.kernel@kolivas.org> (raw)

Swsusp reclaims a lot of memory during the suspend cycle and can benefit
from the aggressive_swap_prefetch mode immediately upon resuming.

Signed-off-by: Con Kolivas <kernel@kolivas.org>

---
 kernel/power/swsusp.c |    3 +++
 1 files changed, 3 insertions(+)

Index: linux-2.6.16-rc6-mm2/kernel/power/swsusp.c
===================================================================
--- linux-2.6.16-rc6-mm2.orig/kernel/power/swsusp.c	2006-03-20 02:15:47.000000000 +1100
+++ linux-2.6.16-rc6-mm2/kernel/power/swsusp.c	2006-03-20 02:20:35.000000000 +1100
@@ -49,6 +49,7 @@
 #include <linux/bootmem.h>
 #include <linux/syscalls.h>
 #include <linux/highmem.h>
+#include <linux/swap-prefetch.h>
 
 #include "power.h"
 
@@ -239,6 +240,8 @@ Restore_highmem:
 	device_power_up();
 Enable_irqs:
 	local_irq_enable();
+	if (!in_suspend)
+		aggressive_swap_prefetch();
 	return error;
 }
 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

             reply	other threads:[~2006-03-19 15:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-19 15:34 Con Kolivas [this message]
2006-03-19 15:34 ` [PATCH][3/3] mm: swsusp post resume aggressive swap prefetch Con Kolivas
2006-03-20 21:47 ` Rafael J. Wysocki
2006-03-20 21:47   ` Rafael J. Wysocki
2006-03-20 21:25   ` kernel
2006-03-20 21:25     ` kernel
2006-03-20 23:22     ` Rafael J. Wysocki
2006-03-20 23:22       ` Rafael J. Wysocki
2006-03-21  0:44       ` kernel
2006-03-21  0:44         ` kernel
2006-03-21 18:11         ` Rafael J. Wysocki
2006-03-21 18:11           ` Rafael J. Wysocki
2006-03-22  6:11           ` Con Kolivas
2006-03-22  6:11             ` Con Kolivas
2006-03-24  5:00       ` [PATCH] swswsup: return correct load_image error Con Kolivas
2006-03-24  5:00         ` Con Kolivas
2006-03-24  5:17         ` Con Kolivas
2006-03-24  5:17           ` Con Kolivas
2006-03-24 15:05           ` Rafael J. Wysocki
2006-03-24 15:05             ` Rafael J. Wysocki
2006-03-24 14:51         ` Rafael J. Wysocki
2006-03-24 14:51           ` 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=200603200234.01472.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=akpm@osdl.org \
    --cc=ck@vds.kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=pavel@ucw.cz \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.