On Sunday 16 December 2001 17:39, Dmitry Volkoff wrote: > Hello! > > Below is simple test case which I think is related to "memory disappear" > problem. > > My real program is doing something like this: > > // test.c > #include > #include > #include > #include > #include > > int main(void) > { > int fd; > int r; > char data[10] = "0123456789"; > int i; > int end = 30; > for (i=0;i fd = open("testfile", O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT, 0644); > if (fd == -1) { > printf("unable to open\n"); > return; > } > r = write(fd,data,sizeof data); > 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? After 10000+ runs of this proggy swap usage isn't changed on 2.4.17-pre7. top reports constant 2304K of swap usage. -- vda