Date: Wed, 23 Jan 2008 21:31:03 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133949 for review Message-ID: <200801232131.m0NLV30s006264@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133949 Change 133949 by jb@jb_freebsd1 on 2008/01/23 21:30:58 Further limit the amount of memory that we allocate in one chunk. Affected files ... .. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/dtrace/dtrace.c#21 edit Differences ... ==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/dtrace/dtrace.c#21 (text) ==== @@ -10322,7 +10322,7 @@ * ask to malloc, so let's place a limit here before trying * to do something that might well end in tears at bedtime. */ - if (size > 32ULL * 1024 * 1024 * 1024) + if (size > physmem * PAGE_SIZE / (128 * (mp_maxid + 1))) return(ENOMEM); ASSERT(MUTEX_HELD(&dtrace_lock));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801232131.m0NLV30s006264>