Jira (FACT-1643) processors.speed isn't collected correctly on linux

4 views
Skip to first unread message

Eric Delaney (JIRA)

unread,
May 31, 2017, 4:24:03 PM5/31/17
to puppe...@googlegroups.com
Eric Delaney created an issue
 
Facter / Bug FACT-1643
processors.speed isn't collected correctly on linux
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2017/05/31 1:23 PM
Priority: Normal Normal
Reporter: Eric Delaney

I was looking at RedHat and Ubuntu on Power and I noticed while looking at the code that we're not collecting the processors.speed fact correctly any more.

https://github.com/puppetlabs/facter/blob/master/lib/src/facts/linux/processor_resolver.cc#L67

We try to open a file that doesn't appear to exist any more (I wonder if this was deprecated or something). So on all the Linux machines in VMpooler we don't list a processors.speed fact. We should fix this for Linux Intel and Linux Power, and also probably fix Windows while we're at it.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Eric Delaney (JIRA)

unread,
May 31, 2017, 4:45:03 PM5/31/17
to puppe...@googlegroups.com
Eric Delaney commented on Bug FACT-1643
 
Re: processors.speed isn't collected correctly on linux

I was looking at something else when I figured out that part of the problem is that we don't the correct drivers installed for us to get speed.

[root@igizcfxk1ge1xyn cpu]# cpupower frequency-info
analyzing CPU 0:
no or unknown cpufreq driver is active on this CPU
boost state support:
Supported: yes
Active: yes
[root@igizcfxk1ge1xyn cpu]#

Which probably means that most customers won't have it installed either unless they really, really need it which makes me wonder how useful it is to collect it using the cpuinfo_max_freq file. Instead of pull the data from the /proc/cpuinfo file instead.

Eric Delaney (JIRA)

unread,
Jun 1, 2017, 11:52:03 AM6/1/17
to puppe...@googlegroups.com
Eric Delaney updated an issue
 
Change By: Eric Delaney
Method Found: Needs Assessment Inspection

Branan Riley (JIRA)

unread,
Mar 21, 2018, 7:11:02 PM3/21/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: linux needs_repro triaged
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (Jira)

unread,
Apr 21, 2022, 2:15:02 PM4/21/22
to puppe...@googlegroups.com
Josh Cooper commented on Bug FACT-1643
 
Re: processors.speed isn't collected correctly on linux

This only affects Facter 3, so I'm  going to close:

# /opt/puppetlabs/puppet/bin/facter processors.speed
 
# /opt/puppetlabs/puppet/bin/facter-ng processors.speed
2.00 GHz 

This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Josh Cooper (Jira)

unread,
Apr 21, 2022, 2:15:04 PM4/21/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Component/s: Facter 3
Reply all
Reply to author
Forward
0 new messages