Skip to content
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

Obtaining socket stats for all other tests #246

Open
hrishikeshathalye opened this issue Nov 7, 2021 · 3 comments
Open

Obtaining socket stats for all other tests #246

hrishikeshathalye opened this issue Nov 7, 2021 · 3 comments

Comments

@hrishikeshathalye
Copy link
Contributor

hrishikeshathalye commented Nov 7, 2021

Can the code be changed in some way to obtain socket stats for tests other than tcp1up using the same SsRunner?
All the other runners inherit from ProcessRunner, so my guess is adding the code to detect the SOCKET_STATS option there will be the way to do it?
Something similar to the below lines of code in NetperfdemoRunner, but that can work for tests other than TCP_STREAM?


if args['test'] == 'TCP_STREAM' and self.settings.SOCKET_STATS:
  self.add_child(SsRunner,
                 exclude_ports=(args['control_port'],),
                 delay=self.delay,
                 remote_host=None,
                 host=self.remote_host or 'localhost',
                 interval=args['interval'],
                 length=self.length,
                 target=self.host,
                 ip_version=args['ip_version'])
@tohojo
Copy link
Owner

tohojo commented Nov 8, 2021 via email

@hrishikeshathalye
Copy link
Contributor Author

I am trying to obtain stats for http-1up with a single worker and would like to have the stats for the underlying TCP socket that it uses

@tohojo
Copy link
Owner

tohojo commented Nov 8, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants