#5481 - Server performance RAM check: Consider using "available" instead of "free" on Linux
| Identifier | #5481 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Server performance RAM check: Consider using "available" instead of "free" on Linux |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 10.0.43 |
| Addon | [All Projects] General |
| Description | On linux, "free" returns Free and Available.
Free is unused RAM. Available is RAM that is unused + RAM that is used for cache / buffer. We should consider using "Available" opposed to "Free" because RAM used for cache is expendable; Linux will free that memory up when applications require it. |
| Steps to reproduce | |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
On linux, "free" returns both free and available memory. "Free" memory does not account for cached disk data which can be freed when an application requests memory. Therefore, the health check should be using "Available" instead, which accounts for this. This patch fixes it while falling back to "Free" in case "Available" is not returned.