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

Add garbage collector agg function #340

Open
ymarcon opened this issue Jul 10, 2024 · 0 comments
Open

Add garbage collector agg function #340

ymarcon opened this issue Jul 10, 2024 · 0 comments
Assignees
Milestone

Comments

@ymarcon
Copy link
Member

ymarcon commented Jul 10, 2024

Add the possibility to trigger the R garbage collector on the server side by calling gc(), as a complement of the rm() function (called by rmDS).

> gc()
          used (Mb) gc trigger  (Mb) max used  (Mb)
Ncells 1695520 90.6    2607968 139.3  2607968 139.3
Vcells 3576174 27.3    8388608  64.0  4930149  37.7

Bonus is to return the output of gc: it is not disclosive, and it may be useful for the user.

This would encourage good memory management practices on the R server side, for a better usage of the shared system resources.

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

No branches or pull requests

2 participants