From owner-freebsd-questions Thu Mar 29 1:39:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from roura.ac.upc.es (roura.ac.upc.es [147.83.33.10]) by hub.freebsd.org (Postfix) with ESMTP id 5B99437B71F for ; Thu, 29 Mar 2001 01:39:54 -0800 (PST) (envelope-from oscar@ac.upc.es) Received: from ac.upc.es (fonoll.ac.upc.es [147.83.32.14]) by roura.ac.upc.es (8.11.0/8.11.0) with ESMTP id f2T9drb29395; Thu, 29 Mar 2001 11:39:53 +0200 (MET DST) Message-ID: <3AC302E9.EE4742B5@ac.upc.es> Date: Thu, 29 Mar 2001 11:39:53 +0200 From: Oscar-Ivan Lepe-Aldama Organization: DAC/UPC X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: es, en MIME-Version: 1.0 To: questions@freebsd.org Subject: How to define a large data heap inside the kernel? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I'm gathering some performance data of some 4.1.1 kernel routines by means of rtsc() calls. For storing the performance data, I have defined an array of u_int64_t. For reading its content, I have exported this array to user space as a sysctl(8) OPAQUE object. The machine I'm using has 128MB. However, when the defined array has more than 2.8MB (more or less) the kernel panics. The array is define statically in some .c file as u_int64_t myarray[MYARRAYSIZE]; SYSCTL_NODE(, CTL_MYCTL, myoid, CTLFLAG_RW, 0,""); SYSCTL_OPAQUE(_myoid, OID_AUTO, myarray, CTLFLAG_RD, &myarray, sizeof(myarray), "", ""); Is there a way to circunvent this problem? What system parameter is limiting the size of this array? Thanks, -- ======================================================================== 0 0 0 Oscar-Ivan Lepe-Aldama | UPC-Campus Nord, DAC 0 0 0 e-mail: oscar@ac.upc.es | Modul D6, despatx 116 0 0 0 phone: +34 93 401 7187 | Jordi Girona, 1-3 U P C fax: +34 93 401 7055 | 08034 Barcelona - SPAIN WWW: http://www.ac.upc.es/homes/oscar/ ======================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message