Use the sf_buf facility rather then kmem_alloc_wait/pmap_kenter/kmem_free
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 11 Apr 2004 00:10:34 +0000 (00:10 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 11 Apr 2004 00:10:34 +0000 (00:10 +0000)
commit18f40545f69e0921d733cd689c80d97dc9abe167
tree754204b0c04432fa995ee5308893f81f71d785b8
parent6157d9fc96fd76d9f37a9251affc0abef5623e17
Use the sf_buf facility rather then kmem_alloc_wait/pmap_kenter/kmem_free
to map the first page of a binary into memory during an exec.  This results
in 5-10% lower execl() overhead and approximately 2% lower sys time useage
in a buildworld (~15-20 second build time reduction on an AMD64/3200+),
with less code.  And its a nice cleanup as well.

Patch-by: Alan Cox <alc@cs.rice.edu>
sys/kern/imgact_elf.c
sys/kern/kern_exec.c
sys/sys/imgact.h