antirez/redis — Issue #332: High CPU load with many subscriptions?
Author: LorenzoD
Created: 2012-02-07 19:10:40+00:00
State: open

I have a Redis instance with about 40K keys and a mostly default configuration. If a client does a "PSUBSCRIBE *" it has a minor impact on the CPU load of the redis-server process. If multiple clients do the same thing, it still has a minor impact on CPU load. If a single client does multiple subscribes to 1000 keys, the CPU load jumps. Two clients with 1000 subscribed keys usually maxes out the CPU. The machine is a dual core 3.0 GHz Intel Xeon server with 8G of RAM. Is this expected behavior?

Thanks in advance.
Lorenzo