Re: [linux-pm] Re: Hibernation considerations

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rafael J. Wysocki <rjw@...>
Cc: Milton Miller <miltonm@...>, linux-pm <linux-pm@...>, LKML <linux-kernel@...>, Alan Stern <stern@...>, Huang, Ying <ying.huang@...>, Jeremy Maitin-Shepard <jbms@...>
Date: Thursday, July 19, 2007 - 7:07 pm

On Thu, 19 Jul 2007, Rafael J. Wysocki wrote:


I didn't realize this was a discussion item. I thought the options were 
clear, for some filesystem types you can mount them read-only, but for 
ext3 (and possilby other less common ones) you just plain cannot touch 
them.


we all agree that tasks cannot run during the suspend-to-ram state, but 
the disagreement is over what this means

at one extreme it could mean that you would need the full freezer as per 
the current suspend projects.

at the other extreme it could mean that all that's needed is to invoke the 
suspend-to-ram routine before anything else on the suspended kernel on the 
return from the save and restore kernel.

we just need to figure out which it is (or if it's somewhere in between).


not if the filesystem is mounted read-only (except on ext3)


I disagree a little bit.

first off, only the suspending kernel can know what can be freed and what 
is needed to do so (remember this is kernel internals, it can change from 
patch to patch, let alone version to version)

second, if you have a lot of memory to free, and you can't just throw away 
caches to do so, you don't know what is going to be involved in freeing 
the memory, it's very possilbe that it is going to involve userspace, so 
you can't freeze any significant portion of the system, so you can't 
eliminate all chance of races

what you can do is

1. try to free stuff
2. stop the system and account for memory, is enough free
if not goto 1

if userspace is dirtying memory fast enough, or is just useing enough 
memory that you can't meet your limit you just won't be able to suspend.

but under any other conditions you will eventually get enough memory free.

so try several times and if you still fail tell the user they have too 
much stuff running and they need to kill something.


this doesn't make sense, 20% of 2G is 400M, if you can't make a kernel and 
userspace that can run in 400M you have a serious problem.

even if you wanted to save 99% of RAM on a 2G system, you have 20M of ram 
to play with, which should easily be enough.

remember, linux runs on really small systems as well, and while you do 
have to load some drivers for the big system, there are a lot of other 
things that aren't needed.


becouse you say that the current methods won't work without ACPI support.

David Lang
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Thu Jul 19, 4:28 pm)
Re: [linux-pm] Re: Hibernation considerations, , (Thu Jul 19, 7:07 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Fri Jul 20, 7:17 am)
Re: [linux-pm] Re: Hibernation considerations, Milton Miller, (Fri Jul 20, 12:56 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Fri Jul 20, 5:28 pm)
Re: [linux-pm] Re: Hibernation considerations, Jeremy Maitin-Shepard, (Fri Jul 20, 5:33 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Fri Jul 20, 6:19 pm)
Re: [linux-pm] Re: Hibernation considerations, Jeremy Maitin-Shepard, (Fri Jul 20, 1:31 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Fri Jul 20, 5:30 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Fri Jul 20, 12:15 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Fri Jul 20, 5:46 pm)
Re: [linux-pm] Re: Hibernation considerations, Milton Miller, (Fri Jul 20, 12:08 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Fri Jul 20, 5:02 pm)
Re: [linux-pm] Re: Hibernation considerations, Miklos Szeredi, (Sat Jul 21, 7:44 am)
Re: [linux-pm] Re: Hibernation considerations, Nigel Cunningham, (Sat Jul 21, 8:43 am)
Re: [linux-pm] Re: Hibernation considerations, Pavel Machek, (Wed Aug 1, 5:19 am)
Re: [linux-pm] Re: Hibernation considerations, Jeremy Maitin-Shepard, (Sat Jul 21, 12:13 pm)
Re: [linux-pm] Re: Hibernation considerations, Nigel Cunningham, (Sat Jul 21, 6:16 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Sun Jul 22, 11:26 am)
Re: [linux-pm] Re: Hibernation considerations, Nigel Cunningham, (Sun Jul 22, 6:42 pm)
Re: [linux-pm] Re: Hibernation considerations, Miklos Szeredi, (Mon Jul 23, 6:24 am)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Mon Jul 23, 8:08 am)
Re: [linux-pm] Re: Hibernation considerations, Miklos Szeredi, (Mon Jul 23, 8:14 am)
Re: [linux-pm] Re: Hibernation considerations, Oliver Neukum, (Mon Jul 23, 8:31 am)
Re: [linux-pm] Re: Hibernation considerations, Miklos Szeredi, (Mon Jul 23, 9:08 am)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Mon Jul 23, 10:01 am)
Re: [linux-pm] Re: Hibernation considerations, Miklos Szeredi, (Mon Jul 23, 10:01 am)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Mon Jul 23, 8:27 am)
Re: [linux-pm] Re: Hibernation considerations, Paul Mackerras, (Sun Jul 22, 8:04 pm)
Re: [linux-pm] Re: Hibernation considerations, Nigel Cunningham, (Sun Jul 22, 11:11 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Mon Jul 23, 11:23 am)
Re: [linux-pm] Re: Hibernation considerations, Nigel Cunningham, (Mon Jul 23, 5:55 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Mon Jul 23, 6:10 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Sun Jul 22, 7:09 pm)
Re: [linux-pm] Re: Hibernation considerations, Nigel Cunningham, (Sun Jul 22, 7:18 pm)
Re: [linux-pm] Re: Hibernation considerations, Miklos Szeredi, (Sun Jul 22, 12:27 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Sun Jul 22, 4:09 pm)
Re: [linux-pm] Re: Hibernation considerations, Miklos Szeredi, (Sat Jul 21, 2:12 pm)
Re: [linux-pm] Re: Hibernation considerations, Nigel Cunningham, (Sat Jul 21, 6:21 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Sat Jul 21, 3:20 pm)
Re: [linux-pm] Re: Hibernation considerations, Pavel Machek, (Wed Aug 1, 5:22 am)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Thu Aug 2, 1:02 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Sat Jul 21, 9:56 am)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Fri Jul 20, 12:20 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Fri Jul 20, 5:24 pm)
Re: [linux-pm] Re: Hibernation considerations, Rafael J. Wysocki, (Fri Jul 20, 6:15 pm)
Re: [linux-pm] Re: Hibernation considerations, Jeremy Maitin-Shepard, (Fri Jul 20, 5:37 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Fri Jul 20, 6:35 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Sat Jul 21, 10:10 am)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Sun Jul 22, 12:00 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Mon Jul 23, 11:19 am)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Mon Jul 23, 4:22 pm)
RE: [linux-pm] Re: Hibernation considerations, Huang, Ying, (Tue Jul 24, 9:26 am)
RE: [linux-pm] Re: Hibernation considerations, Alan Stern, (Tue Jul 24, 10:50 am)
Re: [linux-pm] Re: Hibernation considerations, Nigel Cunningham, (Sat Jul 21, 1:21 am)
Re: [linux-pm] Re: Hibernation considerations, Jeremy Maitin-Shepard, (Fri Jul 20, 6:48 pm)
Re: [linux-pm] Re: Hibernation considerations, Milton Miller, (Fri Jul 20, 1:32 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Fri Jul 20, 2:17 pm)
Re: [linux-pm] Re: Hibernation considerations, Oliver Neukum, (Fri Jul 20, 4:03 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Fri Jul 20, 4:12 pm)
Re: [linux-pm] Re: Hibernation considerations, Oliver Neukum, (Fri Jul 20, 5:35 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Fri Jul 20, 6:25 pm)
Re: [linux-pm] Re: Hibernation considerations, Pavel Machek, (Wed Aug 1, 5:34 am)
Re: [linux-pm] Re: Hibernation considerations, Oliver Neukum, (Mon Jul 23, 10:23 am)
Towards eliminating the freezer, Alan Stern, (Mon Jul 23, 4:05 pm)
Re: Towards eliminating the freezer, Rafael J. Wysocki, (Tue Jul 24, 5:33 am)
Re: Towards eliminating the freezer, Alan Stern, (Tue Jul 24, 10:29 am)
Re: Towards eliminating the freezer, Rafael J. Wysocki, (Tue Jul 24, 11:24 am)
Re: Towards eliminating the freezer, Alan Stern, (Tue Jul 24, 12:06 pm)
Re: Towards eliminating the freezer, Rafael J. Wysocki, (Tue Jul 24, 3:20 pm)
Re: Towards eliminating the freezer, Alan Stern, (Tue Jul 24, 4:24 pm)
Re: Towards eliminating the freezer, Rafael J. Wysocki, (Tue Jul 24, 5:14 pm)
Re: Towards eliminating the freezer, Alan Stern, (Tue Jul 24, 6:14 pm)
Re: Towards eliminating the freezer, Rafael J. Wysocki, (Wed Jul 25, 8:23 am)
Re: Towards eliminating the freezer, Oliver Neukum, (Tue Jul 24, 4:21 am)
Re: Towards eliminating the freezer, Alan Stern, (Tue Jul 24, 10:27 am)
Re: [linux-pm] Re: Hibernation considerations, Milton Miller, (Fri Jul 20, 3:08 pm)
Re: [linux-pm] Re: Hibernation considerations, Alan Stern, (Fri Jul 20, 3:37 pm)