-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
Sam Xia wrote: > 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) dmesg: ... CPU: Intel(R) Core(TM)2 CPU E8400 @ 3.00GHz (3005.25-MHz 686-class CPU) ... Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 ... The hardware is fast enough! Also, I am able to set HZ=100000 but the thread switching time is still ~1ms. Best Regards > > S.X >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of >> [EMAIL PROTECTED] >> Sent: Thursday, October 30, 2008 8:00 PM >> To: freebsd-performance@freebsd.org >> Subject: freebsd-performance Digest, Vol 68, Issue 4 > >> Message: 1 >> Date: Wed, 29 Oct 2008 17:28:36 +0200 >> From: Krassimir Slavchev <[EMAIL PROTECTED]> >> Subject: thread switching time? >> To: freebsd-performance@freebsd.org >> Message-ID: <[EMAIL PROTECTED]> >> Content-Type: text/plain; charset=ISO-8859-1 >> > Hello All, > > I am using FreeBSD 7 and would like to decrease the time of > switching between threads. This time seems to be 1ms and it > is impossible to make lower delays inside a thread, at least > using nanosleep(). > > Is it possible to decrease this time to 1us? > > > Best Regards >> >> ************************************************** >> > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFJCrR3xJBWvpalMpkRAq8aAJ9F/n9mX94h46Rb4kHOBo9kDMUjzQCgmcZQ Yuum1rMnhaKICE+FKC6n294= =y2hp -----END PGP SIGNATURE----- _______________________________________________ freebsd-performance@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-performance To unsubscribe, send any mail to "[EMAIL PROTECTED]"