Issue #18215 has been reported by Alex Harvey.

----------------------------------------
Bug #18215: processorcount counting CPU cores on Solaris
https://projects.puppetlabs.com/issues/18215

Author: Alex Harvey
Status: Unreviewed
Priority: Normal
Assignee: Alex Harvey
Category: solaris
Target version: 
Keywords: 
Branch: 
Affected Facter version: 


The processorcount fact on Solaris is counting CPU cores -

<pre>
myhost# facter |grep proc
physicalprocessorcount => 1
processor0 => SPARC64-VII
processor1 => SPARC64-VII
processor2 => SPARC64-VII
processor3 => SPARC64-VII
processor4 => SPARC64-VII
processor5 => SPARC64-VII
processor6 => SPARC64-VII
processor7 => SPARC64-VII
processorcount => 4
</pre>

- but on linux is counting CPU threads -

<pre>
myotherhost# facter |grep proc
physicalprocessorcount => 1
processor0 => Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
processor1 => Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
processor2 => Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
processor3 => Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
processor4 => Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
processor5 => Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
processor6 => Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
processor7 => Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
processorcount => 8
</pre>

This is a single 4-core CPU with 8 threads similar to the Solaris example above.

A patch here should also provide a processorcorecount fact that preserves the 
existing behaviour of processorcount on Solaris.

See discussions in puppet users 
https://groups.google.com/forum/?fromgroups=&pli=1#!topic/puppet-users/rOj9OszhlQM

And puppet developers
https://groups.google.com/forum/?fromgroups=&pli=1#!topic/puppet-dev/payc4ToNcGQ


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to