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
package node | |
const elemSize = 128 | |
type node struct { | |
inodes []*inode | |
} | |
type inode struct { | |
k []byte |
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
Since redis uses single thread to process client requests one by one, storing large value for a key blocks others. | |
I tested how long this takes in different size value. | |
1.Test environment | |
4core 2gb | |
ubuntu server 14.04 | |
redis-version: 3.2.8 | |
2.Procedure | |
Disable persistence. |
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
1.Test environment | |
4core 2gb (use 4core so background fsync thread used by AOF_FSYNC_EVERYSEC can execute on other core) | |
ubuntu server 14.04 | |
redis-version: 3.2.8 | |
2.Procedure | |
Disable rdb bgsave, aof rewrite in config to avoid other factors | |
Set 'appendfsync' entry tto 'no', 'everysec' and 'always' in turn | |
for each policy: |