On Tue, 21 Sep 2010 11:22:53 -0500 Clayton Keller <inetad...@ruraltel.net> wrote:
> > Edwin, can this warning safely be ignored, or should we look at > modifying this value, even on non-FreeBSD systems? What OS? Run the testprogram from here (without setting ulimit -d), and tell me what it prints: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1941#c20 $ cat >x.c <<EOF #include <sys/mman.h> #include <stdlib.h> int main() { int i = 0; for (;;) { void *m = mmap(NULL, 160*1024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); if (m == MAP_FAILED) { printf("failed after %d mmap() calls, allocated %d MB memory\n", i, i*160/1024); abort(); } i++; // munmap(m, 160*1024); } return 0; } EOF $ gcc x.c $ ./a.out If it shows ~120M your OS is buggy. Then run again with ulimit -d 2097151, and see if it reports any higher value. Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml