NCA配置文档!!!Unix系统 -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

    下面的文档是从sun的网站上当下来的,

NCA配置文档!!!Unix系统

。只要做很少的改动就可以配置成功。 SystemRequirementsforSolarisNCA TosupportSolarisNCA,thesystemmustmeettheserequirements: #8226;256-MbytesRAM #8226;Solaris8OE,update7/01orlater InstallationandConfiguration

    下面的文档是从sun的网站上当下来的。只要做很少的改动就可以配置成功。

    System Requirements for Solaris NCA

    To support Solaris NCA, the system must meet these requirements:

    • 256-Mbytes RAM

    • Solaris 8 OE, update 7/01 or later

    Installation and Configuration

    Libraries

    If a Web server does not use a native Solaris NCA sockets interface (that is, a socket of type

    AF_NCA/PF_NCA,ncad_addr.so), it can be preloaded. Add a line such as LD_PRELOAD=/

    usr/lib/ncad_addr.so/usr/sbin/httpd (这个地方要改成你装的apache的目录的bin下的httpd例如/usr/local/apache/bin/httpd) in the Web server startup script.

    How to Configure Web Servers to Use Solaris NCA

    1) Register the interfaces

    Enter the names of each of the physical interfaces in the /etc/nca/nca.if file

    (See the nca.if(4) man page for more information).

    # cat /etc/nca/nca.if

    hme0

    hme1

    P6 Installation and Configuration ©2002 Sun Microsystems, Inc.

    For each interface, there must be an aclearcase/" target="_blank" >ccompanying hostname.interface-name file and an

    entry in /etc/hosts file for the contents of hostname.interface-name. To bring up the Solaris

    NCA feature on all interfaces, place an asterisk (*) in the nca.if file.

    2) Enable the ncakmod kernel module

    Change the status entry in /etc/nca/ncakmod.conf to enabled.

    # cat /etc/nca/ncakmod.conf

    #

    # NCA Kernel Module Configuration File

    #

    status=enabled

    httpd_door_path=/var/run/nca_httpd_1.door

    ncad_status=disabled

    nca_active=disabled

    See the ncakmod.conf(4) man page for more information.

    3) Enable NCA logging

    Change the status entry in /etc/nca/ncalogd.conf to enabled.

    # cat /etc/nca/ncalogd.conf

    #

    # NCA Logging Configuration File

    #

    status=enabled

    logd_path_name="/var/nca/log"

    logd_file_size=1000000

    The location of the log file can be changed by changing the path indicted by the

    logd_path_name entry. See the ncalogd.conf(4) man page for more information.

    How to Disable Caching of Web Pages

    1) Disable the ncakmod kernel module

    Change the status entry in /etc/nca/ncakmod.conf to disabled.

    # cat /etc/nca/ncakmod.conf

    # NCA Kernel Module Configuration File

    #

    status=disabled

    httpd_door_path=/var/run/nca_httpd_1.door

    ncad_status=disabled

    nca_active=disabled

    See the ncakmod.conf(4) man page for more information.

    2) Disable NCA logging

    Change the status entry in /etc/nca/ncalogd.conf to disabled.

    # cat /etc/nca/ncalogd.conf

    #

    # NCA Logging Configuration File

    #

    status=disabled

    logd_path_name="/var/nca/log"

    logd_file_size=1000000

    See the ncalogd.conf(4) man page for more information.

    ©2002 Sun Microsystems, Inc. Planning and Implementation P7

    3) Reboot the server

    How to Enable or Disable Solaris NCA Logging

    Solaris NCA logging can be turned on or off as needed once the program is enabled. (See “How to

    Enable Caching of Web Pages” for more information.)

    1) Change Solaris NCA logging

    To permanently disable logging, the status in /etc/nca/ ncalogd.conf to disabled must be

    changed, and the system rebooted. See the ncalogd.conf(4) man page for more information.

    To stop logging

    Type the following command:(下面这两步最好是你完成整个配置后在运行,否则会出错!)

    # /etc/init.d/ncalogd stop

    To start logging

    Type the following command:

    # /etc/init.d/ncalogd start

    2) How to Load the Solaris NCA Socket Utility Library

    Follow this process only if the Web server does not provide native support of the AF_NCA socket.

    Add a line to the Web server startup script that causes the library to be preloaded. The line

    should look something like this:

    LD_PRELOAD=/usr/lib/ncad_addr.so /usr/bin/httpd(上面已经说了。这要改!)

    Tuning Solaris NCA for Maximum Performance

    Tuning Solaris NCA for maximum performance is recommended only if the Web server software

    runs on a dedicated Web server machine. This tuning allocates more memory for caching the

    pages. The variables should be set in /etc/system.

    nca:nca_conn_hash_size

    Controls the hash table size in the Solaris NCA module for all TCP connections.

    Adjusted to nearest prime number.

    minimum: 0

    maximum: 201326557

    default: 383

    When to Change:

    This should be changed when the Solaris NCA TCP hash table is too small to keep track of the

    incoming TCP connections, many TCP connections are grouped together in the same hash table

    entry. This situation is indicated when Solaris NCA is receiving many TCP connections and performance

    is decreasing.

    nca:nca_conn_req_max_q

    The maximum number of pending TCP connections for Solaris NCA to listen on.

    minimum: 0

    maximum: 4,294,967,295

    default: 256

    P8 Tuning Solaris NCA for Maximum Performance ©2002 Sun Microsystems, Inc.

    When to Change:

    This should be changed when Solaris NCA closes a connection immediately after it is established

    because it already has too many established TCP connections. If Solaris NCA is receiving many TCP

    connections and can handle a larger load, but is refusing additional connections, increase this

    parameter to allow it to handle more simultaneous TCP connections.

    nca:nca_conn_req_max_q0

    The maximum number of incomplete (three-way handshake not yet finished) pending TCP connections

    for Solaris NCA to listen on.

    minimum: 0

    maximum: 4,294,967,295

    default: 1024

    When to Change:

    This should be changed when Solaris NCA refuses to accept more TCP connections because it

    already has too many pending TCP connections. If Solaris NCA is receiving many TCP connections

    and can handle a larger load, but is refusing additional connections, increase this parameter to

    allow Solaris NCA to handle more simultaneous TCP connections.

    nca:nca_ppmax

    Maximum amount of physical memory (in pages) used by Solaris NCA for caching the pages.

    Should not be more than 75 percent of total memory.

    minimum: 1% of physical memory

    maximum: limited by amount of physical memory

    default: 25% of physical memory

    When to Change:

    This should be changed when using Solaris NCA on a system with a great deal of memory (more

    than 512 MB). If a system has physical memory that is not being used, increase this parameter so

    that Solaris NCA will efficiently use memory to cache new objects and increase the system’s performance.

    nca_ppmax should be increased in conjunction with nca_vpmax, unless the system has

    more physical memory than virtual memory (a 32-bit kernel having greater than four gigabytes of

    memory). Use pagesize(1) to get the page size on the system.

    nca:nca_vpmax

    Maximum amount of virtual memory (in pages) used by Solaris NCA for caching pages. Should not

    be more than 75 percent of the total memory.

    minimum: 1% of virtual memory

    maximum: limited by amount of virtual memory

    default: 25% of virtual memory

    When to Change:

    This should be changed when using Solaris NCA on a system with a great deal of memory (more

    than 512 MB). If a kernel has virtual memory that is not being used, increase this parameter so

    that Solaris NCA willefficiently use memory to cache new objects and increase the system’s performance.

    This should be increased in conjunction with nca_ppmax and should be approximately the

    same as nca_vpmax, unless the system has more physical memory than virtual memory.

    ©2002 Sun Microsystems, Inc. Planning and Implementation P9

    General System Tuning

    Apart from Solaris NCA tuning, general system tuning can also improve performance. When using

    Sun Gigabit Ethernet cards, set it in interrupt mode for better results.

    sq_max_size

    The depth of the syncq(number of messages) before a destination streams queue generates a

    QFULL.

    minimum: 1

    maximum: 0 (unlimited)

    default: 2

    When to Change:

    When Solaris NCA is running on a system with a great dealof memory, increase this parameter to

    allow drivers to queue more packets of data. If a server is under heavy load, increase this parameter

    so that modules and drivers may process more data without dropping packets or becoming

    backlogged.

    ge:ge_intr_mode

    Enable the GE driver to send packets directly to the upper communication layers rather than

    queueing.

    minimum: 0

    maximum: 1

    default: 0 (Queue packets to upper layers)

    When to Change:

    When Solaris NCA is enabled, set this parameter to 1, so that the packet is delivered in interrupt

    mode for faster processing.

    For example, a system with four gigabytes of memory and booted under 64-bit kernel should

    have the following setting in /etc/system. (Note: pagesize(1) can be used.)

    下面的配置可以跟自己的机器的配置来设定!!!

    set sq_max_size=0

    set ge:ge_intr_mode=1

    set nca:nca_conn_hash_size=82500

    set nca:nca_conn_req_max_q=100000

    set nca:nca_conn_req_max_q0=100000

    set nca:nca_ppmax=393216

    set nca:nca_vpmax=393216

    P10 Performance Data

    Chapter 4

    Performance Data

    Independently published results show that the performance of a commercial Web server on a

    900-Mhz Sun Fire™ 280R with the Solaris NCA is 73 percent better than a one-gigahertz Intel-based

    Hewlet Packard system withLinuxthat is running the same commercial Web server. Both of these

    systems were tested without the LSO network interface cards (NIC). These results are posted at:

    http://www.spec.org/osg/web99/results/web99.html.

    Conclusion P11

    Chapter 5

    Conclusion

    The Solaris NCA can improve the performance of most popular Web servers, making it easier to

    efficiently manage resources and provide a higher level of service. It allows service providers to

    manage Web services across a heterogeneous network, without having to port to multiple Web

    servers. Solaris NCA also reduces the number of systems required to do a particular task, enabling

    better utilization of existing resources and resulting in lower cost of ownership.

    P12 References

    Chapter 6

    References

    The following sections cover the files and components that are need to use Solaris NCA. Also,

    specifics about how Solaris NCA interacts with the Web server are included.

    1. /etc/hostname.* Lists all physical interfaces configured on the server.

    2. /etc/hosts Lists all host names associated with the server. Entries in this file must match

    with entries in /etc/hostname.* files for Solaris NCA to function.

    3. /etc/init.d/ncad Solaris NCA door server startup script run when a server is booted.

    4. /etc/init.d/ncakmod Solaris NCA server startup script run when a server is booted.

    5. /etc/init.d/ncalogd Solaris NCA logging startup script run when a server is booted.

    6. /etc/nca/nca.if Lists the interfaces on which Solaris NCA is run

    (see the nca.if(4) man page).

    7. /etc/nca/ncakmod.conf Lists configuration parameters for Solaris NCA (see the

    ncakmod.conf(4) man page).

    8. /etc/nca/ncalogd.conf Lists configuration parameters for Solaris NCA logging (see

    the ncalogd.conf(4) man page).

    9. /usr/bin/ncab2clf Command used to convert data in the log file to Common Log File

    format (see the ncab2clf(1) man page).

    10./usr/lib/net/ncaconfd Command used to configure Solaris NCA to run on multiple

    interfaces during boot (see the ncaconfd (1M) man page).

    11./var/nca/log Holds log file data; in binary format, so do not edit this file.

    Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303 U.S.A. All rights reserved.

    This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document

    may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted

    and licensed from Sun suppliers.

    Sun, Sun Microsystems, the Sun logo, Sun Fire and Solaris are trademarks, registered trademarks, or service marks of Sun Microsystems, Inc. in the U.S. and other countries. All

    SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks

    are based upon an architecture developed by Sun Microsystems, Inc.

    RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Government is subject to restrictions of FAR 52.227-14(g)(2)(6/87)

    and FAR 52.227-19(6/87), or DFAR 252.227-7015(b)(6/95) and DFAR 227.7202-3(a).

    DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,

    FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

    Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, Californie 94303 Etats-Unis. Tous droits réservés.

    Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l’utilisation, la copie, la distribution, et

    la décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans l’autorisation préalable et écrite de

    Sun et de ses bailleurs de licence, s’il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et

    licencié par des fournisseurs de Sun.

    Sun, Sun Microsystems, le logo Sun, Sun Fir et Solaris sont des marques de fabrique ou des marques déposées, ou marques de service, de Sun Microsystems, Inc. aux Etats-Unis

    et dans d’autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis

    et dans d’autres pays. Les produits portantles marques SPARC sont basés sur une architecture développée par Sun Microsystems, Inc.

    CETTE PUBLICATION EST FOURNIE “EN L’ETAT” ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N’EST ACCORDEE, Y COMPRIS DES GARANTIES CONCERNANT LA VALEUR MARCHANDE,

    L’APTITUDE DE LA PUBLICATION A REPONDRE A UNE UTILISATION PARTICULIERE, OU LE FAIT QU’ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE GARANTIE NE

    S’APPLIQUERAIT PAS, DANS LA MESURE OU IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU.

    ultra-guest 回复于:2002-06-19 16:22:44NCA主要是干吗用的?简单介绍一下,

电脑资料

NCA配置文档!!!Unix系统》(https://www.unjs.com)。

    boycw 回复于:2002-06-19 16:27:41NCA就是网络缓存加速器(Network Cache Accelerator:NCA): 可以将基于Socket的WWW服务器性能最大提高到5倍左右。同时可以简化服务器的管理

    ultra-guest 回复于:2002-06-19 16:42:45听起来真不错,我要做试验该事先准备些甚么?我就一台机器,一根网线。

    没问题吗?

    Fun-FreeBSD 回复于:2002-09-02 17:25:37好东东

    可惜没机会用

    我顶

    zufuqing5303 回复于:2002-10-15 14:17:51看得我头晕目眩

   

    原文转自:http://www.ltesting.net

最新文章