Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

Error using command in CLI

santoshsridhar
Beginner
646 Views
Hi,
While I try to execute the "command" action in CLI.
The steps followed were:
1.Start a collection. For example: $inspxe-cl -collect mi2 -r newfolder /home/../
2.In another window try :
$ inspxe-cl -command memory-growth-start -r newfolder.
This gives following as message:
Warning: Cannot open/write to file: [/home/ssantosh/work/hot/inspxe-runmc.txt]
Warning: Non-fatal internal problem was detected and logged.
Error: An internal error has occurred. Our apologies for this inconvenience. Please gather a description of the steps leading up to the problem and contact the Intel customer support team.
Warning: Cannot open/write to file: [/home/ssantosh/work/hot/inspxe-runmc.txt]Warning: Non-fatal internal problem was detected and logged.Error: An internal error has occurred. Our apologies for this inconvenience. Please gather a description of the steps leading up to the problem and contact the Intel customer support team.
Request to give some inputs on this.
Regards,
Santosh
0 Kudos
2 Replies
Peter_W_Intel
Employee
646 Views

Hi,

I cannot reproduce this problem on my side, here are steps:

1. Use a simplest case, in a loop to allocate small memory and wait 5 seconds in each iteration...elapsed timewill be10 minutes. See below mem_growth.c

[cpp]#include #define MAX_NUM 120 /* total 120 times to allocate memory, elapsed time 600s */ int main() { char *str[MAX_NUM]; int i; for (i=0; i = (char *) malloc (16*sizeof(char)); sleep (5); /* wait 5 seconds, each time */ } return 1; } [/cpp]



2.gcc -g mem_growth.c -o mem_growth

3.inspxe-cl -collect mi3 -- ./mem_growth

4. In other console, do
a)inspxe-cl -command memory-growth-start -r r001mi3 ; wait for awhile
b) inspxe-cl -command memory-growth-end -r r001mi3

5. In original console, after 10 minutes, will see -
[root@NHM02 problem_report]# inspxe-cl -collect mi3 -- ./mem_growth
Used suppression file(s): []

2 new problem(s) found
1 Memory growth problem(s) detected
1 Memory leak problem(s) detected

6. You may useinspxe-gui to check, in detail

Regards, Peter

0 Kudos
Peter_W_Intel
Employee
646 Views
I also build example code / testedmemory-growthwith non-root user, set result directory in /tmp. It works.

My inspector XE 2011 version:
[peter@NHM02 problem_report]$ inspxe-cl -version
Intel Inspector XE 2011 Update 8 (build 206270) Command Line tool
Copyright (C) 2009-2011 Intel Corporation. All rights reserved.
0 Kudos
Reply