Speeding up exit(2)?

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Sun Mar 15 03:09:37 PDT 2009

>> is it your program and you are sure it's on exit?
> Every memory hungry program is concerned; and yes: it happens exactly
> on exit.

i just wrote a test program

#include <stdio.h>
int test[1024*1024*128];
main() {
  int a;
  for(a=0;a<1024*1024*128;a++) test[a]=a;

it fills 512MB RAM and then ends. i have 256MB RAM in laptop

it swapped a lot, then wrote "end" and immediately exited.

More information about the freebsd-questions mailing list