forked from QubesOS/qubes-vmm-xen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a huge performance improvement for two reasons: 1. It uses the filesystem’s asynchronous I/O support, rather than using synchronous I/O. 2. It bypasses the page cache, removing a redundant layer of caching and associated overhead. Fixes QubesOS/qubes-issues#7332.
- Loading branch information
Showing
5 changed files
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- xen-4.14.4/tools/hotplug/Linux/block 2022-01-31 04:44:39.000000000 -0500 | ||
+++ xen-4.14.4/tools/hotplug/Linux/block 2022-03-11 16:18:36.667000000 -0500 | ||
@@ -330,7 +330,7 @@ | ||
else | ||
roflag='' | ||
fi | ||
- do_or_die losetup $roflag "$loopdev" "$file" | ||
+ do_or_die losetup --direct-io=on $roflag "$loopdev" "$file" | ||
xenstore_write "$XENBUS_PATH/node" "$loopdev" | ||
write_dev "$loopdev" | ||
release_lock "block" |
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ Signed-off-by: Marek Marczykowski <[email protected]> | |
FRONTEND_UUID=$(xenstore_read_default \ | ||
@@ -305,6 +312,7 @@ | ||
fi | ||
do_or_die losetup $roflag "$loopdev" "$file" | ||
do_or_die losetup --direct-io=on $roflag "$loopdev" "$file" | ||
xenstore_write "$XENBUS_PATH/node" "$loopdev" | ||
+ echo $loopdev > "$HOTPLUG_STORE-node" | ||
write_dev "$loopdev" | ||
|
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