Hi!
I previously sent this message to the questions list but I didn't
receive an answer. That is why I'm now trying this list.

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: [EMAIL PROTECTED]    |     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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to