Comments (9)
You can try MallocExtension::DumpStats, which will report some information about
tcmalloc's internal state. This may be enough to figure out what memory loss
is due
to internal fragmentation, what is due to the fact tcmalloc does not return
memory to
the system, and so forth.
I'm not an expert on tcmalloc internals myself, so I'm afraid I can't give an
authoratative answer on how well tcmalloc "should" work for your application.
} I tried making a small test case, but I stumbled upon the problem that
} simply allocating a lot of small blocks and subsequently deallocating them
} never returns the memory back to the OS.
MallocExtension has a method called ReleaseFreeMemory() which may be helpful
for your
test case. You might also try using it in your actual application. See the
caveats
for when it's appropriate in google/malloc_extension.h, though.
Original comment by [email protected]
on 23 May 2007 at 4:06
from gperftools.
You can try MallocExtension::DumpStats, which will report some information about
tcmalloc's internal state. This may be enough to figure out what memory loss
is due
to internal fragmentation, what is due to the fact tcmalloc does not return
memory to
the system, and so forth.
I'm not an expert on tcmalloc internals myself, so I'm afraid I can't give an
authoratative answer on how well tcmalloc "should" work for your application.
} I tried making a small test case, but I stumbled upon the problem that
} simply allocating a lot of small blocks and subsequently deallocating them
} never returns the memory back to the OS.
MallocExtension has a method called ReleaseFreeMemory() which may be helpful
for your
test case. You might also try using it in your actual application. See the
caveats
for when it's appropriate in google/malloc_extension.h, though.
(btw, I'm not sure this is actually a bug report. If there's something you
think is
broken and actually needs fixing, could you clarify what it is? Otherwise, it's
probably more useful to have this discussion on the newsgroup (or rather, google
group) for google-perftools.
Original comment by [email protected]
on 23 May 2007 at 4:07
from gperftools.
You can try MallocExtension::DumpStats, which will report some information about
tcmalloc's internal state. This may be enough to figure out what memory loss
is due
to internal fragmentation, what is due to the fact tcmalloc does not return
memory to
the system, and so forth.
I'm not an expert on tcmalloc internals myself, so I'm afraid I can't give an
authoratative answer on how well tcmalloc "should" work for your application.
} I tried making a small test case, but I stumbled upon the problem that
} simply allocating a lot of small blocks and subsequently deallocating them
} never returns the memory back to the OS.
MallocExtension has a method called ReleaseFreeMemory() which may be helpful
for your
test case. You might also try using it in your actual application. See the
caveats
for when it's appropriate in google/malloc_extension.h, though.
(btw, I'm not sure this is actually a bug report. If there's something you
think is
broken and actually needs fixing, could you clarify what it is? Otherwise, it's
probably more useful to have this discussion on the newsgroup (or rather, google
group) for google-perftools.
Original comment by [email protected]
on 23 May 2007 at 4:08
from gperftools.
You can try MallocExtension::DumpStats, which will report some information about
tcmalloc's internal state. This may be enough to figure out what memory loss
is due
to internal fragmentation, what is due to the fact tcmalloc does not return
memory to
the system, and so forth.
I'm not an expert on tcmalloc internals myself, so I'm afraid I can't give an
authoratative answer on how well tcmalloc "should" work for your application.
} I tried making a small test case, but I stumbled upon the problem that
} simply allocating a lot of small blocks and subsequently deallocating them
} never returns the memory back to the OS.
MallocExtension has a method called ReleaseFreeMemory() which may be helpful
for your
test case. You might also try using it in your actual application. See the
caveats
for when it's appropriate in google/malloc_extension.h, though.
(btw, I'm not sure this is actually a bug report. If there's something you
think is
broken and actually needs fixing, could you clarify what it is? Otherwise, it's
probably more useful to have this discussion on the newsgroup (or rather, google
group) for google-perftools.
Original comment by [email protected]
on 23 May 2007 at 4:08
from gperftools.
You can try MallocExtension::DumpStats, which will report some information about
tcmalloc's internal state. This may be enough to figure out what memory loss
is due
to internal fragmentation, what is due to the fact tcmalloc does not return
memory to
the system, and so forth.
I'm not an expert on tcmalloc internals myself, so I'm afraid I can't give an
authoratative answer on how well tcmalloc "should" work for your application.
} I tried making a small test case, but I stumbled upon the problem that
} simply allocating a lot of small blocks and subsequently deallocating them
} never returns the memory back to the OS.
MallocExtension has a method called ReleaseFreeMemory() which may be helpful
for your
test case. You might also try using it in your actual application. See the
caveats
for when it's appropriate in google/malloc_extension.h, though.
(btw, I'm not sure this is actually a bug report. If there's something you
think is
broken and actually needs fixing, could you clarify what it is? Otherwise, it's
probably more useful to have this discussion on the newsgroup (or rather, google
group) for google-perftools.
Original comment by [email protected]
on 23 May 2007 at 4:08
from gperftools.
You can try MallocExtension::DumpStats, which will report some information about
tcmalloc's internal state. This may be enough to figure out what memory loss
is due
to internal fragmentation, what is due to the fact tcmalloc does not return
memory to
the system, and so forth.
I'm not an expert on tcmalloc internals myself, so I'm afraid I can't give an
authoratative answer on how well tcmalloc "should" work for your application.
} I tried making a small test case, but I stumbled upon the problem that
} simply allocating a lot of small blocks and subsequently deallocating them
} never returns the memory back to the OS.
MallocExtension has a method called ReleaseFreeMemory() which may be helpful
for your
test case. You might also try using it in your actual application. See the
caveats
for when it's appropriate in google/malloc_extension.h, though.
(btw, I'm not sure this is actually a bug report. If there's something you
think is
broken and actually needs fixing, could you clarify what it is? Otherwise, it's
probably more useful to have this discussion on the newsgroup (or rather, google
group) for google-perftools.
Original comment by [email protected]
on 23 May 2007 at 4:08
from gperftools.
You can try MallocExtension::DumpStats, which will report some information about
tcmalloc's internal state. This may be enough to figure out what memory loss
is due
to internal fragmentation, what is due to the fact tcmalloc does not return
memory to
the system, and so forth.
I'm not an expert on tcmalloc internals myself, so I'm afraid I can't give an
authoratative answer on how well tcmalloc "should" work for your application.
} I tried making a small test case, but I stumbled upon the problem that
} simply allocating a lot of small blocks and subsequently deallocating them
} never returns the memory back to the OS.
MallocExtension has a method called ReleaseFreeMemory() which may be helpful
for your
test case. You might also try using it in your actual application. See the
caveats
for when it's appropriate in google/malloc_extension.h, though.
(btw, I'm not sure this is actually a bug report. If there's something you
think is
broken and actually needs fixing, could you clarify what it is? Otherwise, it's
probably more useful to have this discussion on the newsgroup (or rather, google
group) for google-perftools.
Original comment by [email protected]
on 23 May 2007 at 4:10
from gperftools.
Thanks, I'll try your suggestions.
I didn't notice there was a google group for this, so sorry for the noise. You
can
close this issue.
Original comment by [email protected]
on 23 May 2007 at 2:56
from gperftools.
Original comment by [email protected]
on 23 May 2007 at 6:20
- Changed state: Fixed
from gperftools.
Related Issues (20)
- VIRT memory continues to grow when using 64k byte buffers HOT 4
- Linking libtorsocks with libtcmalloc results in SIGSEGV HOT 5
- What will be the official home for gperftools? HOT 2
- On Windows 8.1, system-alloc_unittest fails an assert HOT 1
- recalloc is wrong in windows/override_functions.cc HOT 1
- src/malloc_hook_mmap_linux.h fails to compile with clang in C++11 mode when targeting 32 bit with _FILE_OFFSET_BITS=64 HOT 1
- Should heap profiling with mingw work? HOT 4
- src/gperftools/tcmalloc.h and src/windows/gperftools/tcmalloc.h report v2.3 HOT 2
- msvc14 (visual studio 15) timespec type redefinition HOT 1
- [PATCH] Improve CPUPROFILE_PER_THREAD_TIMERS HOT 13
- Tcmalloc crashes when process adds an mmap block close to the top of the heap HOT 8
- failed to compile gperftools with "-march=armv8-a+crc" HOT 3
- Failed to build with lib musl HOT 1
- MongoDB version 3.0 build from source fails due to gperftools 2.2 on PPC64 HOT 2
- MallocExtension::GetStats() is not implemented HOT 1
- futex handling is weird (and wrong on arm) HOT 2
- Warning about non-virtual destructor in class with virtual methods HOT 1
- allow avoiding the hardcoded /tmp/google.alloc path for tracing output HOT 1
- It doesn't work on s390x architecture
- Why tcmalloc fail when I compile run program with shared library?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gperftools.