Neuer Filedescriptor-Code in FreeBSD-CURRENT

current

BSD Fan
Dag-Erling Smorgrav hat einen neuen Filedescriptor-Code committed:
New file descriptor allocation code, derived from similar code introduced
in OpenBSD by Niels Provos. The patch introduces a bitmap of allocated
file descriptors which is used to locate available descriptors when a new
one is needed. It also moves the task of growing the file descriptor table
out of fdalloc(), reducing complexity in both fdalloc() and do_dup().

Debts of gratitude are owed to tjr@ (who provided the original patch on
which this work is based), grog@ (for the gdb(4) man page) and rwatson@
(for assistance with pxeboot(8)).
Benchmark-Ergebnisse gibt es unter http://people.freebsd.org/~des/fdbench/. Daraus ist ersichtlich, dass das Allozieren eines neuen Filedescriptors praktisch unabhängig von der Anzahl der offenen Filedeskriptoren ist, während bisher die Zeit linear mit der Anzahl der offen Filedeskriptoren anstieg.

Relevant sollte das z.B. für Web- oder Applikationserver sein, die eine grosse Anzahl von Clients bedienen.
 
Der Benchmark schaut ja gut aus. Nicht übel. Gut. Sehr schön. Der Code ist in CURRENT drin?
 
Zurück
Oben