-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't dump pages which only contain zero bytes
Introduces a new command line option '--skip-zero-bytes' which detects pages which only contain zero bytes and prohibits that they get dumped in the processes image file. It is a potentially expensive operation because it checks for every single process page if it contains only zeros, but it can significantly decrease the image size and improve the startup-time if many such pages exist. It effectively replaces such pages which the kernel's zero-page on restore. Signed-off-by: Volker Simonis <[email protected]>
- Loading branch information
Showing
18 changed files
with
346 additions
and
7 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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version = "1.0" encoding = "UTF-8"?> | ||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > | ||
|
||
<suite name = "Suite2"> | ||
<parameter name="checkpointOpt" value="--skip-zero-pages"/> | ||
<parameter name="restoreOpt" value=""/> | ||
|
||
<test name = "test1-FileRead"> | ||
<parameter name="testname" value="FileRead"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test2-ReadWrite"> | ||
<parameter name="testname" value="ReadWrite"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test3-MemoryMappings"> | ||
<parameter name="testname" value="MemoryMappings"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test4-MultipleFileRead"> | ||
<parameter name="testname" value="MultipleFileRead"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test5-MultipleFileWrite"> | ||
<parameter name="testname" value="MultipleFileWrite"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test6-Sockets"> | ||
<parameter name="testname" value="Sockets"/> | ||
<parameter name="checkpointOpt" value="--tcp-established --skip-zero-pages"/> | ||
<parameter name="restoreOpt" value="--tcp-established"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test7-SocketsListen"> | ||
<parameter name="testname" value="SocketsListen"/> | ||
<parameter name="checkpointOpt" value="--tcp-established --skip-zero-pages"/> | ||
<parameter name="restoreOpt" value="--tcp-established"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test8-SocketsConnect"> | ||
<parameter name="testname" value="SocketsConnect"/> | ||
<parameter name="checkpointOpt" value="--tcp-established --skip-zero-pages"/> | ||
<parameter name="restoreOpt" value="--tcp-established"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test9-SocketsMultiple"> | ||
<parameter name="testname" value="SocketsMultiple"/> | ||
<parameter name="checkpointOpt" value="--tcp-established --skip-zero-pages"/> | ||
<parameter name="restoreOpt" value="--tcp-established"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
</test> | ||
|
||
<test name = "test10-SocketsData"> | ||
<parameter name="testname" value="SocketsData"/> | ||
<parameter name="checkpointOpt" value="--tcp-established --skip-zero-pages"/> | ||
<parameter name="restoreOpt" value="--tcp-established"/> | ||
<classes> | ||
<class name = "org.criu.java.tests.CheckpointRestore"/> | ||
</classes> | ||
|
||
</test> | ||
|
||
</suite> |
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
Oops, something went wrong.