数据库缓冲池_块缓冲| 数据库管理系统

数据库缓冲池

When several blocks need to be transferred from disk to main memory and all the block addresses are known, several buffers can be reserved in main memory to speed up the transfer.

当需要将几个块从磁盘传输到主存储器并且所有块地址已知时,可以在主存储器中保留几个缓冲区以加快传输速度。

When one buffer is being used for reading or writing, at that time the CPU can process data in the other buffer because an independent disk (I/O) processor (controller) exists when once it started it can proceed to transfer a block of data between memory and disk independent of and in parallel to CPU processing.

当一个缓冲区用于读取或写入时,那时CPU可以处理另一缓冲区中的数据,因为一旦启动它就存在一个独立的磁盘(I / O)处理器(控制器),它就可以继续传输数据块在内存和磁盘之间独立于CPU处理并与之并行。

How two processed in parallel are shown in the following figure?

下图显示了如何并行处理两个?

Buffering of blocks

In the above figure Processes, A and B are running concurrently in an interleaved fashion whereas processes C and D are running concurrently in a parallel fashion.

在上图中,进程A和B以交错方式同时运行,而进程C和D以并行方式同时运行。

When single processes control multiple processes,parallel execution is not possible.

当单个进程控制多个进程时,无法并行执行。

However, the process can still run concurrently in an interleaved way. Buffering is most useful when processes can run concurrently in parallel fashion, either because a separate disk I/O processor is available or because multiple CPU processors exist.

但是,该过程仍可以以交错方式并发运行。 当进程可以并行方式并行运行时,缓冲是最有用的,这是因为可以使用单独的磁盘I / O处理器,或者因为存在多个CPU处理器。

The following figure basically illustrates how reading and processing can proceed in parallel when the time required to process a disk block in memory is less than the time required to read the next block and fill a buffer.

下图基本说明了在内存中处理磁盘块所需的时间少于读取下一个块并填充缓冲区所需的时间时,如何并行进行读取和处理。

Buffering of blocks 1

Processing of CPU starts when the transfer of a block of data to main memory is completed and at the same time next block where the disk I/O processor reading or writing will transfer this block to the different buffer.

当一个数据块到主存储器的传输完成时,CPU的处理开始,与此同时,磁盘I / O处理器读取或写入的下一个块会将这个块传输到另一个缓冲区。

This technique is basically known as Double Buffering and it is basically used to read a continuous stream of blocks of data from disk to memory.

这种技术基本上被称为双缓冲,并且基本上用于从磁盘到内存读取连续的数据块流。

Double Buffering permits continuous reading or writing of data on consecutive disk on consecutive disk blocks, which eliminates the seek time and rotational delay for all but the first block transfer.

Double Buffering允许连续读取或写入连续磁盘块上连续磁盘上的数据,从而消除了除了第一个块传输之外的所有磁盘的寻道时间和旋转延迟。

The most important thing in this is that the data is always ready for processing which helps in reducing the waiting time.

最重要的是,数据始终准备就绪,可以进行处理,这有助于减少等待时间。

翻译自: https://www.includehelp.com/dbms/buffering-of-blocks.aspx

数据库缓冲池

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/543867.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

递归如何书写?

目录 第一步:首先你分析问题,要有递归的思路,知道要递归什么来解决问题。 第二步:先按照思路(第一层)写出函数的定义与函数体 第三步:根据函数的定义与函数体进一步确定需要的参数 第四步&a…

python 散点图 分类_Python | 分类图

python 散点图 分类Visualizing different variables is also a part of basic plotting. Such variables can have different classes, for example, numerical or a category. Matplotlib has an important feature of Categorical Plotting. We can plot multiple categoric…

二叉树祖先节点_二叉树的祖先

二叉树祖先节点Problem statement: 问题陈述: Given a Binary Tree and a target key, write a function that prints all the ancestors of the key in the given binary tree. 给定二叉树和目标键,编写一个函数,以打印给定二叉树中键的所有…

CALayer精讲

