Sponsored Content
Full Discussion: RDTSC use in C:
Top Forums Programming RDTSC use in C: Post 302323492 by Sivaraman on Monday 8th of June 2009 04:51:14 AM
Old 06-08-2009
CPU & Memory Finding CPU speed while CPU is in Throttling

Hi ,

I am trying to find out the Speed of the CPU while it is in 87.5 % Throttling. I am using RDTSC to get the Frequency of the Processor. Its reporting as 15 GHz while it is running in the lowest Speed. I need to validate whether CPU is running in the specified speed while it is in Throttling. As Calv notified i cannot use RDTSC, what could be the better way of doing. could you please any one help me.

Thanks
Siva
 
sleep(1)							   User Commands							  sleep(1)

NAME
sleep - suspend execution for an interval SYNOPSIS
sleep time DESCRIPTION
The sleep utility will suspend execution for at least the integral number of seconds specified by the time operand. OPERANDS
The following operands are supported: time A non-negative decimal integer specifying the number of seconds for which to suspend execution. EXAMPLES
Example 1: Suspending command execution for a time To execute a command after a certain amount of time: example% (sleep 105; command)& Example 2: Executing a command every so often example% while true do command sleep 37 done ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of sleep: LANG, LC_ALL, LC_CTYPE, LC_MES- SAGES, and NLSPATH. EXIT STATUS
The following exit values are returned: 0 The execution was successfully suspended for at least time seconds, or a SIGALRM signal was received (see NOTES). >0 An error has occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
wait(1), alarm(2), sleep(3C), wait(3UCB), attributes(5), environ(5), standards(5) NOTES
If the sleep utility receives a SIGALRM signal, one of the following actions will be taken: o Terminate normally with a zero exit status. o Effectively ignore the signal. The sleep utility will take the standard action for all other signals. SunOS 5.10 1 Feb 1995 sleep(1)
All times are GMT -4. The time now is 04:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy