-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let the swap unit remain survive shutdown
Swap units have automatic dependencies of Before=swap.target,shutdown.target, Conflicts=shutdown.target. By adding DefaultDependencies=no, Before=swap.target, we effective drop the negative dependency with shutdown.target and allow the swap device to survive shutdown. There is no need to bring down the swap device during shutdown. This wastes work, because any remaning pages need to be dropped or decompressed and moved to normal memory. Normally this is very quick, but the report says that it takes 15–20 seconds in their case. Closes #191.
- Loading branch information
Showing
10 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram0 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram0 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram0 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram2 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram0 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram0 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram0 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram0 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ | |
[Unit] | ||
Description=Compressed Swap on /dev/zram1 | ||
Documentation=man:zram-generator(8) man:zram-generator.conf(5) | ||
|
||
DefaultDependencies=no | ||
|
||
[email protected] | ||
[email protected] | ||
Before=swap.target | ||
|
||
[Swap] | ||
What=/dev/zram1 | ||
|