Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 90bed68

Browse files
Set msize for 9p mounting
By adding the msize value (524288 bytes) provides an enhancement in I/O storage operations. The following results are from I/O operations such as: read, write, random read etc...,using different block sizes, where the x results express how many times is better. | bs | random | linear | | ----- | ------ | ------- | | 64K | 6x | 7x | | 256K | 13x | 17x | | 512K | 16x | 13x | | 64MB | 14x | 14x | | 256MB | 15x | 15x | | 512MB | 14x | 15x | | bs | random | linear | | ----- | ------ | ------- | | 64K | 3x | 3x | | 256K | 3x | 3x | | 512K | 3x | 3x | | 64MB | 3x | 3x | | 256MB | 3x | 3x | | 512MB | 3x | 3x | Signed-off-by: Mario Alfredo Carrillo Arevalo <[email protected]>
1 parent 834c91e commit 90bed68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static int hyper_setup_shared(struct hyper_pod *pod)
465465
}
466466

467467
if (mount(pod->share_tag, SHARED_DIR, "9p",
468-
MS_MGC_VAL| MS_NODEV, "trans=virtio") < 0) {
468+
MS_MGC_VAL| MS_NODEV, "trans=virtio,msize=524288") < 0) {
469469

470470
perror("fail to mount shared dir");
471471
return -1;

0 commit comments

Comments
 (0)