mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
lwip: set some reasonable default rcv buf size
lwip reports via getsockopt the size of the default size of the receive buffer to the netperf server. lwip returns 2GB and netperf server uses this value to allocate some buffers - which of course fails with out of memory. Reduces the "default size" to some smaller value. With the commit we are not forced anymore to (but still can) use specific netperf client options regarding memory allocations of the receive buffer.
This commit is contained in:
parent
e35dbd3353
commit
8d9e7d0da2
@ -62,7 +62,7 @@
|
||||
#define TCP_SND_BUF (32 * TCP_MSS)
|
||||
#define TCP_SND_QUEUELEN ((32 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
|
||||
|
||||
#define RECV_BUFSIZE_DEFAULT 2147483647 /* this is actually INT_MAX, default value */
|
||||
#define RECV_BUFSIZE_DEFAULT 128 * 1024
|
||||
|
||||
#define PBUF_POOL_SIZE 96
|
||||
|
||||
|
@ -178,7 +178,7 @@ set packet_size 1024
|
||||
set netperf_tests "TCP_STREAM TCP_MAERTS"
|
||||
|
||||
foreach netperf_test $netperf_tests {
|
||||
spawn bin/netperf_host -H $ip_addr -P 1 -v 2 -t $netperf_test -c -C -- -m $packet_size -S 0,65520 -P 49153,49153
|
||||
spawn bin/netperf_host -H $ip_addr -P 1 -v 2 -t $netperf_test -c -C -- -m $packet_size -P 49153,49153
|
||||
set netperf_id $spawn_id
|
||||
|
||||
run_genode_until "Segment" 60 $netperf_id
|
||||
|
Loading…
x
Reference in New Issue
Block a user