Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

2007-09-21 Thread Jeremy Maitin-Shepard
"Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > On Friday, 21 September 2007 23:08, Jeremy Maitin-Shepard wrote: >> "Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: >> >> > On Friday, 21 September 2007 22:26, Jeremy Maitin-Shepard wro

Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

2007-09-21 Thread Jeremy Maitin-Shepard
"Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > On Friday, 21 September 2007 22:26, Jeremy Maitin-Shepard wrote: >> "Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: >> >> [snip] >> >> > The ACPI NVS area is explicitly marke

Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

2007-09-21 Thread Jeremy Maitin-Shepard
ugh, that ACPI is first initialized by the boot kernel, before it is later initialized by resuming kernel. This could well be the source of the problem. In particular, isn't it the case that you also switch the devices to low power mode before resuming? -- Jeremy Maitin-Shepard - To u

Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

2007-09-21 Thread Jeremy Maitin-Shepard
for the kexec implementation there may be additional issues. For swsusp, uswsusp, and tuxonice, though, I don't see why there should be a problem. I think that, as was recognized before, all of the issues are resolved by properly considering exactly what each callback should do and when

Re: GPL / MPL license issues.

2007-08-07 Thread Jeremy Maitin-Shepard
opyright headers at the top of the source files, rather than try to use the MODULE_LICENSE notes. [snip] -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel

Re: [RFC 12/26] ext2 white-out support

2007-08-02 Thread Jeremy Maitin-Shepard
d useful) semantics for a mount option that allows modifications to other layers as well, it would be a useful additional feature to support. It seems that it should be possible to add this feature at a later time in any case. Perhaps referring to the plan9 semantics could be helpful. -- Jeremy Mai

Re: [linux-pm] Re: Hibernation considerations

2007-07-21 Thread Jeremy Maitin-Shepard
Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: Hibernation considerations

2007-07-21 Thread Jeremy Maitin-Shepard
the system just booted up normally. Then battery status and such should be correct, since they are correct after normal initialization. It should be possible to make hibernate look just like a reboot to all of the devices, including ACPI stuff. -- Jeremy Maitin-Shepard - To unsubscribe from

Re: [linux-pm] Re: Hibernation considerations

2007-07-20 Thread Jeremy Maitin-Shepard
Alan Stern <[EMAIL PROTECTED]> writes: > On Fri, 20 Jul 2007, Jeremy Maitin-Shepard wrote: >> >> when doing a suspend-to-ram you get to a point where you just don't use >> >> any userspace. >> >> > What do you mean? How can you prevent user

Re: [linux-pm] Re: Hibernation considerations

2007-07-20 Thread Jeremy Maitin-Shepard
> run the scheduler, which means that user tasks can be scheduled, which > means that they can run. Does it really (fundamentally) require scheduling tasks, particularly in the case that the devices have already been put in the "quiesced" state? -- Jeremy Maitin-Shepard -

Re: [linux-pm] Re: Hibernation considerations

2007-07-20 Thread Jeremy Maitin-Shepard
followed by (3), at least for many drivers. (1) is required by the kexec hibernate approach even ignoring suspend to both or S4. (2) is required for suspend to ram without the freezer, which seems to be desired anyway. [snip] -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line

Re: [linux-pm] Re: Hibernation considerations

2007-07-20 Thread Jeremy Maitin-Shepard
ly makes guarantees about such data (and I don't believe any of the existing ones do). It isn't necessary to be able to access such filesystems: everything can be done from an initramfs/initrd. [snip] -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscr

Re: Hibernation considerations

2007-07-17 Thread Jeremy Maitin-Shepard
another OS shouldn't be a problem, except that if you do it without powering off the system first, some devices might not work under the other OS if the other OS doesn't initialize them properly. [snip] -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe

Re: Hibernation considerations

2007-07-17 Thread Jeremy Maitin-Shepard
correctly you are still risking the loss of data, the > user > just doesn't know it. It should be possible on any system to do a hibernate followed by a shutdown (and then resume properly, without any problems). Thus, for handling suspend to both, you resume as if the system had been s

Re: Hibernation considerations

2007-07-17 Thread Jeremy Maitin-Shepard
image-saving kernel if that kernel doesn't know > about > the device. The image-saving kernel can be made to know about all of the "wake up" devices; all other devices should have already been powered off by the "hibernated" kernel. -- Jeremy Maitin-Shepard - To u

Re: Hibernation considerations

2007-07-17 Thread Jeremy Maitin-Shepard
he question of what state the devices will be in when switching back from the "save image" kernel to the "hibernated" kernel. [snip] -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PR

Re: Hibernation considerations

2007-07-17 Thread Jeremy Maitin-Shepard
bernate" ACPI by initializing it normally, issue the special hibernate-related methods. Thus, it seems that supporting ACPI S4 will have a very minimal affect on the hibernate implementation. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe li

Re: Hibernation considerations

2007-07-17 Thread Jeremy Maitin-Shepard
> That's why I think that for the suspend-to-both the image-saving kernel will > need to support the same set of devices as the hibernated kernel. If all of the devices that the image writing kernel doesn't know about have already been shut down/powered off by the hibernat

Re: Hibernation considerations

2007-07-17 Thread Jeremy Maitin-Shepard
nate is done, this hook won't be used, and instead the resumed kernel will call the ACPI hibernate resume stuff if S4 state was used; otherwise, the resumed kernel will just re-initialize ACPI as normal. Also, if the in-kernel code for checking if a resume can be done does not find a hibernat

Re: Hibernation considerations

2007-07-17 Thread Jeremy Maitin-Shepard
can merely exist as a special shutdown mode. Note that it seems a bit odd if ACPI can't be initialized normally after resume from S4 (and still work), since the "load image" kernel initializes everything normally before attempting to resume the hibernated system. -- Jeremy Maitin-S

Re: Hibernation considerations

2007-07-15 Thread Jeremy Maitin-Shepard
t either the metadata or the file contents are consistent. It isn't necessary for hibernation to be able to access mounted partitions anyway. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECT

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Jeremy Maitin-Shepard
jump to the > hibernated kernel This would again avoid the need for a separate userspace-kernelspace interface for the purpose, so I agree it could be a useful thing to do initially. > - in the restore code patch replace device_resume() with the reprobing of all > devices. See my

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Jeremy Maitin-Shepard
t may indeed be important to support "cooperation" with the old kernel on saving the image sooner, rather than later. [snip] -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: Hibernating To Swap Considered Harmful

2007-07-13 Thread Jeremy Maitin-Shepard
inux (and maybe also Windows?)) use LVM, thus allowing you to have as many volumes as you like in the partition -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: Hibernation Redesign

2007-07-12 Thread Jeremy Maitin-Shepard
Al Boldi <[EMAIL PROTECTED]> writes: > Mark Lord wrote: >> Jeremy Maitin-Shepard wrote: >> > I'll certainly admit the kexec idea is vaporware currently, > Your idea is starting to become a reality with this thread: > "[PATCH 0/2] Kexec jump: The first

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-12 Thread Jeremy Maitin-Shepard
stripped down kernel may only take a second or two to initialize. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-12 Thread Jeremy Maitin-Shepard
n. >> >> he's trying to get fancy again, the best way to speed up the boot of the >> kexec kernel is make it smaller and avoid probing for devices (hotplug >> should NOT be used for normal suspend situations) > Still, I believe that we should do our best to use

Re: sysrq-t dumps of s2ram/fuse deadlock

2007-07-11 Thread Jeremy Maitin-Shepard
hen you >> remove freezer. > I can produce them, but haven't managed to do that in any way that lets > me get them off the system yet. If you can see them, then perhaps you could use a digital camera or just copy the text manually. [snip] -- Jeremy Maitin-Shepard - To unsubsc

Re: Hibernation Redesign

2007-07-11 Thread Jeremy Maitin-Shepard
e for suspend to ram, which will need to be solved anyway. Unlike the existing hibernate approaches, however, it will not be necessary to use any of the driver infrastructure once switched to the "save image" kernel, and thus it will not matter what locks are held, for instance.

Re: Hibernation Redesign

2007-07-10 Thread Jeremy Maitin-Shepard
used to do it, > which is known to work flawlessly with minimal OS involvement. Now all that is needed is someone with enough time and interest to implement it. :) -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messa

Re: Hibernation Redesign

2007-07-10 Thread Jeremy Maitin-Shepard
Jeremy Fitzhardinge <[EMAIL PROTECTED]> writes: > Jeremy Maitin-Shepard wrote: >> I don't know a whole lot about xen, but it seems that one issue with >> this approach is that it requires you run your system under a hypervisor >> at all times, which may introduce s

Re: Hibernation Redesign

2007-07-09 Thread Jeremy Maitin-Shepard
requires you run your system under a hypervisor at all times, which may introduce some overhead. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [RFC][PATCH -mm] Freezer: Handle uninterruptible tasks

2007-07-09 Thread Jeremy Maitin-Shepard
Alan Stern <[EMAIL PROTECTED]> writes: > On Mon, 9 Jul 2007, Jeremy Maitin-Shepard wrote: >> Pavel Machek <[EMAIL PROTECTED]> writes: >> >> [snip] >> >> > I don't know how to do that mechanism... but if we knew where to trap >> > f

Re: Hibernation Redesign

