Riak is no longer built or tested on 32 bit machines, so that could
potentially be a problem.

This document has some recommendations on tunings for linux that can
affect the OOM killer and VM system, most notably the vm.swappiness
sysctl:
http://docs.basho.com/riak/latest/cookbooks/Linux-Performance-Tuning/

It could be that leveldb by default now maps more than 4GB of virtual
memory, expecting the large virtual memory spaces of 64 bit systems
and smart VM work to use memory efficiently.  In that case, you'll
want to tune down the number of open files for leveldb, the number
write buffer bounds, and potentially the cache size, although that's
pretty low by default.

On Sun, Sep 15, 2013 at 9:05 AM, Daniel Rathbone
<[email protected]> wrote:
>
> I'm setting up a new small riak cluster - 8 VMs, 4GB each. Riak starts and
> dies after a few seconds on each VM. I'd like to figure out why.
>
> I'm running riak 1.4.1, built from source on ubuntu 12.04 (32 bit). I have
> AAE and search turned off and my backend is set to leveldb. Ring size is 64.
> All the other settings are default.
>
> The crash.log files show errors that look like these:
>
> 2013-09-14 22:48:25 =SUPERVISOR REPORT====
>      Supervisor: {local,riak_core_vnode_proxy_sup}
>      Context:    shutdown_error
>      Reason:
> {{{function_clause,[{riak_kv_vnode,terminate,[{bad_return_value,{stop,{db_open,"IO
> error:
> ./data/leveldb/1027618338748291114361965898003636498195577569280/000002.dbtmp:
> Cannot allocate
> memory"}}},undefined],[{file,"src/riak_kv_vnode.erl"},{line,838}]},{riak_core_vnode,terminate,3,[{file,"src/riak_core_vnode.erl"},{line,849}]},{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,586}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]},{gen_fsm,sync_send_event,[<0.19541.3>,wait_for_init,infinity]}},{gen_server,call,[riak_core_vnode_manager,{205523667749658222872393179600727299639115513856,riak_kv_vnode,get_vnode},infinity]}}
>      Offender:
> [{pid,<0.471.0>},{name,{riak_kv_vnode,205523667749658222872393179600727299639115513856}},{mfargs,{riak_core_vnode_proxy,start_link,[riak_kv_vnode,205523667749658222872393179600727299639115513856]}},{restart_type,permanent},{shutdown,5000},{child_type,worker}]
>
> 2013-09-14 22:48:25 =SUPERVISOR REPORT====
>      Supervisor: {local,riak_core_sup}
>      Context:    child_terminated
>      Reason:     shutdown
>      Offender:
> [{pid,<0.151.0>},{name,riak_core_vnode_proxy_sup},{mfargs,{riak_core_vnode_proxy_sup,start_link,[]}},{restart_type,permanent},{shutdown,5000},{child_type,supervisor}]
>
>
>
> I don't understand why riak "Cannot allocate memory" as my system memory use
> is under 20%.  Is there a config parameter I must change?
>
> Thanks,
> Daniel
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to