Livid
293.75D
548.7D
V2EX  ›  Redis

Redis 的 fork 性能在某些 Xen 驱动的 VM 上非常差

  •  
  •   Livid ·
    PRO
    · Dec 15, 2014 · 4767 views
    This topic created in 4210 days ago, the information mentioned may be changed or developed.

    http://redis.io/topics/latency

    最近踩到这个坑了……

    解决方式是换 KVM……

    具体看这个文档里 Fork time in different systems 那一段。

    确定是否踩到这个坑的方法是运行下面这条指令,看上一次 fork 花的时间:

    redis-cli info|grep latest_fork_usec
    
    1 replies    2014-12-15 22:28:33 +08:00
    pyKun
        1
    pyKun  
       Dec 15, 2014
    换kvm是个方法

    但对做云计算的同学来讲,就要注意下xen的调优了,至少要知道最近几个大版本的重大feature

    kvm质的突破是2013年底的那个版本,优化了io落地的路径解决了instance io过于平凡的麻烦。所以我也感觉这个fork问题如此底层,估计upstream上都已经被解决了吧(猜的)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2682 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:34 · PVG 19:34 · LAX 04:34 · JFK 07:34
    ♥ Do have faith in what you're doing.