2007-07-09 Thread Jeremy Maitin-Shepard
Oliver Neukum <[EMAIL PROTECTED]> writes: > Am Montag, 9. Juli 2007 schrieb Jeremy Maitin-Shepard: >> Oliver Neukum <[EMAIL PROTECTED]> writes: >> >> [snip] >> >> > Hm, once the new kernel is booted, this decision is irrevocable, isn't it?

Re: hibernation/snapshot design

2007-07-09 Thread Jeremy Maitin-Shepard
made available. This will not take very long, because copying even 64MB of memory is extremely fast. Then the new kernel is free to use the first X bytes of contiguous physical memory. Problem solved. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe

Re: Hibernation Redesign

2007-07-09 Thread Jeremy Maitin-Shepard
appropriate state, then copying the backed up memory back to the beginning of physical memory, and finally jumping to the old kernel. It would be much like what is done to resume from hibernation. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-ke

Re: Hibernation Redesign

2007-07-08 Thread Jeremy Maitin-Shepard
Nick Piggin <[EMAIL PROTECTED]> writes: > Jeremy Maitin-Shepard wrote: >> Nick Piggin <[EMAIL PROTECTED]> writes: >>> This is the Morton method, isn't it? :) I remember it sounding like a >>> very good idea when he brought it up, but I can't r

Re: Hibernation Redesign

2007-07-08 Thread Jeremy Maitin-Shepard
Nick Piggin <[EMAIL PROTECTED]> writes: > Jeremy Maitin-Shepard wrote: >> Al Boldi <[EMAIL PROTECTED]> writes: >> >> >>> Pavel Machek wrote: >>> >>>> We are stuck with refrigerator for now, and at least for hibernation,

Re: [RFC][PATCH -mm] Freezer: Handle uninterruptible tasks

2007-07-08 Thread Jeremy Maitin-Shepard
ke a printer must be prevented after the snapshot. It seems, though, that in general the kernel will have no way to know which operations are safe, and which are not safe. (This is why the whole "proper filesystem snapshot support is the solution" argument is bogus.) -- Jeremy Maitin-Shep

Re: Hibernation Redesign

2007-07-08 Thread Jeremy Maitin-Shepard
ed), as the hibernate operation itself would be completely atomic from the perspective of the "old" kernel. That is not to say, of course, that any code paths would actually be shared, or that the drivers would do the same things (because they probably would not). [snip] -- Jeremy Ma

Re: [linux-pm] Re: [PATCH] Remove process freezer from suspend to RAM pathway

2007-07-05 Thread Jeremy Maitin-Shepard
ately, even leaving kernel threads and certain drivers running after the snapshot is taken means that the saved image isn't completely correct, and the freezer cannot help with these issues. [snip] -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe li

Re: [linux-pm] Re: [PATCH] Remove process freezer from suspend to RAM pathway

2007-07-05 Thread Jeremy Maitin-Shepard
but I need to find some more time to flesh it out. >> >> You can just describe it, as far as I'm concerned. :-) [snip: new hibernate idea] I think my kexec-based hibernate idea is simpler and more feasible than this approach, and also avoids the freezer. -- Jeremy Maitin-Shep

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-14 Thread Jeremy Maitin-Shepard
bad towards it's authors (taking all and every right you might > have). If John Doe wants to re-release the whole kernel under > GPLv3, then all he needs is a website and some bandwidth. Well, he also needs one tiny little extra thing: the permission of every copyright holder in Linux.

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-14 Thread Jeremy Maitin-Shepard
rather will, > after GPLv3 is published). You can do that, but you won't be able to distribute those changes along with the rest of the kernel. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PRO

Re: A kexec approach to hibernation

2007-06-11 Thread Jeremy Maitin-Shepard
ifi -over-pigeon-carrier-protocol-over-printer-and-scanner. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: A kexec approach to hibernation

2007-06-11 Thread Jeremy Maitin-Shepard
Xavier Bestel <[EMAIL PROTECTED]> writes: > On Mon, 2007-06-11 at 11:01 -0400, Jeremy Maitin-Shepard wrote: >> >> You might claim then that the solution is to simply keep the network >> >> driver quiesced or stopped. But then it is impossible to write the >&

Re: A kexec approach to hibernation

2007-06-11 Thread Jeremy Maitin-Shepard
64MB (or however much is desired for the "save" kernel to have) of memory into free pages just before copying the "save" kernel into the desired position and jumping to it. Due to the speed of memory copying, this should not add any significant overhead. [snip] -- Jeremy M

Re: A kexec approach to hibernation

