Skip to main content
Improved formatting: code blocks
Source Link
Alexey Vazhnov
  • 1.4k
  • 18
  • 21

Sorry, I am first time here and can only ask questions ...questions…

valgrind --tool=massif --pages-as-heap=yes --massif-out-file=massif.out ./test.sh; grep mem_heap_B massif.out | sed -e 's/mem_heap_B=(.*)/\1/' | sort -g | tail -n 1

valgrind --tool=massif --pages-as-heap=yes --massif-out-file=massif.out ./test.sh; grep mem_heap_B massif.out | sed -e 's/mem_heap_B=\(.*\)/\1/' | sort -g | tail -n 1 

then grep mem_heap_B massif.out ... mem_heap_B=1150976 mem_heap_B=1150976 ...:

grep mem_heap_B massif.out ... mem_heap_B=1150976 mem_heap_B=1150976 ... 

this is very different from what "top"top command shows at similar moment  :

14673 gu27mox 20 0 3280404 468380 19176 R 100.0 2.9 6:08.84 pwanew_3pic_com

14673 gu27mox 20 0 3280404 468380 19176 R 100.0 2.9 6:08.84 pwanew_3pic_com 

what are measured units from valgrind Valgrind??

The

/usr/bin/time -v ./test.sh

/usr/bin/time -v ./test.sh never answered - you must directly feed executable to /usr/bin/time/usr/bin/time like:

/usr/bin/time -v pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212

/usr/bin/time -v pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212 Command being timed: "pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212"  User time (seconds): 1468.44  System time (seconds): 7.37  Percent of CPU this job got: 99%  Elapsed (wall clock) time (h:mm:ss or m:ss): 24:37.14  Average shared text size (kbytes): 0  Average unshared data size (kbytes): 0  Average stack size (kbytes): 0  Average total size (kbytes): 0  Maximum resident set size (kbytes): 574844  Average resident set size (kbytes): 0  Major (requiring I/O) page faults: 74  Minor (reclaiming a frame) page faults: 468880  Voluntary context switches: 1190  Involuntary context switches: 20534  Swaps: 0  File system inputs: 81128  File system outputs: 1264  Socket messages sent: 0  Socket messages received: 0  Signals delivered: 0  Page size (bytes): 4096  Exit status: 0 

Sorry, I am first time here and can only ask questions ...

valgrind --tool=massif --pages-as-heap=yes --massif-out-file=massif.out ./test.sh; grep mem_heap_B massif.out | sed -e 's/mem_heap_B=(.*)/\1/' | sort -g | tail -n 1

then grep mem_heap_B massif.out ... mem_heap_B=1150976 mem_heap_B=1150976 ...

this is very different from what "top" command shows at similar moment  :

14673 gu27mox 20 0 3280404 468380 19176 R 100.0 2.9 6:08.84 pwanew_3pic_com

what are measured units from valgrind ??

The

/usr/bin/time -v ./test.sh

never answered - you must directly feed executable to /usr/bin/time like:

/usr/bin/time -v pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212

Command being timed: "pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212" User time (seconds): 1468.44 System time (seconds): 7.37 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 24:37.14 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 574844 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 74 Minor (reclaiming a frame) page faults: 468880 Voluntary context switches: 1190 Involuntary context switches: 20534 Swaps: 0 File system inputs: 81128 File system outputs: 1264 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 

Sorry, I am first time here and can only ask questions…

valgrind --tool=massif --pages-as-heap=yes --massif-out-file=massif.out ./test.sh; grep mem_heap_B massif.out | sed -e 's/mem_heap_B=\(.*\)/\1/' | sort -g | tail -n 1 

then:

grep mem_heap_B massif.out ... mem_heap_B=1150976 mem_heap_B=1150976 ... 

this is very different from what top command shows at similar moment:

14673 gu27mox 20 0 3280404 468380 19176 R 100.0 2.9 6:08.84 pwanew_3pic_com 

what are measured units from Valgrind??

The /usr/bin/time -v ./test.sh never answered you must directly feed executable to /usr/bin/time like:

/usr/bin/time -v pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212 Command being timed: "pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212"  User time (seconds): 1468.44  System time (seconds): 7.37  Percent of CPU this job got: 99%  Elapsed (wall clock) time (h:mm:ss or m:ss): 24:37.14  Average shared text size (kbytes): 0  Average unshared data size (kbytes): 0  Average stack size (kbytes): 0  Average total size (kbytes): 0  Maximum resident set size (kbytes): 574844  Average resident set size (kbytes): 0  Major (requiring I/O) page faults: 74  Minor (reclaiming a frame) page faults: 468880  Voluntary context switches: 1190  Involuntary context switches: 20534  Swaps: 0  File system inputs: 81128  File system outputs: 1264  Socket messages sent: 0  Socket messages received: 0  Signals delivered: 0  Page size (bytes): 4096  Exit status: 0 
Source Link

Please be sure to answer the question. Provide details and share your research!

Sorry, I am first time here and can only ask questions ...

Used suggested:

valgrind --tool=massif --pages-as-heap=yes --massif-out-file=massif.out ./test.sh; grep mem_heap_B massif.out | sed -e 's/mem_heap_B=(.*)/\1/' | sort -g | tail -n 1

then grep mem_heap_B massif.out ... mem_heap_B=1150976 mem_heap_B=1150976 ...

this is very different from what "top" command shows at similar moment :

14673 gu27mox 20 0 3280404 468380 19176 R 100.0 2.9 6:08.84 pwanew_3pic_com

what are measured units from valgrind ??

The

/usr/bin/time -v ./test.sh

never answered - you must directly feed executable to /usr/bin/time like:

/usr/bin/time -v pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212

Command being timed: "pwanew_3pic_compass_2008florian3_dfunc.static card_0.100-0.141_31212_resubmit1.dat_1.140_1.180 1.140 1.180 31212" User time (seconds): 1468.44 System time (seconds): 7.37 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 24:37.14 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 574844 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 74 Minor (reclaiming a frame) page faults: 468880 Voluntary context switches: 1190 Involuntary context switches: 20534 Swaps: 0 File system inputs: 81128 File system outputs: 1264 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 
Post Made Community Wiki by ryabchik