On 06/30/09 13:46, julia harper wrote:
>
> Is there a way to dump the tstate of a cpu?  That doesn't seem to be 
> present in the kstat cpu_info.
Currently there is no way to dump the T-State of a cpu. During the 
implementation time, since T-State
was not widely used, observability features were not added. Might be in 
the future if seems necessary can
either add a value to kstat or add a DTrace probe.

Anup
>
> -- jdh
>
>
> Anup Pemmaiah wrote:
>> current_freq_Hz in "kstat cpu_info" gives the current freq of the 
>> processor from which you
>> can get the current P State of the processor.
>>
>> HTH
>> Anup
>>
>> julia harper wrote:
>>>
>>> Is there any way to simply dump the pstate of a cpu at a single 
>>> particular moment, rather than getting a pretty picture presentation 
>>> that gets updated on some interval? For example, a command such as:
>>>
>>> $ cpupstate -c 2
>>> 5
>>>
>>> to get a snapshot of cpu 2's current pstate (which is currently at 
>>> pstate 5).
>>>
>>> Basically I'm looking for the equivalant to the cpufreq-info tool 
>>> that is available on Linux.
>>>
>>> -- jdh
>>>
>>>
>>> Rafael Vanoni wrote:
>>>> I've uploaded a .tar file to our website with x86 binaries of the 
>>>> latest development version. These include the --cpu option.
>>>>
>>>> http://opensolaris.org/os/project/tesla/Work/Powertop/powertop.9364.tar 
>>>>
>>>>
>>>> Rafael
>>>>
>>>> julia harper wrote:
>>>>> I just tried running
>>>>> powertop -c 2
>>>>>
>>>>> and got a help message saying this is invalid:
>>>>>
>>>>> # powertop -c2
>>>>> powertop: illegal option -- c
>>>>> OpenSolaris PowerTOP version 1.1   (C) 2009 Intel Corporation
>>>>>
>>>>> Usage: powertop [option]
>>>>>   -d, --dump [count]    Read wakeups count times and print list of 
>>>>> top offenders
>>>>>   -t, --time [interval] Default time to gather data in seconds 
>>>>> [1-100s]
>>>>>   -v, --verbose         Verbose mode, reports kernel cyclic activity
>>>>>   -h, --help            Show this help message
>>>>>
>>>>>
>>>>> I'm running opensolaris 2009.06 pre-release (build 111a):
>>>>> # uname -a
>>>>> SunOS ban23uut175 5.11 snv_111a i86pc i386 i86pc Solaris
>>>>>
>>>>>
>>>>> -- jdh
>>>>>
>>>>>
>>>>> Rafael Vanoni wrote:
>>>>>> Hi Julia
>>>>>>
>>>>>> Yes, the default behavior is to average p-state residency between 
>>>>>> CPUs. The information is gathered through DTrace and kstats. 
>>>>>> There's a --cpu (or simply -c) option that will let you observe a 
>>>>>> specific processor.
>>>>>>
>>>>>> Note that there's a bug in the p-state report (6829404), which 
>>>>>> will be fixed today. I can send you an updated binary once it 
>>>>>> goes back, if you'd like.
>>>>>>
>>>>>> Thanks,
>>>>>> Rafael
>>>>>>
>>>>>> julia harper wrote:
>>>>>>>
>>>>>>> I have a powertop question.  I just tried it on opensolaris, and 
>>>>>>> can't figure out how to show the per cpu p-states.  It just 
>>>>>>> shows one number, and there doesn't seem to be an option for 
>>>>>>> more info.  Is that number an average of the per cpus p-states?  
>>>>>>> My system has 2 Nehalem cpus in it (16 hw threads).
>>>>>>>
>>>>>>> -- jdh
>>>>>>>
>>>>>>>
>>>>>>> ---------------------
>>>>>>>     Julia Harper, julia.harper at sun.com
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> pm-discuss mailing list
>>>>>>> pm-discuss at opensolaris.org
>>>>>>> http://mail.opensolaris.org/mailman/listinfo/pm-discuss
>>>>>>
>>>>>
>>>>
>>>
>


-- 
Anup Pemmaiah
Sun Microsystems


Reply via email to