RE: freebsd-performance Digest, Vol 69, Issue 2

2008-11-03 Thread Sam Xia
if you modify file subr_param.c as follows: void init_param1(void) { hz = HZ; ===> hz=HZ*4 . . . } you will get what you want. i have tested.it works well. Best Regards, Sam Xia > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]

RE: 1. thread switching time? (Krassimir Slavchev)

2008-10-31 Thread Sam Xia
clock intr frequency. BR, Sam.Xia > -Original Message- > From: Krassimir Slavchev [mailto:[EMAIL PROTECTED] > Sent: Friday, October 31, 2008 5:04 PM > To: Julian Elischer > Cc: freebsd-performance@freebsd.org; Sam Xia > Subject: Re: 1. thread switching time? (

RE: freebsd-performance Digest, Vol 68, Issue 4

2008-10-30 Thread Sam Xia
hi all, Someone had ever told me that select-based timing thread is more accurate than signal-based timer. But I don't know the real reason. Anyone could give me some tips? Best Regards, Sam Xia ___ freebsd-performance@freebsd.org mailing list

1. thread switching time? (Krassimir Slavchev)

2008-10-30 Thread Sam Xia
hi krassi, what kind of hardware are you using? Actually because of process/thread scheduling mechanism, timing granulariy is coarse in FreeBSD(more than 10 ms) S.X > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Th