CALayer精讲 CALayer包含在QuartzCore框架中,这是一个跨平台的框架,既可以用在iOS中又可以用在Mac OS X中。后面要学Core Animation就应该先学好Layer(层)。 我们看一下UIView与Layer之间的关系图(图片来源于网络&…

rofl用什么播放_ROFL的完整形式是什么?

rofl用什么播放ROFL:笑在地板上滚动 (ROFL: Rolling On Floor Laughing) ROFL is an abbreviation of Rolling on Floor Laughing. ROFL is a very trendy internet slang between youngsters and used in text messaging, instant messaging, chatting, and social…

gif 格式 完整 检查_GIF的完整格式是什么?

gif 格式 完整 检查GIF:图形交换格式 (GIF: Graphics Interchange Format) GIF is an abbreviation of Graphics Interchange Format. It is extensively used for animations and still images on the World Wide Web. The image is set out is bitmap image and i…

Java基础_05

2019独角兽企业重金招聘Python工程师标准>>> 1:boolean运算符号 || 与 | && 与 &的区别。 Equals与innstanceof 1:java中的方法。方法的定义,参数、返回值、调用方式。 2:方法调用与参数传递、Static方…

Android Studio 之下载安装

2019独角兽企业重金招聘Python工程师标准>>> 目录[-] 背景Android Studio VS Eclipse下载创建HelloWorld项目背景 相信大家对Android Studio已经不陌生了,Android Studio是Google于2013 I/O大会针对Android开发推出的新的开发工具,目前很多开…

模拟UIWebView

2019独角兽企业重金招聘Python工程师标准>>> // // ViewController.m // 模拟UIWebView // // Created by dc0061 on 15/12/10. // Copyright © 2015年 dc0061. All rights reserved. //#import "ViewController.h"interface ViewController ()&…

4g 中bis代表什么_BIS的完整形式是什么?

4g 中bis代表什么BIS:印度标准局 (BIS: Bureau of Indian Standards) BIS is an abbreviation of the Bureau of Indian Standards. It is the National Standard Body of India which is operating in the groundwork and execution of the standards, certificati…

Feature selection

原文:http://scikit-learn.org/stable/modules/feature_selection.html The classes in the sklearn.feature_selection module can be used for feature selection/dimensionality reduction on sample sets, either to improve estimators’ accuracy scores or to boost the…

ronald aai_AAI的完整形式是什么?

ronald aaiAAI:印度机场管理局 (AAI: Airport Authority of India) AAI is an abbreviation of the Airport Authority of India. It operates under the Ministry of Civil Aviation. It is in charge of creating, crafting, maintaining and enhancing the civil…

使用Eclipse-Maven-git做Java开发(13)--导入git仓库的代码到eclipse

2019独角兽企业重金招聘Python工程师标准>>> 前面讲到了怎么使用osc的git服务进行代码托管。至此,我们已经可以使用git进行文件的版本管理了,甚至可以进行不需要IDE的编程了,但是我们绝大多数时候还是需要IDE的,接下来…

python 三维图直方图_Python | 阶梯直方图

python 三维图直方图A histogram is a graphical technique or a type of data representation using bars of different heights such that each bar groups numbers into ranges (bins or buckets). Taller the bar higher the data falls in that bin. A Histogram is one o…

ExtJS4.2学习(21)动态菜单与表格数据展示操作总结篇2

运行效果&#xff1a; 此文介绍了根据操作左侧菜单在右面板展示相应内容。 一、主页 先看一下跳转主页的方式&#xff1a;由在webapp根目录下的index.jsp跳转至demo的index.jsp 下面是demo的index.jsp的代码 <% page language"java" contentType"text/html; …

jQuery之call()方法的使用

最近在做项目时候&#xff0c;写了几行关于DOM操作的代码&#xff0c;在方法中使用了this&#xff0c;在后期重构的时候&#xff0c;想将这段分离出来做成一个方法。 最开始想的很简单&#xff0c;就直接分离出来使用方法名称调用即可。 但是实际操作的时候没有效果&#xff0c…

github的使用

GitHub操作总结 : 总结看不明白就看下面的详细讲解. GitHub操作流程 : 第一次提交 : 方案一 : 本地创建项目根目录, 然后与远程GitHub关联, 之后的操作一样; -- 初始化git仓库 :git init ; -- 提交改变到缓存 :git commit -m description ; -- 本地git仓库关联GitHub仓库 : g…

sql更改完整模式报错_SQL的完整形式是什么?

sql更改完整模式报错SQL&#xff1a;结构化查询语言 (SQL: Structured Query Language) SQL is an abbreviation of Structured Query Language. It is a programming language developed and designed for handling structured data in Relational Database Management System…

基于微服务架构,改造企业核心系统之实践

2019独角兽企业重金招聘Python工程师标准>>> 1. 背景与挑战 随着公司国际化战略的推行以及本土业务的高速发展&#xff0c;后台支撑系统已经不堪重负。在吞吐量、稳定性以及可扩展性上都无法满足日益增长的业务需求。对于每10万元额度的合同&#xff0c;从销售团队…

bkg bnc_BNC的完整形式是什么?

bkg bncBNC&#xff1a;刺刀Neill–Concelman (BNC: Bayonet Neill–Concelman) BNC is an abbreviation of "Bayonet Neill–Concelman". BNC是“刺刀Neill–Concelman”的缩写 。 It is also known as "British Naval Connector" or "Bayonet Nut …