vm.overcommit_memory Parameter.

46 views
Skip to first unread message

Sairam M P

unread,
Jun 2, 2016, 1:07:46 PM6/2/16
to Redis DB
Hi Redis-DB,

Whether redis-server dynamically detect the value of "vm.overcommit_memory" parameter ?. We are using CentOS-6.4. 

When starting the redis server the value of "vm.overcommit_memory" was 0. But after starting the redis server we have run "sysctl vm.overcommit_memory=1" to set this property to 1. Do we need to restart redis for redis to detect this change or will it take effect dynamically ? 

-Sairam.

Matt Palmer

unread,
Jun 2, 2016, 7:34:46 PM6/2/16
to redi...@googlegroups.com
On Thu, Jun 02, 2016 at 10:07:45AM -0700, Sairam M P wrote:
> When starting the redis server the value of "vm.overcommit_memory" was* 0*.
> But after starting the redis server we have run *"sysctl
> vm.overcommit_memory=1"* to set this property to *1*. Do we need to restart
> redis for redis to detect this change or will it take effect dynamically ?

It takes effect immediately. It's a kernel parameter, not a Redis-specific
one.

- Matt

Reply all
Reply to author
Forward
0 new messages