{"action":"created","issue":{"url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/2455","labels_url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/2455/labels{/name}","comments_url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/2455/comments","events_url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/2455/events","html_url":"https://github.com/wiredtiger/wiredtiger/pull/2455","id":128070941,"number":2455,"title":"WT-2130 Don't round the split_pct to an allocation size.","user":{"login":"agorrod","id":1930121,"avatar_url":"https://avatars.githubusercontent.com/u/1930121?v=3","gravatar_id":"","url":"https://api.github.com/users/agorrod","html_url":"https://github.com/agorrod","followers_url":"https://api.github.com/users/agorrod/followers","following_url":"https://api.github.com/users/agorrod/following{/other_user}","gists_url":"https://api.github.com/users/agorrod/gists{/gist_id}","starred_url":"https://api.github.com/users/agorrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agorrod/subscriptions","organizations_url":"https://api.github.com/users/agorrod/orgs","repos_url":"https://api.github.com/users/agorrod/repos","events_url":"https://api.github.com/users/agorrod/events{/privacy}","received_events_url":"https://api.github.com/users/agorrod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-22T02:48:23Z","updated_at":"2016-01-22T17:06:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wiredtiger/wiredtiger/pulls/2455","html_url":"https://github.com/wiredtiger/wiredtiger/pull/2455","diff_url":"https://github.com/wiredtiger/wiredtiger/pull/2455.diff","patch_url":"https://github.com/wiredtiger/wiredtiger/pull/2455.patch"},"body":"The value is passed in via the API, and rounding makes it likely we\r\nwon't split as the user expects. Especially if the split percentage\r\nis high, when we'll likely round up to 100%."},"comment":{"url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/comments/173979597","html_url":"https://github.com/wiredtiger/wiredtiger/pull/2455#issuecomment-173979597","issue_url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/2455","id":173979597,"user":{"login":"keithbostic","id":1393186,"avatar_url":"https://avatars.githubusercontent.com/u/1393186?v=3","gravatar_id":"","url":"https://api.github.com/users/keithbostic","html_url":"https://github.com/keithbostic","followers_url":"https://api.github.com/users/keithbostic/followers","following_url":"https://api.github.com/users/keithbostic/following{/other_user}","gists_url":"https://api.github.com/users/keithbostic/gists{/gist_id}","starred_url":"https://api.github.com/users/keithbostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithbostic/subscriptions","organizations_url":"https://api.github.com/users/keithbostic/orgs","repos_url":"https://api.github.com/users/keithbostic/repos","events_url":"https://api.github.com/users/keithbostic/events{/privacy}","received_events_url":"https://api.github.com/users/keithbostic/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T17:06:28Z","updated_at":"2016-01-22T17:06:28Z","body":"@agorrod \r\n> Could you create a workload for me where it causes a behavior regression?\r\n\r\nWe'll see the wasted space if we increase the allocation size:\r\n```\r\nimport wiredtiger, wttest\r\nclass f(wttest.WiredTigerTestCase):\r\n    def test_f(self):\r\n        uri = 'file:f'\r\n        nentries = 100000 \r\n        self.session.create(uri,\r\n            'key_format=S,value_format=S,' +\r\n            'allocation_size=32k,internal_page_max=64k,leaf_page_max=64k')\r\n        cursor = self.session.open_cursor(uri, None, None)\r\n        for i in range(0, nentries):\r\n            cursor['key' + str(i)] = 'value' + str(i)\r\n  \r\nif __name__ == '__main__':\r\n    wttest.run()\r\n```\r\nIn the develop branch, the created file is 2.22MB, and in this branch, the created file is 2.9MB, 30% larger.\r\n"}}