From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2c626cf8713c3d7f,start X-Google-Attributes: gidfee84,public From: Pierre Monestie Subject: is free() lazy ? Date: 1997/09/17 Message-ID: #1/1 X-Deja-AN: 273259566 Organization: University College Cork Newsgroups: comp.unix.osf.osf1 Hi, If in a c program I allocate a certain amount of memory and then I fred it, when I do a ps on my program I realize that the prog is taking (RSS value) the amount of memory I previously allocated. I know this memory is free but the system don't get it back. Is there a way (A kernel config?) to really "free" this memory. Nb : if i run my program on a linux pc, the memory is effectively freed. I'm running DU40B. void main(){ int i; char *c; int sz=1000000; /*Allocation*/ c=(char*)malloc(sizeof(char)*sz); /*Init*/ for (i=0;i