碎片(Fragmentation)--解析
Fragmentation write by Jonathan Lewis Translated By me
Fragmentation1:
这篇文章开始于一个简单的随记,直到我意识到它不仅如此,我决定把它写成一系列文章,我将发布以下四部分在接下来的2周:
1,介绍
2,磁盘和表空间碎片
3,表碎片
4,索引碎片
Introduction
单词‘fragmentaion’的含义是某些东西被分割成片段,但是也经常暗示着被分割成很多小的片段。在oracle中,你需要去考虑究竟什么是一个片段,这个片段的粒度
是什么,可能会给系统性能带来什么样的影响。这是因为当我们讨论关于碎片,它可能是在(Logical)磁盘(disk)级别,文件(file)级别,表空间(tablespace)级别,
段(segment)级别,区(extent)级别,以及块(block)级别。所以,当你评论诸如"my tablespace is fragmented"或者”my index is fragmented",你非常有必要清晰的
阐述你究竟要说什么。
让我们从一个例子开始:我创建了一个新表空间并且转移进一张表。当我查询dba_extents视图的时候,这张表有100个extents。但从这个“fragment"的字面意思而言,
很明显这张表是"碎片的",因为它被划分成100个不同的片段。另一方面,这张表是我操作这个表空间的第一个操作,我可以看到所有的这些extents是连续的-所以你可
能会说这个表是逻辑碎片的"logical fragmented"而不是物理碎片的"physically contiguous"(逻辑上分成很多片段,无理上是相邻的).
如上这个碎片的例子会不会影响我们数据库系统的性能呢?因为大部分orcale的I/O操作都是在块级别完成的(我们读一个数据块进入db cache,我们写数据块进入数据
文件),并且在任何特定的extent里数据块的位置是无相关性的,所以答案可能是no。但是很多次当我在一个单独的读请求下读很多相邻的块(tablescans和index fast
full scans),物理上连续"physically contiguous"的表被分割成逻辑上碎片"logically frgmented"的区(extents)会存在什么问题吗?
假设很多extent,每个extent是64k,当发出一个多块读"db file multiblock read"的请求,它会受限于extent的大小吗?或者,它能够跨extent读吗?假设一个表空
间由两个数据文件组成,并且这些extents以轮流"round-robin"方式在这两个文件中产生-这样会影响读操作的方式吗?假设我们尝试并行扫描一张表-这些限制会影响
"direct pathreads"吗?如果你是在数据仓库花费大量的时间做这些操作,那么如上这些问题是你需要回答的。((See, for example, a note I wrote three years ago
about some of the anomalies of I/O sizes when running parallel query, and a related enhancement in 11g described by Christian Antognini a couple of
years later.)
仅仅在你开始清晰的考虑关于什么是碎片"fragmentation"之后,你可以开始理解可能引起的问题以及问题的可能的原因,为什么对你的系统有如此的影响。
在第二部分,我将对你应该在磁盘级别和表空间级别考虑的关于碎片的做一些阐述。
分享到:
相关推荐
// compile 'me.yokeyword:fragmentation-core:1.1.9' // 如果想使用SwipeBack 滑动边缘退出Fragment/Activity功能,完整的添加规则如下: compile 'me.yokeyword:fragmentation:1.1.9' // swipeback基于...
implementation ' com.zpj.widget:Fragmentation-Dialog:1.1.5 ' 执照 Copyright 2021 Z-P-J Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance ...
碎片重组IP数据包 该程序演示IP数据包如何分段以及如何在网络中重新组合IP数据包。 安装/运行程序: 运行以下命令: g ++ -o碎片Fragmentation_and_Reassembly.cpp ip_packet.cpp ./碎片
标签:archiva-configuration-1.3.3-sources.jar,archiva,configuration,1.3.3,sources,jar包下载,依赖包
This document talks about Low Fragmentation Heap on Windows. It's very useful for us to debug application crash issue which is caused by LFH corruption issue. Blackhat USA 2010 Chris Valasek X-...
为"单Activity + 多Fragment","多模块Activity 多Fragment"架构而生,简化开发,轻松解决动画、嵌套、事务相关等问题。
Mnesia table fragmentation 过程及算法分析。erlang就算在64位下dets的空间限制仍旧是2g,同样影响了mnesia,如果有更大需求,就必须使用Mnesia的 table fragmentation 技术
Learn something new in an Instant! A short, fast, focused guide delivering immediate results. Learn how to write apps that work on any Android version Ready to use code to solve any compatibility ...
Fragmentation of spin-orbit-coupled spinor Bose-Einstein condensates
By forcing various conditions to occur - such as connection establishment, timeout and retransmission, and fragmentation - and then displaying the results, TCP/IP Illustrated gives you a much greater ...
image-fragmentation-service :用于图像碎片框架的RESTful服务 image-optimizer-service :用于图像尺寸优化框架的RESTful服务 image-optimizer :图像尺寸优化框架 图像测试:测试图像的占位符 图像传输/导入器:...
By forcing various conditions to occur - such as connection establishment, timeout and retransmission, and fragmentation - and then displaying the results, TCP/IP Illustrated gives you a much greater ...
1. The Nature of Internet Fragmentation 2. Technical Fragmentation 4. Commercial
Fragmentation
我们比较了四种可公开使用的计算机碎片处理工具的性能,这些工具有助于代谢物的结构阐明(MetFrag,CFM-ID,MAGMa +和MS-FINDER)。 利用这些工具的输出,我们开发了一种投票/共识模型,该模型可以对候选文件进行...
适用于CVE-2020-0609和CVE-2020-0610的扫描仪 概念验证扫描程序,用于检查RDP网关...要了解这些漏洞,您可以在这里阅读我的文章: ://www.kryptoslogic.com/blog/2020/01/rdp-to-rce-when-fragmentation-goes-wrong/ C
Android fragmentation analytics --> Platform Versions Min API 16 --> Jelly Bean : 4.1.x Max API 25 --> Nougat : 7.x.x Contributors NodensN License Copyright 2018 AndroidDevFr, Inc. ...
用 c++ wxWidgets 编写的 aircrack 套件的简单 gui。 -Arp 重播 -Chop-chop -Fragmentation -Dictionary -Wpa dict -Dict plugins
Application of fragmentation research
bin packing问题外文文献,技术文献,还是看外文的!