Skip to content

Commit dd6cb26

Browse files
committed
docs: add vzNAT and lima:shared to benchmark results
Signed-off-by: Akihiro Suda <[email protected]>
1 parent cb6b4cd commit dd6cb26

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

website/content/en/docs/config/network/vmnet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ The range of the IP address is not specifiable.
3737
3838
The "vzNAT" network does not need the `socket_vmnet` binary and the `sudoers` file.
3939

40+
The "vzNAT" network also has a significant advantege in the throughput. See the [benchmark result](../port.md#benchmarks).
41+
4042
## socket_vmnet
4143
### Managed (192.168.105.0/24)
4244

website/content/en/docs/config/port.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,32 @@ LIMA_SSH_PORT_FORWARDER=false limactl start
7474
- Performs faster compared to SSH based forwarding, when VSOCK is not available
7575
- No additional child process for port forwarding
7676

77+
78+
## Accessing ports by IP address
79+
80+
To access a guest's ports by its IP address, connect the guest to the `vzNAT` or the `lima:shared` network.
81+
82+
The `vzNAT` network is extremely faster and easier to use, however, `vzNAT` is only available for [VZ](./vmtype/vz.md) guests.
83+
84+
```bash
85+
limactl start --network vzNAT
86+
```
87+
88+
See [Config » Network » VMNet networks](./network/vmnet.md) for the further information.
89+
7790
### Benchmarks
7891

7992
<!-- When updating the benchmark result, make sure to update the benchmarking environment too -->
8093

81-
| Use case | GRPC | **SSH (w/ VSOCK)** | SSH (w/o VSOCK) |
82-
|-------------|----------------|--------------------|-----------------|
83-
| TCP | 5.37 Gbits/sec | 6.32 Gbits/sec | 4.06 Gbits/sec |
84-
| TCP Reverse | 7.11 Gbits/sec | 7.47 Gbits/sec | 3.84 Gbits/sec |
94+
| By localhost | SSH (w/o VSOCK) | GRPC | SSH (w/ VSOCK) |
95+
|--------------|-----------------|----------------|-----------------|
96+
| TCP | 4.06 Gbits/sec | 5.37 Gbits/sec | 6.32 Gbits/sec |
97+
| TCP Reverse | 3.84 Gbits/sec | 7.11 Gbits/sec | 7.47 Gbits/sec |
98+
99+
| By IP address | lima:shared | vzNAT |
100+
|---------------|----------------|----------------|
101+
| TCP | 3.46 Gbits/sec | 59.2 Gbits/sec |
102+
| TCP Reverse | 2.35 Gbits/sec | 130 Gbits/sec |
85103

86104
The benchmarks detail above are obtained using the following commands
87105

0 commit comments

Comments
 (0)