Buffers and Full Table Scans


对11gR2文档中
关于Buffers and Full Table Scans中说full table scan时会将可能buffer data清除掉,看的不是很明白,欢迎有经验的学友交流分享心得:

When buffers must be read from disk, the database inserts the buffers into the middle of the LRU list. In this way, hot blocks can remain in the cache so that they do not need to be read from disk again.

A problem is posed by a full table scan, which sequentially reads all rows under the table high water mark (see "Segment Space and the High Water Mark"). Suppose that the total size of the blocks in a table segment is greater than the size of the buffer cache. A full scan of this table could clean out the buffer cache, preventing the database from maintaining a cache of frequently accessed blocks.

Blocks read into the database cache as the result of a full scan of a large table are treated differently from other types of reads. The blocks are immediately available for reuse to prevent the scan from effectively cleaning out the buffer cache.

In the rare case where the default behavior is not desired, you can change the CACHE attribute of the table. In this case, the database does not force or pin the blocks in the buffer cache, but ages them out of the cache in the same way as any other block. Use care when exercising this option because a full scan of a large table may clean most of the other blocks out of the cache.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29119536/viewspace-1486528/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29119536/viewspace-1486528/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
To read a received packet from the Ethernet buffers and send it to lwIP for handling, you need to follow these steps: 1. Retrieve the packet from the Ethernet buffers. This can typically be done using DMA (Direct Memory Access) to transfer the packet from the Ethernet controller's buffer to a buffer in memory. 2. Check the packet header to determine whether it is an IP packet or not. If it is not an IP packet, you can discard it. 3. If the packet is an IP packet, pass it to lwIP for handling by calling the appropriate function. This function will typically be something like `ethernet_input()` or `ip_input()`, depending on the specific implementation. 4. Once the packet has been passed to lwIP, it will handle it according to its configured networking stack. This may involve routing the packet to its destination, processing any network protocols that are encapsulated within the packet, or performing other operations as needed. 5. After lwIP has finished handling the packet, it may generate a response packet that needs to be transmitted back out onto the network. To do this, you will need to use the Ethernet controller's transmit buffer to send the packet back out onto the network. Overall, the process of reading a received packet from the Ethernet buffers and sending it to lwIP for handling can be complex, and will depend on the specific implementation of lwIP and the Ethernet controller being used. However, by following the general steps outlined above, you can begin to understand the basic flow of data through the networking stack.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值