{"action":"created","issue":{"url":"https://api.github.com/repos/fireice-uk/xmr-stak-cpu/issues/376","repository_url":"https://api.github.com/repos/fireice-uk/xmr-stak-cpu","labels_url":"https://api.github.com/repos/fireice-uk/xmr-stak-cpu/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/fireice-uk/xmr-stak-cpu/issues/376/comments","events_url":"https://api.github.com/repos/fireice-uk/xmr-stak-cpu/issues/376/events","html_url":"https://github.com/fireice-uk/xmr-stak-cpu/issues/376","id":266295844,"number":376,"title":"MEMORY ALLOC FAILED: mlock failed despite everything looks okay","user":{"login":"eLvErDe","id":1586757,"avatar_url":"https://avatars1.githubusercontent.com/u/1586757?v=4","gravatar_id":"","url":"https://api.github.com/users/eLvErDe","html_url":"https://github.com/eLvErDe","followers_url":"https://api.github.com/users/eLvErDe/followers","following_url":"https://api.github.com/users/eLvErDe/following{/other_user}","gists_url":"https://api.github.com/users/eLvErDe/gists{/gist_id}","starred_url":"https://api.github.com/users/eLvErDe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eLvErDe/subscriptions","organizations_url":"https://api.github.com/users/eLvErDe/orgs","repos_url":"https://api.github.com/users/eLvErDe/repos","events_url":"https://api.github.com/users/eLvErDe/events{/privacy}","received_events_url":"https://api.github.com/users/eLvErDe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-10-17T22:09:31Z","updated_at":"2017-11-11T16:39:02Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nHere's my start log:\r\n\r\n```\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 0.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 1.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 2.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 3.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 4.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 5.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 6.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 7.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 8.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Starting single thread, affinity: 9.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Connecting to pool europe.cryptonight-hub.miningpoolhub.com:20580 ...\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : hwloc: memory pinned\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : MEMORY ALLOC FAILED: mlock failed\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : hwloc: memory pinned\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : MEMORY ALLOC FAILED: mlock failed\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : hwloc: memory pinned\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : MEMORY ALLOC FAILED: mlock failed\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : hwloc: memory pinned\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : MEMORY ALLOC FAILED: mlock failed\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : MEMORY ALLOC FAILED: mlock failed\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Connected. Logging in...\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : Difficulty changed. Now: 500054.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:16] : New block detected.\r\nOct 18 00:04:26 thrall xmr-stak-cpu[9463]: [2017-10-18 00:01:29] : New block detected.\r\n```\r\n\r\nSo I still see issues regarding memory allocation. HOWEVER: I do have proper limits:\r\n\r\n```\r\ncat /proc/`ps aux | grep xmr-stak-cpu | grep -v grep | awk '{ print $2 }'`/limits | grep 'Max locked memory'\r\n```\r\n\r\nReturning:\r\n```\r\nMax locked memory         262144               262144               bytes     \r\n```\r\n\r\nBtw, I think you should add this simple shell command to help users figuring out if everything is correctly setup in README.md\r\n\r\nSo any hint ?\r\n\r\nBtw, I'm nearly done packaging the whole app as a proper Debian/Ubuntu package. All you have to do is edit a simple config file to setup the pool address, everything else is configured automatically (using an homemade Python script to generate config.txt). Would you be interrested in it ?\r\n\r\nRegards, Adam."},"comment":{"url":"https://api.github.com/repos/fireice-uk/xmr-stak-cpu/issues/comments/343677150","html_url":"https://github.com/fireice-uk/xmr-stak-cpu/issues/376#issuecomment-343677150","issue_url":"https://api.github.com/repos/fireice-uk/xmr-stak-cpu/issues/376","id":343677150,"user":{"login":"cbesot","id":199015,"avatar_url":"https://avatars0.githubusercontent.com/u/199015?v=4","gravatar_id":"","url":"https://api.github.com/users/cbesot","html_url":"https://github.com/cbesot","followers_url":"https://api.github.com/users/cbesot/followers","following_url":"https://api.github.com/users/cbesot/following{/other_user}","gists_url":"https://api.github.com/users/cbesot/gists{/gist_id}","starred_url":"https://api.github.com/users/cbesot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbesot/subscriptions","organizations_url":"https://api.github.com/users/cbesot/orgs","repos_url":"https://api.github.com/users/cbesot/repos","events_url":"https://api.github.com/users/cbesot/events{/privacy}","received_events_url":"https://api.github.com/users/cbesot/received_events","type":"User","site_admin":false},"created_at":"2017-11-11T16:39:02Z","updated_at":"2017-11-11T16:39:02Z","author_association":"NONE","body":"Same problem form me.\r\n\r\n> core file size          (blocks, -c) 0\r\n> data seg size           (kbytes, -d) unlimited\r\n> scheduling priority             (-e) 0\r\n> file size               (blocks, -f) unlimited\r\n> pending signals                 (-i) 66068\r\n> max locked memory       (kbytes, -l) 262144\r\n> max memory size         (kbytes, -m) unlimited\r\n> open files                      (-n) 1024\r\n> pipe size            (512 bytes, -p) 8\r\n> POSIX message queues     (bytes, -q) 819200\r\n> real-time priority              (-r) 0\r\n> stack size              (kbytes, -s) 8192\r\n> cpu time               (seconds, -t) unlimited\r\n> max user processes              (-u) 66068\r\n> virtual memory          (kbytes, -v) unlimited\r\n> file locks                      (-x) unlimited\r\n> "}}
{"actor":{"display_login":"cbesot"}}