Thread (67 messages) 67 messages, 14 authors, 2005-08-20

Re: [RFC][patch 0/2] mm: remove PageReserved

From: Rafael J. Wysocki <hidden>
Date: 2005-08-11 10:30:59
Also in: lkml

Hi,

On Wednesday, 10 of August 2005 23:56, Martin J. Bligh wrote:
--On Wednesday, August 10, 2005 23:50:22 +0200 Pavel Machek [off-list ref] wrote:
quoted
Hi!
quoted
quoted
Swsusp is the main "is valid ram" user I have in mind here. It
wants to know whether or not it should save and restore the
memory of a given `struct page`.
Why can't it follow the rmap chain?
It is walking physical memory, not memory managment chains. I need
something like:
Can you not use page_is_ram(pfn) ?
IMHO it would be inefficient.

There obviously are some non-RAM pages that should not be saved and there are
some that are not worthy of saving, although they are RAM (eg because they never
change), but this is very archtecture-dependent.  The arch code should mark them
as PageNosave for swsusp, and that's enough.

Greets,
Rafael


-- 
- 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"
--
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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help