Re: port sysutils/bsdstats intermittent mutex error on ia64 HEAD

From: Marcel Moolenaar <xcllnt_at_mac.com>
Date: Mon, 30 Nov 2009 13:31:41 -0800
On Nov 30, 2009, at 3:55 AM, Anton Shterenlikht wrote:

> I might've reported this before:
> 
> FreeBSD 9.0-CURRENT ia64
> 
> port bsdstats-5.5 sometimes works fine:
> 
> # /usr/local/etc/periodic/monthly/300.statistics -nodelay
> Posting monthly OS statistics to rpt.bsdstats.org
> #


Anton,

Can you install the port with the following patch applied.
This gives much better statistics. The vendor will be
either "Itanium" or "Itanium 2" and the actual CPU type
will be "Merced", "McKinley", "Montecito", etc..

See also:
	http://bsdstats.org/bt/cpus.html?os=FreeBSD

And look for CPU type "Itanium 2".

FYI,


Index: files/300.statistics
===================================================================
RCS file: /home/ncvs/ports/sysutils/bsdstats/files/300.statistics,v
retrieving revision 1.42
diff -u -r1.42 300.statistics
--- files/300.statistics	18 Sep 2009 21:19:34 -0000	1.42
+++ files/300.statistics	27 Sep 2009 20:15:34 -0000
_at__at_ -411,9 +411,8 _at__at_
               [Yy][Ee][Ss])
                   send_devices
                   echo "Posting monthly device statistics to $checkin_server"
-                  line=$( sysctl -n hw.model )
-                  VEN=$( echo $line | cut -d ' ' -f 1 )
-                  DEV=$( uri_escape $( echo $line | cut -d ' ' -f 2- ) )
+                  VEN=$( sysctl -n hw.family )
+                  DEV=$( uri_escape $( sysctl -n hw.model ) )
                   count=$( sysctl -n hw.ncpu )
                   report_cpu
                   echo "Posting monthly CPU statistics to $checkin_server"


-- 
Marcel Moolenaar
xcllnt_at_mac.com
Received on Mon Nov 30 2009 - 20:31:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC