免费注册 查看新帖 |

Chinaunix

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

[新手入门] Anybody can tell me how to find the "MAX_IO_SIZE" [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-02 16:56 |只看该作者 |倒序浏览
Anybody can tell me how to find the "MAX_IO_SIZE" in AIX?
thanks!

论坛徽章:
0
2 [报告]
发表于 2003-09-02 18:20 |只看该作者

Anybody can tell me how to find the "MAX_IO_SIZE"

MAX_IO_SIZE?
where are you see it?
what does it do?

论坛徽章:
0
3 [报告]
发表于 2003-09-02 18:24 |只看该作者

Anybody can tell me how to find the "MAX_IO_SIZE"

这是从Solaris里面来的概念,就是一次OS读写,可以最大读取多少的内容。


通过truss -p 一个server 进程对应的AIOread/ pread对应的系统调用,应该可以看到。

不过手头没有aix 机器。

在Sun里面,FC设备对应默认识1M,普通SCSI是256K。

论坛徽章:
0
4 [报告]
发表于 2003-09-02 19:26 |只看该作者

Anybody can tell me how to find the "MAX_IO_SIZE"

The LTG corresponds to the maximum allowed transfer size for disk
I/O. To take advantage of these transfer sizes, AIX 5L accepts LTG values of
128 KB, 256 KB, 512 KB, or 1024 KB.

论坛徽章:
0
5 [报告]
发表于 2003-09-02 19:38 |只看该作者

Anybody can tell me how to find the "MAX_IO_SIZE"

最近遇到如下一個錯誤.找到解決辦法如下.但無法找到MAX_IO_SIZE,
的大小

Error:  ORA-3232
Text:   unable to allocate an extent of %s blocks from tablespace %s  
---------------------------------------------------------------------------
Cause:  An attempt was made to specify a HASH_MULTIBLOCK_IO_COUNT value that  
        is greater than the tablespace's NEXT value  
Action: Increase the value of NEXT for the tablespace using ALTER TABLESPACE  
        DEFAULT STORAGE or decrease the value of HASH_MULTIBLOCK_IO_COUNT.

This parameter determines how many sequential blocks a hash join reads and writes  
in one IO operation. The maximum value is operating system dependent.  

It is always less than the maximum I/O size of the operating system expressed as  
Oracle blocks (MAX_IO_SIZE / DB_BLOCK_SIZE).

In order to try and avoid this error, please see the options below.  

Option 1
--------

Set the initial and next extent size of the temporary tablespace equal to or  
greater than MAX_IO_SIZE.

MAX_IO_SIZE is an operating system dependant parameter. Please refer to the  
operating system documentation for information about this parameter.

Obtain the correct tablespace name by

select name from sys.ts$ where ts# = <tablespace_number>;;

Once you have the MAX_IO_SIZE, alter the NEXT value of the using ALTER TABLESPACE  
syntax.
  
Example: With MAX_IO_SIZE= 128K the default storage for the initial and next extent
         should be >;= (128 * 1024) = 131072 bytes.

SQL>; SELECT initial_extent, next_extent  
  2  FROM   dba_tablespaces     
  3  WHERE  tablespace_name = 'TEMP';                             
                                                                 
    INITIAL_EXTENT NEXT_EXTENT                                       
    -------------- -----------                                       
             65536       65536                                       
                                                                 
SQL>; ALTER TABLESPACE temp DEFAULT STORAGE (INITIAL 128k NEXT 128k);         
                                                                 
     Tablespace altered.                                             
                                                                 
SQL>; SELECT initial_extent, next_extent  
  2  FROM   dba_tablespaces     
  3  WHERE  tablespace_name = 'TEMP';                             
                                                                 
    INITIAL_EXTENT NEXT_EXTENT                                       
    -------------- -----------                                       
            131072      131072

论坛徽章:
0
6 [报告]
发表于 2003-09-02 20:19 |只看该作者

Anybody can tell me how to find the "MAX_IO_SIZE"

把temp表空間的INITIAL_EXTENT和 NEXT_EXTENT均改為256K
就OK了,128K不行.
  但還是想知道MAX_IO_SIZE具體點,
在google搜了一下好像都如 chaoping老大所講和Solaris有關.

论坛徽章:
0
7 [报告]
发表于 2003-09-02 20:24 |只看该作者

Anybody can tell me how to find the "MAX_IO_SIZE"

你的问题和kernel parameter没关系的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP