Mellanox / sockperf

Network Benchmarking Utility
Other
585 stars 119 forks source link

Memory issues #223

Closed clydedcruz closed 1 year ago

clydedcruz commented 1 year ago

When running sockperf on an Ubuntu machine with 8GB RAM I see the following if my -t is set to 2000.

sockperf: test failed because of an exception with the following information:
    std::bad_alloc
sockperf: ERROR: program exits because of an error. (errno=12 Cannot allocate memory)

Is there a reccomended hardware config to use for running long lived tests with sockperf ? i.e. for days/ weeks.

igor-ivanov commented 1 year ago

There is not common advice for this. sockperf collects information about every packet. Minimal size of unit is 14bytes. So total number of required memory depends on test scenario and network configuration. For example you can send single packet per second in throughput mode as tp --mps=1 for long test duration successfully.