eXtremeDB 关于mem_page_size与Disk_page_size

The mem_page_size and disk_page_size elements define the size of memory 
pages for conventional memory and persistent media devices, respectively. The 
mem_page_size can be calculated to optimize performance and will vary 
depending on the application dynamics, but as a rule of thumb, page size should 
be between 80 and 512 bytes; a 100 byte page size would be fairly good in most 

situations.

For all-in-memory databases disk_page_size will be set to zero by 

eXtremeDB, for persistent and hybrid databases both parameters should be set to 
a power of 2 with disk_page_size being at least 8 times the mem_page_size value 
to allow for efficient caching. It may be useful to map the disk_page_size to the 
blocking factor of the persistent media. This is because eXtremeDB performs I/O 
in units of disk_page_size (i.e. if you modify a record on a page that holds five 
records, eXtremeDB will write the entire page), and disks perform I/O in blocks, 
regardless of the size of I/O requested by the database system. In other words, if 
the disk blocking factor is 8192 bytes, the disk will always read or write 8192 
bytes, even if eXtremeDB makes a call to write 4096 bytes because its 
disk_page_size is 4096 bytes. Given that the disk will always read or write 8192 
bytes, eXtremeDB should, also.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值