{"action":"created","issue":{"url":"https://api.github.com/repos/jemalloc/jemalloc/issues/1350","repository_url":"https://api.github.com/repos/jemalloc/jemalloc","labels_url":"https://api.github.com/repos/jemalloc/jemalloc/issues/1350/labels{/name}","comments_url":"https://api.github.com/repos/jemalloc/jemalloc/issues/1350/comments","events_url":"https://api.github.com/repos/jemalloc/jemalloc/issues/1350/events","html_url":"https://github.com/jemalloc/jemalloc/issues/1350","id":371691747,"node_id":"MDU6SXNzdWUzNzE2OTE3NDc=","number":1350,"title":"retain:true broken on FreeBSD","user":{"login":"trasz","id":1238567,"node_id":"MDQ6VXNlcjEyMzg1Njc=","avatar_url":"https://avatars0.githubusercontent.com/u/1238567?v=4","gravatar_id":"","url":"https://api.github.com/users/trasz","html_url":"https://github.com/trasz","followers_url":"https://api.github.com/users/trasz/followers","following_url":"https://api.github.com/users/trasz/following{/other_user}","gists_url":"https://api.github.com/users/trasz/gists{/gist_id}","starred_url":"https://api.github.com/users/trasz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trasz/subscriptions","organizations_url":"https://api.github.com/users/trasz/orgs","repos_url":"https://api.github.com/users/trasz/repos","events_url":"https://api.github.com/users/trasz/events{/privacy}","received_events_url":"https://api.github.com/users/trasz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-18T20:08:43Z","updated_at":"2018-10-23T20:34:45Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Setting retain:true on FreeBSD results in replacing every call to `mmap(2)` with two calls, the second  one being the same as with retain:false, and the first one looking like this:\r\n\r\n`+mmap(0x0,2097152,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12),-1,0x0) = 34387001344 (0x801a00000)`\r\n\r\nThis happens, because with `os_overcommits == true`, `extent_grow_retained()` fails and jemalloc falls back to `extent_alloc_wrapper_hard()`.\r\n\r\nThe `sysctl()` to obtain the value of vm.overcommit works correctly, it's just that the value obtained (`0`) is somehow incompatible with jemalloc expects.\r\n"},"comment":{"url":"https://api.github.com/repos/jemalloc/jemalloc/issues/comments/432409292","html_url":"https://github.com/jemalloc/jemalloc/issues/1350#issuecomment-432409292","issue_url":"https://api.github.com/repos/jemalloc/jemalloc/issues/1350","id":432409292,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjQwOTI5Mg==","user":{"login":"interwq","id":1339026,"node_id":"MDQ6VXNlcjEzMzkwMjY=","avatar_url":"https://avatars1.githubusercontent.com/u/1339026?v=4","gravatar_id":"","url":"https://api.github.com/users/interwq","html_url":"https://github.com/interwq","followers_url":"https://api.github.com/users/interwq/followers","following_url":"https://api.github.com/users/interwq/following{/other_user}","gists_url":"https://api.github.com/users/interwq/gists{/gist_id}","starred_url":"https://api.github.com/users/interwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interwq/subscriptions","organizations_url":"https://api.github.com/users/interwq/orgs","repos_url":"https://api.github.com/users/interwq/repos","events_url":"https://api.github.com/users/interwq/events{/privacy}","received_events_url":"https://api.github.com/users/interwq/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T20:34:44Z","updated_at":"2018-10-23T20:34:44Z","author_association":"MEMBER","body":"@trasz : thanks for the info! I remember we discussed this on gitter the other day -- can you remind me why the first call (within `grow_retained()`) failed?"}}
{"actor":{"display_login":"interwq"}}