亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2446 | 回復(fù): 5
打印 上一主題 下一主題

NCA配置文檔。! [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2002-06-19 16:16 |只看該作者 |倒序瀏覽
下面的文檔是從sun的網(wǎng)站上當(dāng)下來的。只要做很少的改動就可以配置成功。

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 accompanying 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(上面已經(jīng)說了。這要改。
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.)
下面的配置可以跟自己的機(jī)器的配置來設(shè)定。!
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 with Linux that 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 portant les 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.

論壇徽章:
0
2 [報告]
發(fā)表于 2002-06-19 16:22 |只看該作者

NCA配置文檔!!

NCA主要是干嗎用的?簡單介紹一下。

論壇徽章:
0
3 [報告]
發(fā)表于 2002-06-19 16:27 |只看該作者

NCA配置文檔!。

NCA就是網(wǎng)絡(luò)緩存加速器(Network Cache Accelerator:NCA):   可以將基于Socket的WWW服務(wù)器的性能最大提高到5倍左右。同時可以簡化服務(wù)器的管理

論壇徽章:
0
4 [報告]
發(fā)表于 2002-06-19 16:42 |只看該作者

NCA配置文檔!!

聽起來真不錯,我要做試驗該事先準(zhǔn)備些甚么?我就一臺機(jī)器,一根網(wǎng)線。
沒問題嗎?

論壇徽章:
0
5 [報告]
發(fā)表于 2002-09-02 17:25 |只看該作者

NCA配置文檔。!

好東東
可惜沒機(jī)會用
我頂

論壇徽章:
0
6 [報告]
發(fā)表于 2002-10-15 14:17 |只看該作者

NCA配置文檔。!

看得我頭暈?zāi)垦?/td>
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP