{"action":"created","issue":{"url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/544","labels_url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/544/comments","events_url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/544/events","html_url":"https://github.com/tatsuhiro-t/aria2/issues/544","id":129184136,"number":544,"title":"Could mmap supports max file size?","user":{"login":"luokar","id":224425,"avatar_url":"https://avatars.githubusercontent.com/u/224425?v=3","gravatar_id":"","url":"https://api.github.com/users/luokar","html_url":"https://github.com/luokar","followers_url":"https://api.github.com/users/luokar/followers","following_url":"https://api.github.com/users/luokar/following{/other_user}","gists_url":"https://api.github.com/users/luokar/gists{/gist_id}","starred_url":"https://api.github.com/users/luokar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luokar/subscriptions","organizations_url":"https://api.github.com/users/luokar/orgs","repos_url":"https://api.github.com/users/luokar/repos","events_url":"https://api.github.com/users/luokar/events{/privacy}","received_events_url":"https://api.github.com/users/luokar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-27T15:53:40Z","updated_at":"2016-01-28T12:06:38Z","closed_at":null,"body":"mmap make downloading faster and generating less disk IO which is really important for a low end computer. However, if the file length is bigger than the total number of RAM in machine, aria2 will just crash and slow down the system. Could it be possible to add a setting like mmap-max-file-size and turn off mmap for file bigger than certain size to workaround this problem?"},"comment":{"url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/comments/176147053","html_url":"https://github.com/tatsuhiro-t/aria2/issues/544#issuecomment-176147053","issue_url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/544","id":176147053,"user":{"login":"luokar","id":224425,"avatar_url":"https://avatars.githubusercontent.com/u/224425?v=3","gravatar_id":"","url":"https://api.github.com/users/luokar","html_url":"https://github.com/luokar","followers_url":"https://api.github.com/users/luokar/followers","following_url":"https://api.github.com/users/luokar/following{/other_user}","gists_url":"https://api.github.com/users/luokar/gists{/gist_id}","starred_url":"https://api.github.com/users/luokar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luokar/subscriptions","organizations_url":"https://api.github.com/users/luokar/orgs","repos_url":"https://api.github.com/users/luokar/repos","events_url":"https://api.github.com/users/luokar/events{/privacy}","received_events_url":"https://api.github.com/users/luokar/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T12:06:38Z","updated_at":"2016-01-28T12:06:38Z","body":"@tatsuhiro-t  I have tested file-allocation=trunc for a while. The outcome is depressing. It yields even lower performance(maybe problem related to fragmentation) and hanging still appears sometime. I think I better keep using mmap with caution. If this won't be fixed, please tell me and I will close this issue."}}