osx - RAM/Hard Drive space occupied as I run a C++ code on MAC? -


i compile c++ code (c++11, stl libraries) , run on mac. simulation progresses, notice after while, space on hard drive starts being occupied point if don't stop code, can freeze machine. tried valgrind (mandatorily on smaller problem size) find memory leaks, don't. unfortunately, actual problem size big won't' possible run valgrind on it.

what maybe problem? potential memory leak? ps: if helps, using os x 10.9.5 , compile cpp code using g++ command.

edit: checking activity monitor, memory not seem increase on mac. makes more peculiar.

edit2: able track down problem in code. std::vector mistakenly extended via push_back calls. that's why valgrind did not report memory leak either. interesting observation: on osx, actual ram not being used program size grew bigger. osx decided use hard drive space instead. on linux (centos), ram occupied code until os killed job.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -