Re: exception handling in kernel code

2006-08-15 Thread Kostik Belousov
On Mon, Aug 14, 2006 at 11:12:23PM +0600, Stanislav Sedov wrote: On Mon, 14 Aug 2006 11:15:22 -0700 John-Mark Gurney [EMAIL PROTECTED] mentioned: You should make a MD API for reading these out (if one doesn't already exist) that handle the faulting for you, and then have your driver hook

Re: The optimization of malloc(3): FreeBSD vs GNU libc

2006-08-15 Thread Intron
Brooks Davis wrote: On Tue, Aug 15, 2006 at 07:10:47AM +0800, Intron wrote: One day, a friend told me that his program was 3 times slower under FreeBSD 6.1 than under GNU/Linux (from Redhat 7.2 to Fedora Core 5). I was astonished by the real repeatable performance difference on AMD Athlon XP

Re: The optimization of malloc(3): FreeBSD vs GNU libc

2006-08-15 Thread Intron
Vladimir Kushnir wrote: Sorry for intrusion. On Mon, 14 Aug 2006, Brooks Davis wrote: On Tue, Aug 15, 2006 at 07:10:47AM +0800, Intron wrote: One day, a friend told me that his program was 3 times slower under FreeBSD 6.1 than under GNU/Linux (from Redhat 7.2 to Fedora Core 5). I was

Re: exception handling in kernel code

2006-08-15 Thread John Baldwin
On Tuesday 15 August 2006 03:43, Kostik Belousov wrote: On Mon, Aug 14, 2006 at 11:12:23PM +0600, Stanislav Sedov wrote: On Mon, 14 Aug 2006 11:15:22 -0700 John-Mark Gurney [EMAIL PROTECTED] mentioned: You should make a MD API for reading these out (if one doesn't already exist)

nanosecond delay in kernel module

2006-08-15 Thread m . ehinger
Hi, what is the official way to delay in a kernel module for about 10 nanoseconds (1/1,000,000,000th second). I found DELAY(9), but it uses microseconds (1/1,000,000th second). Any help would be appeciated Maik ___ freebsd-hackers@freebsd.org

Re: The optimization of malloc(3): FreeBSD vs GNU libc

2006-08-15 Thread Jason Evans
李鑫 (LI Xin) wrote: 在 2006-08-15二的 02:38 +0300,Vladimir Kushnir写道: On -CURENT amd64 (Athlon64 3000+, 512k L2 cache): With jemalloc (without MY_MALLOS): ~/fdtd /usr/bin/time ./fdtd.FreeBSD 500 500 1000 ... 116.34 real 113.69 user 0.00 sys With MY_MALLOC: ~/fdtd /usr/bin/time

Re: nanosecond delay in kernel module

2006-08-15 Thread Julian Elischer
[EMAIL PROTECTED] wrote: Hi, what is the official way to delay in a kernel module for about 10 nanoseconds (1/1,000,000,000th second). I found DELAY(9), but it uses microseconds (1/1,000,000th second). at this time there is none. maybe you can write one? You probably need to find some

Re: nanosecond delay in kernel module

2006-08-15 Thread Roman Kurakin
Hi, Julian Elischer: [EMAIL PROTECTED] wrote: Hi, what is the official way to delay in a kernel module for about 10 nanoseconds (1/1,000,000,000th second). I found DELAY(9), but it uses microseconds (1/1,000,000th second). at this time there is none. maybe you can write one? You

openospfd

2006-08-15 Thread David Gilbert
Is there anyone actively working on openospfd (the port)? There are systemic things like the fact they want to ignore lo0 destined routes (although I know how to patch that), but there are less obvious things that I havn't figured out. Like the fact that our version ignores if_tun and if_gre.

struct dirent question

2006-08-15 Thread Eric Anderson
Does the ifdef in the struct dirent (pasted in below) make any sense? Seems like regardless of whether the __BSD_VISIBLE is defined or not, the d_name length will always be 255 + 1. Eric struct dirent { __uint32_t d_fileno;/* file number of entry */ __uint16_t

Re: struct dirent question

2006-08-15 Thread Tobias Roth
On Tue, Aug 15, 2006 at 10:26:13PM -0500, Eric Anderson wrote: Does the ifdef in the struct dirent (pasted in below) make any sense? Seems like regardless of whether the __BSD_VISIBLE is defined or not, the d_name length will always be 255 + 1. Eric struct dirent { __uint32_t