{"action":"created","issue":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/3151","repository_url":"https://api.github.com/repos/cuberite/cuberite","labels_url":"https://api.github.com/repos/cuberite/cuberite/issues/3151/labels{/name}","comments_url":"https://api.github.com/repos/cuberite/cuberite/issues/3151/comments","events_url":"https://api.github.com/repos/cuberite/cuberite/issues/3151/events","html_url":"https://github.com/cuberite/cuberite/pull/3151","id":149514844,"number":3151,"title":"Smart chunk unloading","user":{"login":"LogicParrot","id":5030488,"avatar_url":"https://avatars.githubusercontent.com/u/5030488?v=3","gravatar_id":"","url":"https://api.github.com/users/LogicParrot","html_url":"https://github.com/LogicParrot","followers_url":"https://api.github.com/users/LogicParrot/followers","following_url":"https://api.github.com/users/LogicParrot/following{/other_user}","gists_url":"https://api.github.com/users/LogicParrot/gists{/gist_id}","starred_url":"https://api.github.com/users/LogicParrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogicParrot/subscriptions","organizations_url":"https://api.github.com/users/LogicParrot/orgs","repos_url":"https://api.github.com/users/LogicParrot/repos","events_url":"https://api.github.com/users/LogicParrot/events{/privacy}","received_events_url":"https://api.github.com/users/LogicParrot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2016-04-19T16:36:30Z","updated_at":"2016-04-23T13:57:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cuberite/cuberite/pulls/3151","html_url":"https://github.com/cuberite/cuberite/pull/3151","diff_url":"https://github.com/cuberite/cuberite/pull/3151.diff","patch_url":"https://github.com/cuberite/cuberite/pull/3151.patch"},"body":"Work in progress. This is a smarter replacement for #3142\r\n\r\n>Unused RAM is lost RAM - @worktycho \r\n\r\n- The server has a \"max ram dedicated for chunks\" setting, configurable in settings.ini\r\n- Chunks are kept in RAM until that amount is exceeded.\r\n- If the maximum amount is exceeded, worlds will randomly pick chunk layers, and free non-dirty, non used chunks from them until the specified max amount is reached.\r\n- If freeing unused non-dirty chunks wasn't enough, some of the worlds may decide to save unused dirty chunks to disk and then free them.\r\n\r\nUpdate: Setting is now based on RAM, not on chunk count."},"comment":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/comments/213744427","html_url":"https://github.com/cuberite/cuberite/pull/3151#issuecomment-213744427","issue_url":"https://api.github.com/repos/cuberite/cuberite/issues/3151","id":213744427,"user":{"login":"LogicParrot","id":5030488,"avatar_url":"https://avatars.githubusercontent.com/u/5030488?v=3","gravatar_id":"","url":"https://api.github.com/users/LogicParrot","html_url":"https://github.com/LogicParrot","followers_url":"https://api.github.com/users/LogicParrot/followers","following_url":"https://api.github.com/users/LogicParrot/following{/other_user}","gists_url":"https://api.github.com/users/LogicParrot/gists{/gist_id}","starred_url":"https://api.github.com/users/LogicParrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogicParrot/subscriptions","organizations_url":"https://api.github.com/users/LogicParrot/orgs","repos_url":"https://api.github.com/users/LogicParrot/repos","events_url":"https://api.github.com/users/LogicParrot/events{/privacy}","received_events_url":"https://api.github.com/users/LogicParrot/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T13:57:44Z","updated_at":"2016-04-23T13:57:44Z","body":"Current commit does not count unloaded chunks properly and will not work fully as expected. Fix soon."}}