Optimize RFsimulator to improve E2E performance

This improves the RFsimulator code to reach a ~40% E2E throughput
improvement (depending on the machines).

Changes:
- reduce ring buffer size
- code cleanup for readability
- set TCP kernel parameters
This commit is contained in:
Bruno Mongazon-Cazavet
2023-09-13 16:36:17 +02:00
committed by Robert Schmidt
parent 79fd37b489
commit 21790f9c4f
3 changed files with 298 additions and 185 deletions
-5
View File
@@ -186,14 +186,10 @@ int main(int argc, char *argv[]) {
serviceSock=client_start(argv[2],atoi(argv[3]));
}
uint64_t typeStamp=ENB_MAGICDL;
bool raw = false;
if ( argc == 5 ) {
raw=true;
if (strcmp(argv[4],"UL") == 0 )
typeStamp=UE_MAGICDL;
}
samplesBlockHeader_t header;
@@ -213,7 +209,6 @@ int main(int argc, char *argv[]) {
setblocking(serviceSock, blocking);
if ( raw ) {
header.magic=typeStamp;
header.size=blockSize;
header.nbAnt=1;
header.timestamp=timestamp;