|
|
Memory usage
Hi!
I'd like to optimize memory usage of my program. Is there any tool (for
Linux gcc,g++), which can take snapshoot of running program with details
about all memory allocations ?
Or is there any other way to find what "eats" memory ? I was trying to
use valgrind massif but it shows only heap, which is relatively small (<
150kB).
Best regards
J
|
|
0
|
|
|
|
Reply
|
jarek
|
3/25/2010 5:39:24 AM |
|
Hi!
Try glibc's "memusage" tool
|
|
0
|
|
|
|
Reply
|
Peter
|
3/25/2010 9:28:56 AM
|
|
On Thu, 2010-03-25, jarek wrote:
> Hi!
> I'd like to optimize memory usage of my program. Is there any tool (for
> Linux gcc,g++), which can take snapshoot of running program with details
> about all memory allocations ?
Yes, cat(1). Just read the file /proc/$pid/status.
> Or is there any other way to find what "eats" memory ? I was trying to
> use valgrind massif but it shows only heap, which is relatively small (<
> 150kB).
Just? That's usually what you're after. The only other dynamic things
I can think of is stack and mmap(2)ed things.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
|
|
0
|
|
|
|
Reply
|
Jorgen
|
3/25/2010 10:12:21 PM
|
|
|
2 Replies
305 Views
(page loaded in 0.089 seconds)
Similiar Articles: Memory usage - comp.lang.c++Hi! I'd like to optimize memory usage of my program. Is there any tool (for Linux gcc,g++), which can take snapshoot of running program with detai... Is it possible to limit memory usage per process? - comp.sys.mac ...I'm got a process -- Poker Tracker 3, not Firefox, amazingly enough -- that has a memory leak. Application launches and mem use starts around 1GB a... high kernel memory usage - comp.unix.solarisHello, I have a Netra T1 AC200 with 1.5gb ram running Solaris 10 3/05, kernel 118822-25. What I am finding is that I have a large amount of memory go... can I get something like comp/noncomp memory usage like those in ...I need to know the memory allocation of a existing box, and is there anything like topas in AIX which can show me the comp memory and noncomp memory... process memory usage - vsz and rss? - comp.unix.solarisI am on Solaris 8 and I'm trying to monitor a process for memory utilization to check for memory leaks. I am using ps, Should I be looking at rss (r... System-API to get current process memory usage for C/C++ pgm ...What if any system calls exist to get the current process' system memory usage (including all of the current process' threads) in a C/C++ based progra... Texture memory usage - comp.graphics.api.openglHow to accurately compute the memory used by a texture ? I do the following (for RGB 2D textures): { GLint red, green, blue, alpha, width, height; g... Optimizing ntpd memory usage? - comp.protocols.time.ntpI'm using ntpd in an embedded Linux system, just to discipline my own local clock. Many of my third party developers are complaining to me about the ... memory consumption - comp.unix.solarisHi all, On Solaris 9 box, I'm using "prstat -a -s rss" to check the memory consumption for processes. As I checked the DB2 processes consume more tha... How to Reduce Memory Usage | eHow.comComputer random access memory or RAM is an essential hardware component that plays a large role in determining how fast a computer operates. RAM stores data ... Understanding Memory Usage in Windows 2000By John Sheesley for TechRepublic.com. As you evaluate and deploy Microsoft® Windows® 2000 Server and Windows 2000 Professional in your organization, you ... 7/15/2012 10:47:21 PM
|
|
|
|
|
|
|
|
|