ipfw cached ucred patch

Luigi Rizzo rizzo at icir.org
Wed Jun 2 15:29:47 PDT 2004


On Wed, Jun 02, 2004 at 03:14:43PM -0700, Christian S.J. Peron wrote:
> 
> I understand what you are saying. The only real other choice 
> would be to copy out the entire cr_groups array. Do you know
> if this copy would be more expensive then the mutex lock/unlock
> associated with grabbing a reference to the ucred?

i bet the copy it would be cheaper almost on any architecture -- it
is only 64 bytes anyways, with these sizes what kills you in memory
accesses is the latency, not the throughput.

cheers
luigi


More information about the freebsd-hackers mailing list