Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2008 19:54:17 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135167 for review
Message-ID:  <200802101954.m1AJsHmu068658@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135167

Change 135167 by jb@jb_freebsd1 on 2008/02/10 19:53:55

	Limit the buffer size on amd64 only for now.

Affected files ...

.. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/dtrace/dtrace.c#37 edit

Differences ...

==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/dtrace/dtrace.c#37 (text) ====

@@ -10363,6 +10363,7 @@
 #else
 	int i;
 
+#if defined(__amd64__)
 	/*
 	 * FreeBSD isn't good at limiting the amount of memory we
 	 * ask to malloc, so let's place a limit here before trying
@@ -10370,6 +10371,7 @@
 	 */
 	if (size > physmem * PAGE_SIZE / (128 * (mp_maxid + 1)))
 		return(ENOMEM);
+#endif
 
 	ASSERT(MUTEX_HELD(&dtrace_lock));
 	for (i = 0; i <= mp_maxid; i++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802101954.m1AJsHmu068658>