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

Profiling tool add CSV output option and add new combined mode #3342

Merged
merged 315 commits into from
Sep 2, 2021

Conversation

tgravescs
Copy link
Collaborator

@tgravescs tgravescs commented Aug 30, 2021

fixes #3047
fixes #3364

Add an option to the profiling tool to output csv files in addition to the text output.

While doing this I also got a request to run the profiling tool on 10,000+ event logs at a time and output a single table. To support that I made some changes for memory management and added a new combined mode. The combined mode is the same as compare where all applications get put into a single table, except for it doesn't output the 2 tables that actually try to compare sqlids and job ids between the applications. The main scale issue here was with the memory needed to keep all the raw application info in memory. I changed it so that it processes each application and then just outputs a summary information which is much smaller. for the new combined mode it processes each application separately in the thread pool and then at the end combines all the summary information into single tables. I processed 11618 apps in 20 minutes using the combined mode. I did require quite a bit of memory still - around 120GB. I didn't try with less. The combined mode options outputs files into a /combined/ subdirectory.

To support outputting to csv I changed most of the functions to be getters and then we print the information separately. ProfileOutputWriter was extended to know how to output text and csv format.

@tgravescs tgravescs added this to the Aug 30 - Sept 10 milestone Aug 30, 2021
@tgravescs tgravescs self-assigned this Aug 30, 2021
@tgravescs
Copy link
Collaborator Author

build

@tgravescs
Copy link
Collaborator Author

build

@tgravescs
Copy link
Collaborator Author

Note, I ran over the same 11618 apps with 50GB memory and it took 31 minutes.

@tgravescs
Copy link
Collaborator Author

looks like my branch isn't up to date, will upmerge

@tgravescs
Copy link
Collaborator Author

build

Signed-off-by: Thomas Graves <tgraves@nvidia.com>
@tgravescs
Copy link
Collaborator Author

build

@revans2 revans2 linked an issue Sep 2, 2021 that may be closed by this pull request
@tgravescs tgravescs merged commit f774e1a into NVIDIA:branch-21.10 Sep 2, 2021
@tgravescs tgravescs deleted the profilecsvout branch September 2, 2021 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] analysis tool cannot handle a job with no tasks. [FEA] Profiling tool: Structured output format
2 participants