免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2238 | 回复: 4
打印 上一主题 下一主题

有关RMAN速度的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-14 09:41 |只看该作者 |倒序浏览
问题描述:
    利用rman做数据迁移,从IBM S85(6cpu4G内存)的7133迁到P570(8cpu16G内存)的DS4800上,在DS4800上划出一块空间,通过nfs映射到S85上,整个数据表空间400G,做测试时在业务正常运转的情况下将近11个小时备份出来,平均每小时达到30多个G,但在实际迁移时,每小时却只有15G左右,数据库、主机都重启过也不见效,rman的执行脚本如下:
RMAN>run
  {
   allocate channel c1 type disk maxpiecesize=4G;
   allocate channel c2 type disk maxpiecesize=4G;
   allocate channel c3 type disk maxpiecesize=4G;
   allocate channel c4 type disk maxpiecesize=4G;
   allocate channel c5 type disk maxpiecesize=4G;
   allocate channel c6 type disk maxpiecesize=4G;
   backup full tag 'fulldb20070413' format '/backup/db_%d_%s_%u_%p_%c' database
   include current controlfile ;
   sql "alter system archive log current";
   backup
   archivelog all format '/backup/arch_db_%d_%s_%u_%p_%c';
   release channel c1 ;
   release channel c2 ;
   release channel c3 ;
   release channel c4 ;
   release channel c5 ;
   release channel c6 ;
   }
改成4个channel 也一样的速度,
通过topas命令观察的结果如下:
Topas Monitor for host:    S85B                 EVENTS/QUEUES    FILE/TTY
Sat Apr 14 09:33:31 2007   Interval:  2         Cswitch    2768  Readch    11643
                                                Syscall    1808  Writech 1537.1K
Kernel    6.5   |##                          |  Reads        15  Rawin         0
User      0.0   |                            |  Writes       17  Ttyout      474
Wait     57.8   |################            |  Forks         0  Igets         0
Idle     35.5   |##########                  |  Execs         0  Namei        10
                                                Runqueue    5.0  Dirblk        0
Interf   KBPS   I-Pack  O-Pack   KB-In  KB-Out  Waitqueue   5.5
en0     2393.3   876.5  1619.6    57.5  2335.8
en1        0.3     3.0     1.5     0.2     0.1  PAGING           MEMORY
                                                Faults        0  Real,MB    4095
Disk    Busy%     KBPS     TPS KB-Read KB-Writ  Steals      444  % Comp     27.7
hdisk2    2.5     33.2     5.5     8.0    25.2  PgspIn        0  % Noncomp  72.8
hdisk0    0.0      0.0     0.0     0.0     0.0  PgspOut       0  % Client   70.4
hdisk1    0.0      0.0     0.0     0.0     0.0  PageIn        0
hdisk7    0.0      0.0     0.0     0.0     0.0  PageOut     565  PAGING SPACE
                                                Sios         87  Size,MB    4096
kbiod    (1470  4.6% PgSp: 0.0mb root                          % Used      0.5
syncd    (4694)   1.3% PgSp: 0.1mb root                          % Free     99.4
oracle   (3822  0.3% PgSp:24.5mb oracle
lrud     (2064)   0.2% PgSp: 0.0mb root
gil      (2580)   0.2% PgSp: 0.0mb root            Press "h" for help screen.
S85B:/#  (29196)  0.1% PgSp: 4.2mb oracle          Press "q" to quit program.

网卡en0的KBPS的值不能经常达到6000以上,有时只有几百。请教有经验的高手帮我分析分析,问题到底出在什么地方?

论坛徽章:
0
2 [报告]
发表于 2007-04-14 10:56 |只看该作者
LZ, 測試和正式遷移是同一台主機嗎?

论坛徽章:
0
3 [报告]
发表于 2007-04-14 16:24 |只看该作者
是同一台主机,数据库版本是9.2.0.4

论坛徽章:
0
4 [报告]
发表于 2007-04-14 17:26 |只看该作者
LZ 看看是否網絡的瓶頸呢?

论坛徽章:
0
5 [报告]
发表于 2007-04-14 19:34 |只看该作者
网络应该没有瓶颈,因为通过topas看p570,磁盘的Busy%几乎一直是100%,如下:
Kernel    1.6   |#                           |  Reads         4  Rawin         0
User      0.1   |#                           |  Writes        5  Ttyout      457
Wait      6.1   |##                          |  Forks         0  Igets         0
Idle     92.2   |########################### |  Execs         0  Namei         0
                                                Runqueue    0.5  Dirblk        0
Network  KBPS   I-Pack  O-Pack   KB-In  KB-Out  Waitqueue   0.5
en2    6077.5   4135.8  2153.3  5922.5   155.0
en4       0.3      1.5     1.5     0.2     0.2  PAGING           MEMORY
en0       0.2      1.0     1.0     0.1     0.1  Faults        2  Real,MB   15552
                                                Steals     1352  % Comp     16.8
Disk    Busy%     KBPS     TPS KB-Read KB-Writ  PgspIn        0  % Noncomp  75.6
hdisk9   99.8   5738.8   209.7     0.0  5738.8  PgspOut       0  % Client   75.6
dac1      0.0   5738.8   209.7     0.0  5738.8  PageIn        0
dac0      0.0      2.0     0.5     2.0     0.0  PageOut    1436  PAGING SPACE
                                                Sios       1441  Size,MB   15488
Name            PID  CPU%  PgSp Owner                            % Used      0.8
nfsd         119772   0.7   0.4 root            NFS (calls/sec)  % Free     99.1
lrud          16392   0.2   0.1 root            ServerV2       0
dtterm       241746   0.1   1.5 root            ClientV2       0   Press:
topas        274652   0.0   1.4 root            ServerV3     181   "h" for help
dtgreet      119264   0.0   1.3 root            ClientV3       0   "q" to quit
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP