Closed atomashevic closed 1 year ago
Thanks for pointing this issue out, @atomashevic!
I must have miss counted the digits when first checking on Linux. I switched to "available"
I used 1000
rather than 1024
to be on the conservative side. Otherwise, there can be an error that is unintelligible and the purpose of this error is to be a bit more specific of why there is an error.
Closing as resolved
Hi,
I've tried to run a dynEGA model upon installing
EGAnet version: 2.0.2
and it fails because it provides incorrect estimation of free memory needed to run the model.I tried to run this model:
And here's the memory report from RStudio along with the error code
I think the error comes from the assumption that
free
on Linux returns values in bytes, instead the default is in kilobytes (actually it's kibibytes, but should be the same thing): https://man7.org/linux/man-pages/man1/free.1.htmlAlso, I think you should use the number stated in the
available
column. This corresponds to the "Free" section in RStudio's memory report. In the case above the available columns says7444920
.I tested the following change and it works for me. Changed lines 501-502 of
helpers.R
:My session info: