Skip to content

调整了读取RDB文件的方式,以降低IOPS(机械盘实在性能较差);同时包含 sjet47 增加的 opCodeSlotInfo 类型的处理#66

Open
OceanFot wants to merge 1 commit intoHDT3213:masterfrom
OceanFot:hdt3213-master
Open

Conversation

@OceanFot
Copy link
Copy Markdown

  1. 修改了底层读取RDB文件时的处理方式( core/utils.go ): readBytereadFull 不再直接从磁盘读取数据,而是从内存( Decoder.cache )中获取; Decoder.cache 每次固定从磁盘取 1MiB 的数据,如果已取完则继续读取下一个 1MiB (以 12GB 、30万key的rdb文件测试,大约降低了99%的IOPS)

  2. core/decoder.go 中增加 opCodeSlotInfo 类型:感谢 sjet47 feat(core/decoder): support opCode SlotInfo(244) #61

…数据,而是从内存( Decoder.cache )中获取; Decoder.cache 每次固定从磁盘取 1MiB 的数据,如果已取完则继续读取下一个 1MiB (以12GB、30万key的rdb文件测试,大约降低了99%的IOPS)

2. Decoder 中增加 opCodeSlotInfo 类型:感谢 sjet47 HDT3213#61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant