LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 02-15-2013, 11:20 PM   #1
great_wall
LQ Newbie
 
Registered: Feb 2013
Location: china
Posts: 5

Rep: Reputation: Disabled
Smile accf_http accf_data on FreeBSD


hello,everyone
I'm really confused with the accf_http and accf_data on FreeBSD,i can't figure out the function of them.Although I have
read related information offical and unoffical.Can someone explain it in detail as much as possible? Thanks!
 
Old 02-16-2013, 05:15 PM   #2
vermaden
Member
 
Registered: Jan 2006
Location: pl_PL.lodz
Distribution: FreeBSD
Posts: 391

Rep: Reputation: 76
I think that description provided in manual pages are quite detailed and straight:
Code:
% man accf_http
% man accf_data
Code:
     accf_data

     It prevents the application from receiving the connected descriptor via
     accept() until data arrives on the connection.

     ----

     accf_http

     It prevents the application from receiving the connected descriptor via 
     accept() until either a full HTTP/1.0 or HTTP/1.1 HEAD or GET request has
     been buffered by the kernel.
     (...)
     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.
 
1 members found this post helpful.
Old 02-17-2013, 12:37 AM   #3
great_wall
LQ Newbie
 
Registered: Feb 2013
Location: china
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by vermaden View Post
I think that description provided in manual pages are quite detailed and straight:
Code:
% man accf_http
% man accf_data
Code:
     accf_data

     It prevents the application from receiving the connected descriptor via
     accept() until data arrives on the connection.

     ----

     accf_http

     It prevents the application from receiving the connected descriptor via 
     accept() until either a full HTTP/1.0 or HTTP/1.1 HEAD or GET request has
     been buffered by the kernel.
     (...)
     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.
thanks a lot, i got it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm using freebsd-update with FreeBSD - should I use env_keep in sudoers? pr_deltoid *BSD 1 06-20-2010 10:57 PM
Filesystem Read/Write Support in FreeBSD? / Share files Linux btw FreeBSD pseudonomous *BSD 3 01-29-2009 04:59 AM
LXer: Desktop FreeBSD Part 9: FreeBSD and Broadband LXer Syndicated Linux News 0 10-31-2007 09:00 AM
updating FreeBSD 6.0 to FreeBSD 6.2 without Console (single user access) kur1j *BSD 2 08-17-2007 07:12 AM


All times are GMT -5. The time now is 01:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration