The utility of accf_http is such that a server will not have to context switch several times before performing the initial parsing of the request. This effectively reduces the amount of required CPU utilization to handle incoming requests by keeping active processes in preforking servers such as Apache low and reducing the size of the file descriptor set that needs to be managed by interfaces such as select(), poll() or kevent() based servers.
Just open shell prompt and type the following command to load accf_http under FreeBSD :
# kldload accf_http
Restart apache:
# /usr/local/etc/rc.d/apache22 restart
Update /boot/loader.conf file
Type the following command so that driver get loaded at the time of booting system:
# echo 'accf_http_load="YES"' >> /boot/loader.conf
A note about FreeBSD jails (vps)
Under jail you cannot load this module. It needs to be loaded from host using above command.

本文介绍 FreeBSD 下 accf_http 驱动的使用方法及其如何通过缓冲即将完成的 HTTP 请求来提高服务器性能。加载此模块可以减少处理请求所需的 CPU 资源,并降低 Apache 等预分叉服务器中的活动进程数。
2506

被折叠的 条评论
为什么被折叠?



