Date: Mon, 13 Nov 2006 13:37:55 -0800 From: Colin Percival <cperciva@freebsd.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: arch@freebsd.org Subject: Re: a proposed callout API Message-ID: <4558E5B3.1000003@freebsd.org> In-Reply-To: <7105.1163451221@critter.freebsd.dk> References: <7105.1163451221@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote: > XXX_arm(struct xxx*, tick_t, func *, arg *, int flag, struct mtx *); > Arm timer. If we (meaning you) are going to redesign the callout code, I think it would be great if the API provided some mechanism for specifying the required callback accuracy; for example "I'd like to be called back no later than 3 seconds from now, but any time after 2 seconds would be fine". This would allow more callbacks to be performed during each wakeup of the softclock thread, thereby amortizing the context switch overhead and increasing the average time when an otherwise idle cpu can sleep. Colin Percival
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4558E5B3.1000003>
