排序区大小对于排序时产生的内存与文件交换I/O次数影响
2011-02-28 22:47
295 查看
select a.name, b.value
from v$statname a, v$sesstat b
where a.statistic# = b.statistic#
and b.sid = 159
and (a.name like '%ga %' or a.name like '%direct temp%')
查询UGA,PGA,I/O的大小
sort_area_size=65536
1 session uga memory 2304288
2 session uga memory max 152710332
3 session pga memory 8646228
4 session pga memory max 161476180
5 physical reads direct temporary tablespace 2623
6 physical writes direct temporary tablespace 2623
执行排序查询//
1 session uga memory 2304288
2 session uga memory max 152710332
3 session pga memory 8646228
4 session pga memory max 161476180
5 physical reads direct temporary tablespace 4545
6 physical writes direct temporary tablespace 4545
4545-2623=1922,1922次I/O操作
sort_area_size=1048576
执行排序查询//
1 session uga memory 2304288
2 session uga memory max 152710332
3 session pga memory 8646228
4 session pga memory max 161476180
5 physical reads direct temporary tablespace 5243
6 physical writes direct temporary tablespace 5243
5243-4545=698,698次I/O操作,说明排序区内存增加,I/O读写次数减少
from v$statname a, v$sesstat b
where a.statistic# = b.statistic#
and b.sid = 159
and (a.name like '%ga %' or a.name like '%direct temp%')
查询UGA,PGA,I/O的大小
sort_area_size=65536
1 session uga memory 2304288
2 session uga memory max 152710332
3 session pga memory 8646228
4 session pga memory max 161476180
5 physical reads direct temporary tablespace 2623
6 physical writes direct temporary tablespace 2623
执行排序查询//
1 session uga memory 2304288
2 session uga memory max 152710332
3 session pga memory 8646228
4 session pga memory max 161476180
5 physical reads direct temporary tablespace 4545
6 physical writes direct temporary tablespace 4545
4545-2623=1922,1922次I/O操作
sort_area_size=1048576
执行排序查询//
1 session uga memory 2304288
2 session uga memory max 152710332
3 session pga memory 8646228
4 session pga memory max 161476180
5 physical reads direct temporary tablespace 5243
6 physical writes direct temporary tablespace 5243
5243-4545=698,698次I/O操作,说明排序区内存增加,I/O读写次数减少
相关文章推荐
- 手游 APK 安装文件的大小对实际运营效果可能产生哪些影响?
- caffe ssd中输入图片大小对于内存使用和运行时间的影响
- 有一个1G大小的一个文件,里面每一行是一个词,词的大小不超过16字节,内存限制大小是1M。返回频数最高的100个词.
- PHP上传文件大小限制问题 post_max_size对大小的影响及解决方法
- [阿里一道笔试题]排序的交换次数
- 用python对指定目录下的所有文件(夹)大小进行排序
- Linux 文件按大小排序
- PHP处理一个5G文件,使用内存512M的,数据为整形,从大到小排序,优化排序算法
- 对于结构体对象在内存中分配地址的顺序及其占内存大小的疑问
- [转载] 写mmap内存和文件产生几百ms延迟原因
- ls –FlhS 按文件大小排序显示
- 内存映射文件的应用——查找字符出现的次数
- Flex程序中的注释对编译后的swf文件大小无影响
- 如果给系统添加了数百GB内存,需要同时扩大交换分区大小吗?
- Swift按照数组元素出现的次数及大小排序
- 一个一维整形数组,若干个数字,统计数组中不同的数字出现的次数,并按照出现频率从小到大排序输出,相同频率按数字大小排序输出
- file.listFiles()按文件名称、日期、大小排序方法 总结
- 统计一篇英文文件中,单词出现的次数,并按单词的长度进行排序
- [置顶] 从零开始学C++之虚继承和虚函数对C++对象内存模型造成的影响(类/对象的大小)
- 将一个无法一次读入内存的大文件排序