-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load gen segmentation fault fix #173
Conversation
…elop Merging branch
CI MessageYour results will arrive shortly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In response to PR creation
CI Message
Run successful see results:
✔️ PR submitted to develop branch
✔️ Pktgen performance check passed
✔️ Speed Test performance check passed
❌ Linter Failed (please fix style errors)
[Results from nimbnode17]
-
Median TX pps for Pktgen: 10746272
Performance rating - 107.46% (compared to 10000000 average) -
Median TX pps for Speed Tester: 40098629
Performance rating - 100.25% (compared to 40000000 average)
Linter Output
examples/load_generator/load_generator.c:368: Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
examples/load_generator/load_generator.c:369: Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Total errors found: 2
@onvm will you play nice? |
@onvm maybe with the config? |
CI MessageYour results will arrive shortly |
@onvm again |
CI MessageYour results will arrive shortly |
@onvm ubuntu 18! nimbnode1 let's go! |
CI MessageYour results will arrive shortly |
CI MessageError: ERROR: Failed to copy ONVM files to nimbnode17 |
CI MessageYour results will arrive shortly |
CI MessageYour results will arrive shortly |
CI MessageError: ERROR: Failed to fetch results from nimbnode17 |
@onvm please grab the files this time |
CI MessageYour results will arrive shortly |
CI MessageError: ERROR: Script failed on nimbnode17 |
@onvm can you be kind |
CI MessageYour results will arrive shortly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@onvm can you be kind
CI Message
Run successful see results:
✔️ PR submitted to develop branch
✔️ Pktgen performance check passed
✔️ Speed Test performance check passed
✔️ Linter passed
[Results from nimbnode17]
-
Median TX pps for Pktgen: 10746272
Performance rating - 107.46% (compared to 10000000 average) -
Median TX pps for Speed Tester: 40125988
Performance rating - 100.31% (compared to 40000000 average)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dennisafa Thanks for fixing this! Here's a screenshot of my runs. I ran load_generator, and to test more than CI, ran 2 talking speed_testers in addition. I instantiated and destroyed them in random orders which worked fine, so cleanup worked. The fix seems to work well and makes sense that we just forgot the context setup from a few months ago.
@dennisafa good find, this seems easily detectable if we set some flags during init process. Can you create a task for that/submit a pr if you have time. |
thanks @kevindweb and @koolzz! yes, I will look into modifying init to check for this. |
May i depict a problem , in ./go.sh 0,1,2,3 3 0xF0 -s stdout the load-generator run well, but i test in share core **./go.sh 0,1,2,3 3 0xF0 -s stdout -c ** ,the load-generator not run . In OpenNetVM V 19.07. |
@Yongeverhuang Thanks for your comment. The only way I could replicate this issue was by having no active igb_uio devices loaded. If an active port is not detected, then mempools are not properly set up leading to that issue. Please verify that the manager + load_generator look like this when active: As a side note, a warning message in the NF should pop up indicating that no port is present. |
@dennisafa Thanks for help . Let me make a full description . In no share core way, run ./go.sh 0,1,2,3 0x1 0xF0 -s stdout in the manager ,the load_generator work well, like this |
Thank you for the screenshots. What branch of openNetVM are you running? Also, what command are you running to initiate the manager in shared core mode? |
@dennisafa -t argument just define how many pkts sent ,it will not shut down all the time in no share mode , unless using ctrl -c to stop it . Anyway,i also use the commands : manager with ./go.sh 0,1,2,3 0x1 0xF0 -a 0x7f000000000 -s stdout -c and load_generator with ./go.sh 1 -d 1.It performances not run too. |
Thanks! What branch are you using? We recently fixed the load_generator network function, but have not yet integrated the changes into the latest version of ONVM (master). |
Thanks ! I have solved the problem. Now the load_generator network function works well. |
We didn't call nf_setup before onvm_nflib_run, so segfault chaos ensued. See #164
Summary:
Added nf_setup before the onvm_nflib_run call banished the segfault. Test it by running manager with
./go.sh 0,1,2,3 3 0xF0 -a 0x7f000000000 -s stdout
and load_generator with./go.sh 1 -d 1
Should get this:
Usage:
Merging notes:
TODO before merging :
Test Plan:
Run the manager and NF as described above
Review:
@kevindweb tiny change, just need a sanity check