Skip to contentSkip to conversation

Preallocate swap + minor fix.

PATCH In review Nigel Cunningham 2 participants 5 messages May 26, 2010 – May 27, 2010

lore
Share & tools
lore
#0 lore raw

cover Preallocate swap + minor fix.

Hi all.

In current in-kernel hibernation code, swap is allocated as the image is being written.

The first four patches in this series rework things so that all swap that will be used is allocated prior to any data being written to disk. The fourth patch might look like too much for one patch, but it's necessary to not break bisecting.

The fifth patch fixes a minor error in displaying the speed at which I/O occurred.

This is the beginning of what I hope will be a long series of sets of patches, first working towards adding support for properly asynchronous I/O (not batching, as is currently done), then compression, multiple swap devices and more. In short, this is the beginning of work on merging TuxOnIce functionality a bit at a time.

The work is coming now because I recently finished my previous job, so I'm seeking to get some of those jobs I've been wanting to do for a long time out of the way. If anyone wants to employ me to do this work, I wouldn't say no! :)

Please excuse me if there are wrapping issues with the patches - I'm using Thunderbird, and haven't sent a patch series for quite a while, so don't remember the fancy git mailer way (will have to look it up).

Rafael, these and future patches will be available at:

git://git.kernel.org/pub/scm/linux/kernel/git/nigelc/tuxonice-head.git#for-rafael

Regards,

Nigel

#1 lore raw
Quoted 24 lines · Nigel Cunningham

Hi all.

In current in-kernel hibernation code, swap is allocated as the image is being written.

The first four patches in this series rework things so that all swap that will be used is allocated prior to any data being written to disk. The fourth patch might look like too much for one patch, but it's necessary to not break bisecting.

The fifth patch fixes a minor error in displaying the speed at which I/O occurred.

This is the beginning of what I hope will be a long series of sets of patches, first working towards adding support for properly asynchronous I/O (not batching, as is currently done), then compression, multiple swap devices and more. In short, this is the beginning of work on merging TuxOnIce functionality a bit at a time.

The work is coming now because I recently finished my previous job, so I'm seeking to get some of those jobs I've been wanting to do for a long time out of the way. If anyone wants to employ me to do this work, I wouldn't say no! :)

Quoted 7 lines

Please excuse me if there are wrapping issues with the patches - I'm using Thunderbird, and haven't sent a patch series for quite a while, so don't remember the fancy git mailer way (will have to look it up).

Rafael, these and future patches will be available at:

git://git.kernel.org/pub/scm/linux/kernel/git/nigelc/tuxonice-head.git#for-rafael

Thanks for the patches, I'll have a look at them as soon as I can.

I haven't replied to your hibernation algorithm idea, mostly because I didn't have the time to look into it more thoroughly and I don't remember all of the details. I'm still going to reply to it, though.

Rafael

#4 lore raw
In reply to Nigel Cunningham
Quoted 24 lines · Nigel Cunningham

Hi all.

In current in-kernel hibernation code, swap is allocated as the image is being written.

The first four patches in this series rework things so that all swap that will be used is allocated prior to any data being written to disk. The fourth patch might look like too much for one patch, but it's necessary to not break bisecting.

The fifth patch fixes a minor error in displaying the speed at which I/O occurred.

This is the beginning of what I hope will be a long series of sets of patches, first working towards adding support for properly asynchronous I/O (not batching, as is currently done), then compression, multiple swap devices and more. In short, this is the beginning of work on merging TuxOnIce functionality a bit at a time.

The work is coming now because I recently finished my previous job, so I'm seeking to get some of those jobs I've been wanting to do for a long time out of the way. If anyone wants to employ me to do this work, I wouldn't say no! :)

Quoted 7 lines

Please excuse me if there are wrapping issues with the patches - I'm using Thunderbird, and haven't sent a patch series for quite a while, so don't remember the fancy git mailer way (will have to look it up).

Rafael, these and future patches will be available at:

git://git.kernel.org/pub/scm/linux/kernel/git/nigelc/tuxonice-head.git#for-rafael

Thanks for the patches, I'll have a look at them as soon as I can.

I haven't replied to your hibernation algorithm idea, mostly because I didn't have the time to look into it more thoroughly and I don't remember all of the details. I'm still going to reply to it, though.

Rafael

#2 lore raw
In reply to Rafael J. Wysocki

Hi.

Quoted 29 lines · Rafael J. Wysocki
Quoted 28 lines · Nigel Cunningham

Hi all.

In current in-kernel hibernation code, swap is allocated as the image is being written.

The first four patches in this series rework things so that all swap that will be used is allocated prior to any data being written to disk. The fourth patch might look like too much for one patch, but it's necessary to not break bisecting.

The fifth patch fixes a minor error in displaying the speed at which I/O occurred.

This is the beginning of what I hope will be a long series of sets of patches, first working towards adding support for properly asynchronous I/O (not batching, as is currently done), then compression, multiple swap devices and more. In short, this is the beginning of work on merging TuxOnIce functionality a bit at a time.

The work is coming now because I recently finished my previous job, so I'm seeking to get some of those jobs I've been wanting to do for a long time out of the way. If anyone wants to employ me to do this work, I wouldn't say no! :)

Please excuse me if there are wrapping issues with the patches - I'm using Thunderbird, and haven't sent a patch series for quite a while, so don't remember the fancy git mailer way (will have to look it up).

Quoted 5 lines
Quoted 3 lines

Rafael, these and future patches will be available at:

git://git.kernel.org/pub/scm/linux/kernel/git/nigelc/tuxonice-head.git#for-rafael

Thanks for the patches, I'll have a look at them as soon as I can.

Thank you! I've got other stuff to work on today, but hope to prepare another set of patches tomorrow.

Quoted 3 lines

I haven't replied to your hibernation algorithm idea, mostly because I didn't have the time to look into it more thoroughly and I don't remember all of the details. I'm still going to reply to it, though.

Thanks.

Nigel

#3 lore raw
In reply to Rafael J. Wysocki

Hi.

Quoted 29 lines · Rafael J. Wysocki
Quoted 28 lines · Nigel Cunningham

Hi all.

In current in-kernel hibernation code, swap is allocated as the image is being written.

The first four patches in this series rework things so that all swap that will be used is allocated prior to any data being written to disk. The fourth patch might look like too much for one patch, but it's necessary to not break bisecting.

The fifth patch fixes a minor error in displaying the speed at which I/O occurred.

This is the beginning of what I hope will be a long series of sets of patches, first working towards adding support for properly asynchronous I/O (not batching, as is currently done), then compression, multiple swap devices and more. In short, this is the beginning of work on merging TuxOnIce functionality a bit at a time.

The work is coming now because I recently finished my previous job, so I'm seeking to get some of those jobs I've been wanting to do for a long time out of the way. If anyone wants to employ me to do this work, I wouldn't say no! :)

Please excuse me if there are wrapping issues with the patches - I'm using Thunderbird, and haven't sent a patch series for quite a while, so don't remember the fancy git mailer way (will have to look it up).

Quoted 5 lines
Quoted 3 lines

Rafael, these and future patches will be available at:

git://git.kernel.org/pub/scm/linux/kernel/git/nigelc/tuxonice-head.git#for-rafael

Thanks for the patches, I'll have a look at them as soon as I can.

Thank you! I've got other stuff to work on today, but hope to prepare another set of patches tomorrow.

Quoted 3 lines

I haven't replied to your hibernation algorithm idea, mostly because I didn't have the time to look into it more thoroughly and I don't remember all of the details. I'm still going to reply to it, though.

Thanks.

Nigel