Acelerando o NFS
agosto 24th, 2010 por Ricardo Portilho ProniEntão sua empresa só tem orçamento para um servidor NAS, e não um Storage SAN? Não se preocupe, você pode deixar o acesso ao NFS com NAS (via Ethernet Gigabit) tão rápido quanto o SAN, ou até mais.
O Oracle 11g traz um cliente nativo do NFS, o DNFS - Direct Network Filesystem.
O principal atrativo do DFNS é que ele permite a agregação de 4 Placas de Rede, com uma mera configuração no Oracle. Some isto a Gigabit + Jumbo Frames, e você terá uma velocidade respeitável de acesso.
Mas, pelo teste que eu fiz, mesmo com uma única placa de rede já temos ganhos de desempenho. Além disso, o DNFS reduz o consumo de CPU - veja o estudo feito neste link pelo Jeff Browning, Oracle Subject Matter Expert na EM.
O DFNS é melhor explicado pelas Notas do Metalink 762374.1 e 822481.1.
[oracle@nerv07 ~]$ sqlplus / AS SYSDBA
SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 23 15:03:22 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Oracle Label Security, OLAP,
Data Mining, Oracle Database Vault and Real Application Testing options
SQL> SET TIMING ON
SQL> SELECT COUNT(*) FROM T;
COUNT(*)
———-
4591104
Elapsed: 00:01:00.68
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Oracle Label Security, OLAP,
Data Mining, Oracle Database Vault and Real Application Testing options
[oracle@nerv07 ~]$ srvctl stop database -d ORCL
[oracle@nerv07 ~]$ cd $ORACLE_HOME/lib
[oracle@nerv07 lib]$ mv libodm11.so libodm11.so_bak
[oracle@nerv07 lib]$ ln -s libnfsodm11.so libodm11.so
[oracle@nerv07 lib]$ srvctl start database -d ORCL
[oracle@nerv07 lib]$ sqlplus / AS SYSDBA
SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 23 15:13:14 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Oracle Label Security, OLAP,
Data Mining, Oracle Database Vault and Real Application Testing options
SQL> SET TIMING ON
SQL> SELECT COUNT(*) FROM T;
COUNT(*)
———-
4591104
Elapsed: 00:00:48.44
SQL> SET PAGES 1000
SQL> SET LINES 210
SQL> COL SVRNAME FORMAT A20
SQL> COL DIRNAME FORMAT A20
SQL> SELECT * FROM V$DNFS_SERVERS
ID SVRNAME DIRNAME MNTPORT NFSPORT WTMAX RTMAX
———- ——————– ——————– ———- ———- ———- ———-
1 nas1 /shared_data 691 2049 0 0
Elapsed: 00:00:00.00
SQL>









