On 14.11.2012, at 04:30, Alfred Perlstein <bri...@mu.org> wrote:

> A couple of ideas:

Thanks.

> 1) convert the taskqueue to a callout, but only allow one to be queued at a 
> time.  set the granularity.

I think Konstantin's patch is going in this direction.


> 2) I think you only need to actually run garbage collection on the off-chance 
> that you pass unix file descriptors, otherwise you can get away with 
> refcounting.

Hm, isn't that whats done currently? gc is only scheduled if fds are inflight 
while uipc_detach() is called.


>  It's hard for me to express the exact logic needed for this though.  I think 
> you would need some way to simply do refcounting until there was a unix 
> socket descriptor in flight, then switch to gc.   Either that or make a 
> sysctl that allows you administratively deny passing of unix descriptors and 
> just use refcounting.



Markus

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to