Demo3 for events
There are two kinds of tasks:
- sending tasks: only sending events
- receiving tasks: only receiving events
There three parameters for scaling the workload:
- SEND_TASK_COUNT number of sending tasks
- RECV_TASK_COUNT number of receiving tasks
- SEND_EVENT_COUNT number of events to send per sending task
- Note:
- All events are send with the same eventid, so every receiving task, gets all events from all sending tasks.
The first receiving task collects also some information for performance measurements:
- total time for receiving all events for one task
- the ratio between INTERshort PINGPONG IPC call and IPC call to event-server
- time of every single IPC call for receiving events
- Note:
- Please, set the correct value for the variable PINGPONG_IPC for your system to get a meaningful ratio value.
Source in
demo3/main.c