On Tue, 21 Sep 2010 11:37:07 -0700 Chuck Swiger <cswi...@mac.com> articulated:
> Hi-- > > On Sep 21, 2010, at 11:09 AM, Török Edwin wrote: > [ ... ] > > If it shows ~120M your OS is buggy. > > Then run again with ulimit -d 2097151, and see if it reports any > > higher value. > > Interesting; even on FreeBSD I get: > > % ./a.out > failed after 15529 mmap() calls, allocated 2426 MB memory > [1] 1500 abort ./a.out > > A bit of experimentation suggests that FreeBSD's mmap() pays > attention to ulimit on VM size, not data segment size: > > % ulimit -v 256000 > % ./a.out > failed after 1591 mmap() calls, allocated 248 MB memory > [1] 1544 abort ./a.out > > % uname -a > FreeBSD example.com 6.4-STABLE FreeBSD 6.4-STABLE #0: Mon Sep 20 > 16:03:45 EDT 2010 r...@example.com:/usr/obj/usr/src/sys/GENERIC > i386 % ulimit -Ha -t: cpu time (seconds) unlimited > -f: file size (blocks) unlimited > -d: data seg size (kbytes) 524288 > -s: stack size (kbytes) 65536 > -c: core file size (blocks) unlimited > -m: resident set size (kbytes) unlimited > -l: locked-in-memory size (kb) unlimited > -u: processes 3603 > -n: file descriptors 7207 > -N 9: socket buffer size (kb) unlimited > -v: virtual memory size (kb) unlimited On a stock FreeBSD system, I have the following: $ uname -a && ulimit -Ha FreeBSD scorpio.seibercom.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Jul 25 11:48:27 EDT 2010 ger...@scorpio.seibercom.net:/usr/obj/usr/src/sys/SCORPIO amd64 socket buffer size (bytes, -b) unlimited core file size (blocks, -c) unlimited data seg size (kbytes, -d) 33554432 file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 11095 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 524288 cpu time (seconds, -t) unlimited max user processes (-u) 5547 virtual memory (kbytes, -v) unlimited swap size (kbytes, -w) unlimited -- Jerry ✌ clamav.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml