On Mon, Dec 17, 2001 at 03:01:12PM -0200, vda wrote:
> > if (r == -1) {
> > printf("unable to write\n");
> > close(fd);
> > return;
> > }
> > close(fd);
> > sleep(1);
> > }
> > }
> > // end test.c
>
> I removed sleep(1). Is it needed?
>
Yes, you need it in order to see the memory leakage.
> After 10000+ runs of this proggy swap usage isn't changed on 2.4.17-pre7.
> top reports constant 2304K of swap usage.
I know. You'll notice this effect only after 1000000+ runs.
Try it again with sleep(1).
> --
> vda
>
--DV - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Dec 23 2001 - 21:00:15 EST