[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: i386/90641: top not show 2 CPU
The following reply was made to PR i386/90641; it has been noted by GNATS.
From: "Alexander I. Mogilny" <sg@xxxxxxxxxxxxxxxxxxxxxx>
To: bug-followup@xxxxxxxxxxx
Cc: seacat@xxxxxxxx
Subject: Re: i386/90641: top not show 2 CPU
Date: Tue, 31 Jan 2006 18:07:22 +0200
> I have never see CPU #1 work or not.
>
> lartnec# top
>
> last pid: 66813; load averages: 1.37, 1.09, 1.07
> up 23+21:36:14 11:11:37
> 161 processes: 1 running, 160 sleeping
> CPU states: 23.0% user, 0.0% nice, 9.8% system, 0.0% interrupt, 67.3% idle
> Mem: 206M Active, 1187M Inact, 213M Wired, 51M Cache, 112M Buf, 344M Free
> Swap: 2048M Total, 2048M Free
>
> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
> 66662 nagios 1 96 0 3260K 2728K select 0 0:00 1.08% snmpwalk
> 66679 nagios 1 96 0 3260K 2728K select 0 0:00 0.81% snmpwalk
> 66680 nagios 1 96 0 3260K 2728K select 0 0:00 0.81% snmpwalk
> 66596 nagios 1 96 0 3260K 2728K select 0 0:00 0.75% snmpwalk
> 66659 nagios 1 96 0 3260K 2728K select 0 0:00 0.66% snmpwalk
> 66609 nagios 1 96 0 3260K 2728K select 0 0:00 0.56% snmpwalk
> 62885 cacti 1 -8 0 15884K 15184K piperd 0 0:02 0.49% php
> 66656 nagios 1 96 0 3260K 2728K select 0 0:00 0.44% snmpwalk
> 66633 nagios 1 96 0 3260K 2728K select 0 0:00 0.44% snmpwalk
> 66661 nagios 1 96 0 3260K 2728K select 0 0:00 0.44% snmpwalk
It seem for all processes to run on one CPU: CPU#0.
Try to set machdep.hyperthreading_allowed sysctl variable to 1 by
following command:
# sysctl machdep.hyperthreading_allowed=1.
This issue seem to be expalined at
http://www.freebsd.org/releases/6.0R/relnotes-i386.html
<cut>
Because of an information disclosure vulnerability on processors using
Hyper-Threading Technology (HTT), the machdep.hyperthreading_allowed
sysctl variable has been added. It defaults to 1 (HTT enabled) on
FreeBSD CURRENT, and 0 (HTT disabled) on the 4-STABLE and 5-STABLE
development branches and supported security fix branches. More
information can be found in security advisory FreeBSD-SA-05:09.htt.
</cut>
--
AIM-UANIC