summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc/resolv/resolv.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-11-20 15:45:48 +0000
committerkib <kib@FreeBSD.org>2012-11-20 15:45:48 +0000
commit6d46d7b7ab07b512013ff0bcd075462a461ac124 (patch)
treeb24cae06a4562ff22b2b4e8f97209cb2d95759eb /tools/regression/lib/libc/resolv/resolv.c
parentf0eb44bc70263f6f188d8f07d367628d2efb6716 (diff)
downloadFreeBSD-src-6d46d7b7ab07b512013ff0bcd075462a461ac124.zip
FreeBSD-src-6d46d7b7ab07b512013ff0bcd075462a461ac124.tar.gz
Schedule garbage collection run for the in-flight rights passed over
the unix domain sockets to the next tick, coalescing the serial calls until the collection fires. The thought is that more work for the collector could arise in the near time, allowing to clean more and not spend too much CPU on repeated collection when there is no garbage. Currently the collection task is fired immediately upon unix domain socket close if there are any rights in flight, which caused excessive CPU usage and too long blocking of the threads waiting for unp_list_lock and unp_link_rwlock in write mode. Robert noted that it would be nice if we could find some heuristic by which we decide whether to run GC a bit more quickly. E.g., if the number of UNIX domain sockets is close to its resource limit, but not quite. Reported and tested by: Markus Gebert <markus.gebert@hostpoint.ch> Reviewed by: rwatson MFC after: 2 weeks
Diffstat (limited to 'tools/regression/lib/libc/resolv/resolv.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud