-
Notifications
You must be signed in to change notification settings - Fork 22
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
Use wait4
and measure memory usage of children in the runner
#510
base: main
Are you sure you want to change the base?
Conversation
wait4
and measure memory usage of child in runnerwait4
and measure memory usage of children in the runner
dabfb50
to
461b929
Compare
I also made Marvin give us the memory statistics: Btw, I know that you've told me you don't like that we're always iterating through the results list to accumulate the results we want to print/compare. Do you think we should make an issue to address it? We could try to use owl to create a results data frame and then do some statistics/graphs? |
On a side note, do you think that adding I was thinking of ocaml-rusage or, more appropriately, extunix, since they are already dependencies. |
I don't understand what you're refering to 😅 |
Yes, I'd be very happy not to have to maintain this piece of C code haha. IIRC @chambart initially wrote some C bindings for wait4 but they were much more lightweight, they should still be in the commit history if you want to have a look |
This looks good but why is the |
I tried that at some point but I finally ended-up using the gnuplot ocaml bindings (see the code in |
I was talking the added functions in bench/report/runs.ml
I will look into these and try to get a pr on
It's because, in the
Ah yes, I forgot we already had graphs 😅 my bad |
461b929
to
c0d56bc
Compare
It seems OK! :)
Would be great, thanks for taking the time!
Haha OK, I was just wondering if you inverted two numbers or something. No I don't mind about it haha, it's just some benchmarking code, it does not matter.
Yes, I'm not sure how easily we can post them to Zulip. Maybe we can post them in a base64 encoding or something? To avoid having to upload them etc. |
70aca93
to
567473e
Compare
567473e
to
20fd63e
Compare
Made it depend on ygrek/extunix#58 directly. So we need to wait for a new release or pin it.
This is a nice feature! I might experiment with this in a separate PR 😃 |
Should Close #478
The PR is not ready yet, I still have to format the code, remove some comments, and I'm going to split this into two commits: one which focuses on introducing
wait4
and replacing the usage ofwaitpid
and another which counts and displaysmaxrss
.Also, I'm benchmarking this locally to see if the results are consistent with main.
But feel free to comment already :)