Extend facter/physical_memory_mb.rb to accommodate VMs

RESOLVED WONTFIX

Status

Cloud Services
Operations
RESOLVED WONTFIX
5 years ago
2 years ago

People

(Reporter: gene, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
Extend the custom fact "svn.mozilla.org/sysadmins/puppet/weave/modules/mysql/lib/facter/physical_memory_mb.rb" to accommodate VMs which don't reveal physical memory through dmidecode. Here's an implementation in python which gets the data from dmesg

http://www.appelboor.com/dump/check-my-memory.py
(Reporter)

Updated

5 years ago
Assignee: nobody → gene
it's been theorized that parsing the output of `free` would be sufficient.
or for that matter, /proc/meminfo
also, come to think of it, parsing dmesg isn't always safe. The ring buffer that dmesg works from can get overrun by audit messages and dmesg will no longer have the memory stat.
(Reporter)

Updated

4 years ago
Assignee: gene → nobody

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.