Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
19 Views

how to configure sample rate (sample after value) in Vtune amplifier 2011 using command line

Hi everyone,
I am a new Intel Vtune amplifier 2011 user. I am running Vtune in a Linux (Centos) server where I don't have a GUI. I am trying to set the sample rate usingthe command line but without success. Can anyone tell me how to do that using the command line tool amplxe-cl ??
Thanks
Ahmed
0 Kudos
5 Replies
Highlighted
Employee
19 Views

The user cannot modify predefined analysis - for sample interval, see below example:

# source /opt/intel/vtune_amplifier_xe_2011/amplxe-vars.sh
# amplxe-runss --interval 15 -- ./primes.icc
Collection started
Determining primes from 1 - 100000
Found 9592 primes
# amplxe-cl -report hotspots
Using result path `/home/peter/problem_report/r004'
Executing actions 74 % Generating a report
Function Module CPU Time
findPrimes primes.icc 2.955
Executing actions 99 % done

Please note that you can use amplxe-gui to open result file under r004

Regards, Peter

0 Kudos
Highlighted
Beginner
19 Views

thanks peter for your reply, but I didn't really understand if the sampling rate of vtune can be modified or not ??? I am talking about hardware counters sampling, I run vtune as follows :
amplxe-cl -collect-with runsa -duration 60 -knob event-config=CPU_CLK_UNHALTED.THREAD_P -verbose -analyze-system -target-pid 14386
And I always get sample after value of 2,000,000 for CPU_CLK_UNHALTED.TOTAL_CYCLES
Is there any way to reduce this value, for example to 100, 000 ???
I am using a linux server which has no GUI at all, so I can't use amplxe-gui. And honestly the documents of the vtune command line is terrible. It is not as good as the GUI documents.

0 Kudos
Highlighted
Valued Contributor II
19 Views

Change event-config to event-config=CPU_CLK_UNHALTED.THREAD_P:sa=100000
0 Kudos
Highlighted
Beginner
19 Views

it seems like it working , I got bigger measurement file , but when I check the file in the GUI, I still see 2000,000 per each sample (Module Timeline), is this normal ? or it is a bug somewhere in the software
0 Kudos
Highlighted
Employee
19 Views

Usually "1000 samples per second" is recommended to users. SoSAV value could be : CPU MHz of yoursystem / 1000. For example (2GHz CPU) : SAV = 2,000,000,000 / 1000 = 2000000

event-config=CPU_CLK_UNHALTED.THREAD_P:sa=2000000

Regards, Peter
0 Kudos