mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
Merge remote-tracking branch 'bpodrygajlo/vrtsim-perf-fix' into integration_2026_w26
fix(vrtsim): Reduce OS scheduler pressure caused by vrtsim timing thread (#235) Increase the usleep to 20 uS to reduce the pressure on the OS scheduler. This reduces the number of context switches and increases performance. The value 20uS is approximately half a symbol in mu1 and shouldn't cause too much extra delay. Reviewed-by: Robert Schmidt <robert.schmidt@openairinterface.org>
This commit is contained in:
@@ -272,7 +272,7 @@ static void *vrtsim_timing_job(void *arg)
|
|||||||
shm_td_iq_channel_produce_samples(vrtsim_state->channel, samples_to_produce);
|
shm_td_iq_channel_produce_samples(vrtsim_state->channel, samples_to_produce);
|
||||||
last_sample_index = sample_index;
|
last_sample_index = sample_index;
|
||||||
}
|
}
|
||||||
usleep(1);
|
usleep(20);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user