Minimum RAM Requirements Warning Message
I am seeing and have been seeing a lot of people running with low RAM, 2GB for example. We addressed this issue once before and thought there would be a RAM check and then a message stating the computer does not have enough RAM. This message needs to be on the Console and GUI. Could we please get this feature added soon? I know this can't take too much coding to make it happen. I would suggest a minimum limit of 6GB RAM available since 6GB can run a minimally configured system. The warning message should be just that, a warning, not cause a stop of the machine.
#8 Updated by Sean Fagan about 3 years ago
By the end of the week? I could, I suppose, but note that we're talking adding some UI to it, which is so not my forte.
The function is pre_install_check. Checking for hw.physmem being less than, say, 4G is quite possible. It's using dialog that will take me the most time.
#10 Updated by Sean Fagan about 3 years ago
- Status changed from 19 to Investigation
- Assignee changed from Sean Fagan to Jakub Klama
Apparently the string is wrong for bhyve. And the syctl variable. Jakub, please adjust it accordingly. (Or, I guess, make the kernel set kern.vm_guest to bhye, as that'd do the same thing.) Same change needs to go into fn9 and fn10.
If all you wan to do is change the line to use "$(sysctl -n hw.hv_vendor)" != "bhyve bhyve", that'd work, but make sure there aren't any annoying trailing spaces or anything. :)
#14 Updated by Warren Block about 3 years ago
This patch parameterizes the minimum value of memory in gigabytes so it can be used in the dialog without repeating literal values. It rewords the message to use the standard GB abbreviation used in the docs and to use shorter, more precise sentences. ("You" might have a lot more than 4 GB of RAM, but this computer doesn't have it.) Also, it breaks up the separate parts of the message onto separate lines. The default option was set to Cancel. Not really sure if the work to return a 1 or 0 is necessary, rather than the plain dialog return codes, so didn't touch that.
Note that we say 8 GB is the recommended minimum value in the user guide.
Attempted to test on 9.10.2, the installer did not call pre_install_check(), possibly due previous setup being needed.