Hi,
I've installed the Media Server Professional 2015R3 on a CentOS 7 system. The install went well, and encode and decode samples are working fine.
Not so lucky with the Metrics Monitor. When I either run the provided binary our build and run the sample, it immediately fails when CTTMetrics_Init(0 is called with:
ERROR: Failed to initialize metrics monitor, error code -10
Doc is no help; it list no error return possibilities.
Any suggestions on getting it going?
Thanks,
John
链接已复制
Hi,
Thanks for the reply.
The system is a Supero X10SLH-F. It has 8 cores - Intel(R) Xeon(R) CPU E3-1285 v3 @ 3.60GHz. It has 12GB of memory.
And yes, it builds fine with the script, but does not run when the script is executed.
Decode and encode samples run fine.
Regards,
John
Nothing quite so obvious as running non-root:
[root@sut-1300 metrics_monitor]# ls -l
total 24
-rwxr-xr-x 1 root root 95 Dec 13 02:41 build.sh
-rwxr-xr-x 1 root root 2947 Feb 2 13:14 cttmetrics_sample.cpp
-rwxr-xr-x 1 root root 9122 Feb 2 13:15 metrics_monitor
-rwxr-xr-x 1 root root 72 Dec 13 02:41 run.sh
[root@sut-1300 metrics_monitor]# file metrics_monitor
metrics_monitor: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0xf2730210de6ae8dcc6b74b6700a56210afaaf352, not stripped
[root@sut-1300 metrics_monitor]# whoami
root
[root@sut-1300 metrics_monitor]# cat run.sh
export LD_LIBRARY_PATH=$PWD/../_bin:$LD_LIBRARY_PATH
./metrics_monitor
[root@sut-1300 metrics_monitor]# ./run.sh
ERROR: Failed to initialize metrics monitor, error code -10
The error you are observing corresponds to - CTT_ERR_DRIVER_NO_INSTRUMENTATION = -10, /* i915 driver has no instrumentation */
(This is available in the <msdk install>/tools/metrics_monitor/include/cttmetrics.h )
This could be an issue with the stack or kernel or metrics_monitor issue itself. To understand more, could you please provide the following information? I could take a look at it and also escalate it. Provide the output of:
- uname -ar
- lmsod | grep i915
- what is the MSS version i use (the latest one on the web is the R4 version, hope you re using that).
Thanks.
Ok, here you are:
[root@sut-1300 Intel-Samples]# uname -ar
Linux sut-1300 3.10.0-123.9.3.29573.MSSr3.el7.x86_64 #1 SMP Thu Jan 29 18:15:47 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@sut-1300 Intel-Samples]# lsmod | grep i915
i915 734314 3
drm_kms_helper 52758 2 ast,i915
drm 297577 6 ast,ttm,i915,drm_kms_helper
i2c_algo_bit 13413 3 ast,igb,i915
i2c_core 40325 7 ast,drm,igb,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
video 19267 1 i915
MSS version is from this last January - MediaServerStudioProfessionalEvaluation2015R3 Perhaps there's a new release out now? Would that help?
Thanks.
John
Thanks for the information. Will get back to you soon.
MSS version is from this last January - MediaServerStudioProfessionalEvaluation2015R3 Perhaps there's a new release out now? Would that help? --> Yes, please update to the latest version available now (which is R4)
Hi John - Can you verify the KMD driver installation? The metrics monitor requires instrumented KMD driver from the Media Server Studio package, and please make sure that driver is installed correctly (we package 2 install scripts and getting started guide, which goes over install instructions including KMD driver install).
Smoke test to check if KMD driver w/instrumentation was installed from MSS correctly - if this file does not exist, then KMD from MSS needs to be installed again “/sys/kernel/debug/dri/0/i915_ringstats"
If this file above exists and you still get the error, please let us know. Thanks.
John - Yes, please update to R4 and you should find the instrumentation file in it. (Although there is no reason why it should not already be part of R3 - it is included. My guess being KMD driver from MSS was probably not installed correctly).
gabriel pisin wrote:
Any news ? I am running Iris Pro 580 everithing is OK, except metrics monitor
[root@localhost sample]# ./run.sh
ERROR: Failed to subscribe for metrics, error code 1
[root@localhost sample]#I have exactly the same problem and it is very embaransing not to have metrics on the Iris!
Would be very helpfull if somebody from Intel responds to this!
Hi gabriel and Stan,
There is the other thread is talking about this issue too, someone in Ubuntu changed the complier version go g++4.9 and fixed it temporarily before the reboot. This is like a software issue.
https://software.intel.com/en-us/forums/intel-media-sdk/topic/733549
Mark
gabriel p. wrote:
Any news ? I am running Iris Pro 580 everithing is OK, except metrics monitor
[root@localhost sample]# ./run.sh
ERROR: Failed to subscribe for metrics, error code 1
[root@localhost sample]#We have same problem, so i pass this problem and now using intel_gpu_top from intel-gpu-tolols package, it works!
Rashad
Hi rasko,
Sorry for the late response, the update and workaround are posted at:
https://software.intel.com/en-us/forums/intel-media-sdk/topic/733549
Please try it and let me know if it doesn't work
Mark
