Coder Social home page Coder Social logo

Memory leaks during read about adios HOT 5 CLOSED

ornladios avatar ornladios commented on August 24, 2024
Memory leaks during read

from adios.

Comments (5)

pnorbert avatar pnorbert commented on August 24, 2024

Hi, thanks for the info. Do you think it matters? One is supposed to
finalize adios at the end of the application just before MPI_Finalize(). So
that adios_finalize() does not free every bit of memory, are there any
circumstances where this may cause trouble?

On Sat, Jan 16, 2016 at 4:28 PM, Saurabh Tendulkar <[email protected]

wrote:

Allocations by adios_read_hooks_init and adios_query_hooks_init leak
memory. Simple test case (had to append .txt for github) and valgrind
output attached. Adios 1.9.0, no MPI, valgrind 3.11, 64-bit Linux system.
adios.c.txt https://github.com/ornladios/ADIOS/files/93091/adios.c.txt
valgrind.txt https://github.com/ornladios/ADIOS/files/93092/valgrind.txt


Reply to this email directly or view it on GitHub
#58.

from adios.

sim-saurabh avatar sim-saurabh commented on August 24, 2024

Not much trouble for me, only have to add suppressions for valgrind for our testing. Although it's not my usecase I could see one where adios is run as needed, while the application stays alive, so a separate module handles all adios stuff, so probably not ideal for it to leak memory every time.

from adios.

ax3l avatar ax3l commented on August 24, 2024

Huh, should check if the same leak occurs for

adios_init_noxml(MPI_Comm);
adios_finalize(rank);

... we call that several thousand times.

from adios.

pnorbert avatar pnorbert commented on August 24, 2024

The query and read method hooks are not freed in adios_read_finalize. But
they are allocated only once at the first initialization so there is no
memory leak.

The write methods are actually allocated and freed in each
adios_init/adios_finalize steps.

Let me know if you find other types of memory leaks.

On Wed, Feb 17, 2016 at 12:04 PM, Axel Huebl [email protected]
wrote:

Huh, should check if the same leak occurs for

adios_init_noxml(MPI_Comm);adios_finalize(rank);

... we call that several thousand times.


Reply to this email directly or view it on GitHub
#58 (comment).

from adios.

ax3l avatar ax3l commented on August 24, 2024

all right, thank you!

from adios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.