free5gc / upf

Apache License 2.0
32 stars 51 forks source link

CPU load 100%+ for free5gc-upf (free5gc 3.0.4) #11

Closed Thorntonchen closed 3 years ago

Thorntonchen commented 3 years ago

you once mentioned : "We’ll change the message queue to blocking in the next stage" in forum. however,it's still in O_NONBLOCK. (upf_init.c) static Status EventQueueInit(void *data) { Self()->eventQ = EventQueueCreate(O_RDWR | O_NONBLOCK); if change the value to O_RDWR | 0,the cpu load will be decrease to a reasonable value like 7%. but,upf was terminated without any notification to logger in this status.

free5gc-org commented 3 years ago

@Thorntonchen

This issue was already fixed in tag v1.0.0. Thanks for your report.