[haiku-commits] Re: r33785 - haiku/trunk/src/libs/compat/freebsd_network

  • From: Colin Günther <coling@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 27 Oct 2009 14:30:53 +0100

Axel Dörfler schrieb:
coling@xxxxxx wrote:
+ * set to 1000000 Hz, whereas it is usually set to 1000 Hz for FreeBSD.

I would make this a lot smaller, maybe 50000 Hz - this might also
Actually it is set to 1000 Hz. The 1 000 000 Hz I'm refering to in the comment above is intended for pointing out differences between FreeBSD and Haiku implementation only. By the way the 1 000 000 Hz is used for correct timing calculations, required by some drivers, only, though no system strain concerns here. You might look into freebsd_network/compat/sys/kernel.h where the usage of the hz setting is explained more thorough.
require a higher priority of the thread. Since it doesn't really do much, I guess that would be a good idea, anyway. However, why not using a timer for this? It much be much more lightweight and more accurate still. I'm talking about the add_timer() function here.
True, will change it to use the timer functionality. Reason I didn't use it right from start was, that I originally stuck with the 1 000 000 Hz (though usecs precision was needed) mentioned above and didn't reevaluated other possibilities, once I realized that 1000 Hz is quite enough, though.
Bye,
   Axel.


Best Regards,
Colin

Other related posts: