Skip to content

(FACT-2805) Read available memory from MemAvailable#2109

Merged
Filipovici-Andrei merged 1 commit intopuppetlabs:mainfrom
florindragos:FACT-2805
Oct 5, 2020
Merged

(FACT-2805) Read available memory from MemAvailable#2109
Filipovici-Andrei merged 1 commit intopuppetlabs:mainfrom
florindragos:FACT-2805

Conversation

@florindragos
Copy link
Copy Markdown
Contributor

@florindragos florindragos commented Sep 29, 2020

Available memory should use the new MemAvailable info in /proc/meminfo when available. When not, fall back to the formula used in facter 3 (MemFree + Cached + Buffers)
For capacity, just use Total - Available

@florindragos florindragos added the bug Something isn't working label Sep 29, 2020
@florindragos florindragos requested review from a team September 29, 2020 09:56
@puppetcla
Copy link
Copy Markdown

CLA signed by all contributors.

@florindragos florindragos changed the title (FACT-2805) Add Cached and Buffers to memfree (FACT-2805) Read available memory from MemAvailable Oct 1, 2020
Comment thread spec/facter/resolvers/memory_resolver_spec.rb Outdated
Available memory should use the new MemAvailable info in /proc/meminfo when available. When not, fall back to the formula used in facter 3 (MemFree + Cached + Buffers)
For capacity, just use Total - Available
@Filipovici-Andrei Filipovici-Andrei merged commit 7dd07e3 into puppetlabs:main Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants