Re: Debugging times

2007-07-11 Thread David Malone
On Tue, Jul 10, 2007 at 12:29:26AM +0200, Ivan Voras wrote: Yes, I'll test them. The problem is - the same kernel works when booted off a hard drive, so unless the VMWare BIOS is very messed up (it's the first time I see such problems) it may not help. Please, scatter debug printf's around

Re: Debugging time

2007-07-11 Thread Ivan Voras
Victor Snezhko wrote: Hi, Ivan, David, Hi, For about half a year I have another weirdness with time on my -current box without vmware, maybe it's somehow has common origins with your behaviour. When I boot FreeBSD, ntpdate (which is set up to run via rc.conf) often reports huge time offsets:

exporting subr_param values as sysctls

2007-07-11 Thread Alfred Perlstein
I would like to export the various parameters from subr_param.c into sysctl, these nodes would include the names from the following tunables as well as others in these files. TUNABLE_ULONG_FETCH(kern.maxtsiz, maxtsiz); dfldsiz = DFLDSIZ; TUNABLE_ULONG_FETCH(kern.dfldsiz,

Re: exporting subr_param values as sysctls

2007-07-11 Thread John Baldwin
On Wednesday 11 July 2007 01:26:00 pm Alfred Perlstein wrote: I would like to export the various parameters from subr_param.c into sysctl, these nodes would include the names from the following tunables as well as others in these files. TUNABLE_ULONG_FETCH(kern.maxtsiz, maxtsiz);

Re: rewrite src/sys/i386/i386/in_cksum.c

2007-07-11 Thread Matthew Dillon
Here's a reference to the DragonFly code: http://www.dragonflybsd.org/cvsweb/src/sys/cpu/i386/misc/in_cksum2.s http://www.dragonflybsd.org/cvsweb/src/sys/netinet/in_cksum.c It's pretty simple. The core 1's complement checksum is now written in machine-dependant assembly and

Re: add closefrom() call

2007-07-11 Thread Matthew Dillon
We added it basically because doing all the junk described in previous postings in this thread in userland is a ridiculously huge eyesore that doesn't scale and doesn't make sense when 5 minutes of programming nets you a shiny new system call which does it all for you. If you

Re: add closefrom() call

2007-07-11 Thread Julian Elischer
Matthew Dillon wrote: We added it basically because doing all the junk described in previous postings in this thread in userland is a ridiculously huge eyesore that doesn't scale and doesn't make sense when 5 minutes of programming nets you a shiny new system call which does it

Re: add closefrom() call

2007-07-11 Thread Joerg Sonnenberger
On Tue, Jul 10, 2007 at 10:53:02AM -0700, Julian Elischer wrote: Joerg Sonnenberger wrote: On Mon, Jul 09, 2007 at 11:46:14PM -0400, Ighighi wrote: Calling F_MAXFD everytime we close a file descriptor would be heavy having too much fd's. On the other hand, it wouldn't make much a difference