[<prev] [next>] [day] [month] [year] [list]
Message-ID: <h2pd9def9db1004131107qe65c7941u5c56af331b6890ad@mail.gmail.com>
Date: Tue, 13 Apr 2010 20:07:05 +0200
From: Markus Rechberger <mrechberger@...il.com>
To: Linux-Kernel Mailinglist <linux-kernel@...r.kernel.org>
Subject: Memory Allocation/Accounting bug?
Hi,
I was doing some leaktests with our applications and couldn't really
figure out any memory leak (neither with valgrind).
Although top shows up that the application has an increased memory usage.
The sample applications:
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <stdlib.h>
void *threadfunc(void *opaque) {
return NULL;
};
int main() {
pthread_t thread;
while(1) {
pthread_create(&thread, NULL, threadfunc, NULL);
pthread_join(thread, NULL);
// sleep(5);
}
return 0;
}
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29931 markus 20 0 16480 460g 381g S 28 11986.0 0:53.00 test
RES shows up 460gig after some time which obviously is not correct
This was tested with Ubuntu Lucid (and Linux 2.6.34-rc2), someone
tested it with 2.6.32 and it seems to be fine.
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists