I've been struggling for not few hours with memory leaks on this
machine. I'm running linux 2.6.32-5-686, and the problem is as follows:
Some months ago, I have compiled kernel 2.6.33-2-686 without any issues
in this same machine. This week I have tried compiling GNUzilla Icecat
and the 2.6.35 kernel. But when compiling the kernel, when it is just
starting compiling, all real memory (2GB) fills, and when beginning to
swap, the machine becomes absolutely unresponsive. With Icecat, it
takes 15 minutes before this happens, and today I tried leaving it
working for almost 5 hours, unresponsive, before killing the machine.
I killed the machine almost 10 times this week with high I/O activity.
I've already tried changing vm.swapinness to 60, and
vm.overcommit_memory to 2, but nothing helps. Also disabled the memlock
available for audio applications, but nothing yet. Increased my swap to
10GB, but nothing.
So here goes the output of some commands:
Your help will be very appreciated!
Teresa e Junior
I suggest you retry after booting another kernel .
Then try another compiler if you can, and in the order that you like .
Memory leaks often happend by the running prog. in here the compiler(buggy), but might be the kernel, very rare and usually because of a faulty driver .
If it still happends , then the sources are so tight that the compiler is hitting a real bug .
I tried it with 3 different kernels: the Debian Kernel, the Zen Kernel, and the Grml Kernel. The output of "sysctl -a | grep vm. | sort" is from the Debian Kernel. The Zen Kernel sets swappiness to 0, but the Debian sets it to 60, so... and the Grml is similar to the Debian one.
I'd like to try, but don't know how to use other compiler. I'm compiling from Debian sources, so it is just "debuild -k$GPGKEY", and it calls the compiler probably from debian/rules.
If it is a faulty driver, how could I debug it (without freezing again the system and killing it)?
I don't think the problem is in the sources. I have compiled the Debian kernel a few months ago and hadn't noticed anything wrong.
I suspect of some problem in my partitions? Though when I succeeded in compiling the kernel, I had no swap at all (already tried "swapoff -a", and it just started killing many procs...)
Compile what ( the kernel ) ? most probably the compiler is alredy buggy !
do an apt-get update style thingy , if one of the packages to update is a compiler (gcc***) go ahead .
otherwise please give me more infos on your distro and gcc -V etc
Regards
---------- Post updated at 09:45 AM ---------- Previous update was at 09:44 AM ----------
Quote:
Originally Posted by vkca
Try debugging by using IBM Rational purify
debug what, the compiler ? it has to be a debug version of gcc besides
i doubt it the user (no effence) will able to ...
Regards
---------- Post updated at 10:27 AM ---------- Previous update was at 09:45 AM ----------
Quote:
Originally Posted by teresaejunior
Hello, remi75!
I tried it with 3 different kernels: the Debian Kernel, the Zen Kernel, and the Grml Kernel. The output of "sysctl -a | grep vm. | sort" is from the Debian Kernel. The Zen Kernel sets swappiness to 0, but the Debian sets it to 60, so... and the Grml is similar to the Debian one.
I'd like to try, but don't know how to use other compiler. I'm compiling from Debian sources, so it is just "debuild -k$GPGKEY", and it calls the compiler probably from debian/rules.
If it is a faulty driver, how could I debug it (without freezing again the system and killing it)?
I don't think the problem is in the sources. I have compiled the Debian kernel a few months ago and hadn't noticed anything wrong.
I suspect of some problem in my partitions? Though when I succeeded in compiling the kernel, I had no swap at all (already tried "swapoff -a", and it just started killing many procs...)
Thanks for your help!
Teresa e Junior
yes but its a definition of a bug - otherwise it will be called a nonworking prog
you compiler worked with sourceX.c but might not with sourY.c
thats why it would be called a bug ...
But I tried also with kernels 2.6.35-6.dmz.2-liquorix-686 and 2.6.32-5-686 from Debian
After talking to you I tried a couple of different things, including "ulimit -v NUMBER" and "ulimit -m NUMBER" before compiling, but these don't seem to be respected, but I got to kill it before it killed me, so the build log is attached. You will notice that right in the beginning of the build it goes mad.
This one also looks problematic, the BSD daemon doesn't look so evil:
Any more information you might need, I'll be glad to give.
Best regards,
Teresa e Junior
I forgot to mention, I have done a dist-upgrade this morning, but still no results.
Suppose I have a main() function with only one malloc statement allocating say some 1 gb memory. Also say my system has 1 gb of ram.
main()
{
malloc(1gb)
return(0)
}
The program above exits without freeing the memory.
In this case will the 1 gb of heap memory be returned... (9 Replies)
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Hi all,
I have written a small code just to invoke main and return immediately. When built with libpthread on AIX box, valgrind throws lots of memory leak errors. But when built without libpthread, no issues at all.
Here is the sample run for your look. Any idea where I might be going wrong?... (3 Replies)
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
Hi Unix lovers,
I am facing a strange problem about memory leak. One component of our product show memory leak at customer's end but not in development environment. The memory used by the exe goes on increasing at customer end but not in dev.
customer has same m/c(HP unix 11i) , the same... (1 Reply)
hi, i am a c++ programmer working on linux(redhat linux8.0) environment, i need to find out the memory leaks, so far i didn't used any tools, so what are the tools are available, and whic one is good to use. plz provide with a small example. (1 Reply)
Hi folks,
We are using following listed configurations for a particular application.
HP-UX 11i
Sun Java 2 SDK Standard Edition 1.4.1 (version shipped with WebLogic 8)
Oracle 9i Release 2 (Oracle 9.2.0)
BEA WebLogic Server 8.1 SP3
It seems a memory leak when we use above configurations.... (1 Reply)
Hi!! Experts,
Any ideas how to check for the memory leaks in a process during performance testing?? I dont use purify.. Any way of finding it out using default S/W in HP UX-11
Can U gimme pointers to site having good scripts/tutorials on performance testing??
Thanx in Advance..
:) (3 Replies)