Issue #18215 has been updated by Hailee Kenney.

Status changed from In Topic Branch Pending Review to Merged - Pending Release

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

* Author: Alex Harvey
* Status: Merged - Pending Release
* Priority: Normal
* Assignee: 
* Category: solaris
* Target version: 
* Keywords: 
* Branch: https://github.com/puppetlabs/facter/pull/438
* 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to