-
Notifications
You must be signed in to change notification settings - Fork 153
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
Is it able to disable the functionality to write the switch logging into a file? #65
Comments
Are you using the p4lang/tutorials Github repo code to run BMv2? Are you running simple_switch_grpc command yourself, supplying all command line options? Something else? |
Oh, sorry about not mentioning this. I am using the tutorials Github repo code to run BMv2. |
I do not know how to do this off the top of my head. The tutorials repository has a fair amount of Python code that is executed when you do I did a quick experiment by locally editing the tutorials/utils/run_exercise.py file as shown in the diff output below, and when I did
|
Thanks , I will give a try to see if it works or not. |
It seems that the switch outputs the logging into another file named p4s.s1.log, which is located in /tmp. I think it's very difficult to turn the logging off at this point. |
If you avoid using mininet, and run I am less familiar with mininet and all of its options and how to control them. You should consider asking people more familiar with mininet, and/or try asking your question on https://forum.p4.org, to see if someone there knows how to do what you wish. |
Thanks for your suggestions. |
Good day,
I am testing my program with the Bmv2 model but the switch outputs the logging to a local log file, like s1.log, which will grow very large, like 8 ~ 9 GB, which would make the VM crash. So I wonder there is a way to turn off the logging? Or any recommended suggestions?
Thanks,
The text was updated successfully, but these errors were encountered: