|
From: joseph t <jos...@gm...> - 2007-01-04 14:01:37
|
hi
we are trying to run valgrind massif tool for memory analysis of our task
run on x86 machine and the output of uname is pasted below
$uname -srio
Linux 2.6.15-1.2054_FC5smp i386 GNU/Linux
when application is run under valgrind it is giving the error "mremapping
shared memory file failed"
can u suggest a patch which solves this problem or tell us a workaround for
this
the output of valgrind is pasted below
thanks in advance
joseph
Error highlighted in red
1 valgrind --tool=massif ./alarm
2 ==12413== Massif, a space profiler.
3 ==12413== Copyright (C) 2003, Nicholas Nethercote
4 ==12413== Using LibVEX rev 1658, a library for dynamic binary
translatio n.
5 ==12413== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
6 ==12413== Using valgrind-3.2.1, a dynamic binary instrumentation
framewo rk.
7 ==12413== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward
et a
74 (-) [Main Thread 0.058] (12413) Fusion/SHMPool:
fusion_shm_pool _allocate( 0x2000006c, 240, clear, 0xbed89548 )
75 (-) [Main Thread 0.058] (12413) Fusion/SHMHeap:
_fusion_shmallo c( 0x20010000, 240 )
76 (-) [Main Thread 0.058] (12413) Fusion/SHMHeap:
_fusion_shmallo c( 0x20010000, 4096 )
77 (-) [Main Thread 0.058] (12413) Fusion/SHMHeap: morecore(
0x200 10000, 4096 )
78 (-) [Main Thread 0.058] (12413) Fusion/SHMHeap: align(
0x200100 00, 4096 )
79 (-) [Main Thread 0.058] (12413) Fusion/SHMHeap:
__shmalloc_brk( 0x20010000, 4096 )
80 (!) Fusion/SHM: mremapping shared memory file failed!
81 --> Cannot allocate memory
82 (!) Fusion/SHM: Could not allocate 240 bytes from pool!
83 --> Out of shared memory!
84 (!!!) *** WARNING [out of shared memory] *** [arena.c:425 in
lock_aren a()]
85 (-) [Main Thread 0.061] (12413) Fusion/Main:
fusion_exit( 0x 47f8a30, no emergency )
|