2007-06-11 Thread Jeremy Maitin-Shepard
serve memory, which I'm about to write. ;) Please don't take my comments in this thread too harshly. I'm not trying to undermine that work that you and the other hibernate developers have done. I just think this kexec approach is an interesting idea, and I brought it up so that it might get explored. I still don't know if it actually makes sense (although I've managed to mostly convince myself), and discussing it with you and the other hibernate developers helps in figuring that out. If I didn't strongly advocate it, it wouldn't get any thought. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: A kexec approach to hibernation

2007-06-04 Thread Jeremy Maitin-Shepard
he explanations I gave in the other e-mail I sent a few minutes ago in reply to Nigel) I think the kexec appraoch can be viewed as a cleaner variant of userspace hibernate. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: A kexec approach to hibernation

2007-06-04 Thread Jeremy Maitin-Shepard
g on a fuse filesystem, because essentially any code that is run while writing the image needs to live in an special box that is totally isolated from the rest of the system in order to avoid problems; thus, it seems like it makes sense to implement this box by simply using a separate kernel, rath

Re: A kexec approach to hibernation

2007-06-01 Thread Jeremy Maitin-Shepard
the same procedure would be used to set up the necessary devices for both the save and restore case, and the GUI that is used might also be the same. >> > Still, I don't think we could implement it quickly and easily. >> >> It is hard to say how hard it would be. I thin

Re: A kexec approach to hibernation

2007-06-01 Thread Jeremy Maitin-Shepard
"Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > On Saturday, 2 June 2007 00:25, Jeremy Maitin-Shepard wrote: [snip] >> Just before jumping into the new kernel, with interrupts disabled, the >> old kernel could either prepare a data structure that specifies

Re: A kexec approach to hibernation

2007-06-01 Thread Jeremy Maitin-Shepard
"Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > On Friday, 1 June 2007 22:39, Jeremy Maitin-Shepard wrote: >> I figured I'd throw this idea out, since although it is not perfect, it >> has the potential to elegantly solve a lot of issues with hibernate. >

A kexec approach to hibernation

2007-06-01 Thread Jeremy Maitin-Shepard
relatively insignificant compared to the time required to actually write the image, and the delay could be reduced by stripping out unnecessary drivers from the image-writing kernel. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [AppArmor 01/41] Pass struct vfsmount to the inode_create LSM hook

2007-05-25 Thread Jeremy Maitin-Shepard
Jeremy Maitin-Shepard <[EMAIL PROTECTED]> writes: > [snip] > Well, my point was exactly that App Armor doesn't (as far as I know) do > anything to enforce the argv[0] convention, nor would it in general > prevent a confined program from making a symlink or hard link. E

Re: [AppArmor 01/41] Pass struct vfsmount to the inode_create LSM hook

2007-05-25 Thread Jeremy Maitin-Shepard
Casey Schaufler <[EMAIL PROTECTED]> writes: > --- Jeremy Maitin-Shepard <[EMAIL PROTECTED]> wrote: >> Casey Schaufler <[EMAIL PROTECTED]> writes: >> >> > On Fedora zcat, gzip and gunzip are all links to the same file. >> > I can imagine (althou

Re: [AppArmor 01/41] Pass struct vfsmount to the inode_create LSM hook

2007-05-24 Thread Jeremy Maitin-Shepard
here is one. This doesn't work. The behavior depends on argv[0], which is not necessarily the same as the name of the file. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo

Re: [patch 00/10] mount ownership and unprivileged mount syscall (v3)

2007-04-18 Thread Jeremy Maitin-Shepard
It seems that this might introduce serious denial of service possibilities due to the fact that many of the file systems are not robust to invalid on-block-device data. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: Signal handling possibly wrong

2005-08-09 Thread Jeremy Maitin-Shepard
n page description included above), when neither the description of sa_mask nor the description of SA_NODEFER specifies such an exception. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More m

Re: Linux On-Demand Network Access (LODNA)

2005-07-12 Thread Jeremy Maitin-Shepard
FUSE already provides the unprivileged mounting support mentioned in the proposal. -- Jeremy Maitin-Shepard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo

Re: reiser4 plugins

2005-07-05 Thread Jeremy Maitin-Shepard
David Masover <[EMAIL PROTECTED]> writes: > Jeremy Maitin-Shepard wrote: >> David Masover <[EMAIL PROTECTED]> writes: >> >> [snip] >> >> >>>> I have. And have seen /no/ benefit to you. Except, of course, the benefit >>>> accr

Re: reiser4 plugins

2005-07-05 Thread Jeremy Maitin-Shepard
ew tool, I can > just browse around in /meta. What is the relationship between file-as-dir or special meta-data and transparent encryption+compression? I do not see why file-as-dir would require such a special interface. [snip] -- Jeremy Maitin-Shepard - To unsubscribe from this list: