LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (http://www.linuxquestions.org/questions/%2Absd-17/)
-   -   accf_http accf_data on FreeBSD (http://www.linuxquestions.org/questions/%2Absd-17/accf_http-accf_data-on-freebsd-4175450376/)

great_wall 02-15-2013 11:20 PM

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!

vermaden 02-16-2013 05:15 PM

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.


great_wall 02-17-2013 12:37 AM

Quote:

Originally Posted by vermaden (Post 4893267)
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


All times are GMT -5. The time now is 11:24 AM.