Hi all,
I failed to launch my app within valgrind, although it's successed =
before. here is the message:
=3D=3D29736=3D=3D valgrind-1.0.4, a memory error detector for x86 =
GNU/Linux.
=3D=3D29736=3D=3D Copyright (C) 2000-2002, and GNU GPL'd, by Julian =
Seward.
=3D=3D29736=3D=3D Estimated CPU clock rate is 1397 MHz
=3D=3D29736=3D=3D For more details, rerun with: -v
=3D=3D29736=3D=3D
srv_api.cpp @ 205: app starting...
VG_(get_memory_from_mmap): request for 34062336 bytes failed.
VG_(get_memory_from_mmap): 2124564464 bytes already allocated.
This may mean that you have run out of swap space,
since running programs on valgrind increases their memory
usage at least 3 times...
Here is what the top dumped:
CPU states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
Mem: 2316656K av, 419432K used, 1897224K free, 440K shrd, 201724K =
buff
Swap: 2097096K av, 23640K used, 2073456K free 132508K =
cached =20
I guess the swap space is large enough for running the app, any other =
clues?
(btw, here is the state of running my app without valgrind
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
29740 xyan 15 0 964 964 760 R 0.1 0.0 0:00 top
29665 xyan 15 0 1320 1100 1060 S 0.0 0.0 0:00 tcsh
29744 xyan 15 0 1304 1304 796 S 0.0 0.0 0:00 tcsh
29749 xyan 15 0 107M 107M 3260 S 0.0 4.7 0:01 apisrv
29750 xyan 15 0 107M 107M 3260 S 0.0 4.7 0:00 apisrv
29751 xyan 15 0 107M 107M 3260 S 0.0 4.7 0:00 apisrv
29752 xyan 15 0 107M 107M 3260 S 0.0 4.7 0:00 apisrv
29753 xyan 15 0 107M 107M 3260 S 0.0 4.7 0:00 apisrv
29754 xyan 15 0 107M 107M 3260 S 0.0 4.7 0:00 apisrv
29755 xyan 15 0 107M 107M 3260 S 0.0 4.7 0:00 apisrv
)
TIA
-xy=20
|