调整了读取RDB文件的方式,以降低IOPS(机械盘实在性能较差);同时包含 sjet47 增加的 opCodeSlotInfo 类型的处理#66
Open
OceanFot wants to merge 1 commit intoHDT3213:masterfrom
Open
调整了读取RDB文件的方式,以降低IOPS(机械盘实在性能较差);同时包含 sjet47 增加的 opCodeSlotInfo 类型的处理#66OceanFot wants to merge 1 commit intoHDT3213:masterfrom
OceanFot wants to merge 1 commit intoHDT3213:masterfrom
Conversation
…数据,而是从内存( Decoder.cache )中获取; Decoder.cache 每次固定从磁盘取 1MiB 的数据,如果已取完则继续读取下一个 1MiB (以12GB、30万key的rdb文件测试,大约降低了99%的IOPS) 2. Decoder 中增加 opCodeSlotInfo 类型:感谢 sjet47 HDT3213#61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改了底层读取RDB文件时的处理方式(
core/utils.go):readByte和readFull不再直接从磁盘读取数据,而是从内存(Decoder.cache)中获取;Decoder.cache每次固定从磁盘取1MiB的数据,如果已取完则继续读取下一个1MiB(以12GB、30万key的rdb文件测试,大约降低了99%的IOPS)core/decoder.go中增加opCodeSlotInfo类型:感谢 sjet47 feat(core/decoder): support opCode SlotInfo(244) #61