{"action":"closed","issue":{"url":"https://api.github.com/repos/sanskriti-s/pg-table_tests/issues/53","repository_url":"https://api.github.com/repos/sanskriti-s/pg-table_tests","labels_url":"https://api.github.com/repos/sanskriti-s/pg-table_tests/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/sanskriti-s/pg-table_tests/issues/53/comments","events_url":"https://api.github.com/repos/sanskriti-s/pg-table_tests/issues/53/events","html_url":"https://github.com/sanskriti-s/pg-table_tests/issues/53","id":373600765,"node_id":"MDU6SXNzdWUzNzM2MDA3NjU=","number":53,"title":"run-tests fails a few mmap tests on 5 level page tables","user":{"login":"joe-lawrence","id":6106009,"node_id":"MDQ6VXNlcjYxMDYwMDk=","avatar_url":"https://avatars0.githubusercontent.com/u/6106009?v=4","gravatar_id":"","url":"https://api.github.com/users/joe-lawrence","html_url":"https://github.com/joe-lawrence","followers_url":"https://api.github.com/users/joe-lawrence/followers","following_url":"https://api.github.com/users/joe-lawrence/following{/other_user}","gists_url":"https://api.github.com/users/joe-lawrence/gists{/gist_id}","starred_url":"https://api.github.com/users/joe-lawrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joe-lawrence/subscriptions","organizations_url":"https://api.github.com/users/joe-lawrence/orgs","repos_url":"https://api.github.com/users/joe-lawrence/repos","events_url":"https://api.github.com/users/joe-lawrence/events{/privacy}","received_events_url":"https://api.github.com/users/joe-lawrence/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-24T17:47:25Z","updated_at":"2018-10-25T19:09:01Z","closed_at":"2018-10-25T19:09:01Z","author_association":"COLLABORATOR","body":"When running the tests in my virtual machine, using these options:\r\n```\r\n~/local/bin/qemu-system-x86_64 \\\r\n\t-smp 4 -m 4096 \\\r\n\t-cpu qemu64,+la57 \\\r\n\t-netdev user,hostfwd=tcp::2222-:22,id=u -device virtio-net,netdev=u \\\r\n\t-drive file=rhel.qcow2,cache=none,if=virtio \\\r\n\t-monitor stdio \\\r\n\t-display none \\\r\n\t-boot c\r\n```\r\nSome of the mmap tests fail:\r\n```\r\nDetected la57 cpu support\r\nDetected 5lvl config\r\nExpecting 5-level pagetables\r\n\r\nRunning heap - malloc test... \r\n131070 GiB allocated <= 131072 GiB max 4-lvl user VM max\r\nPASSED\r\n\r\nRunning heap - sbrk test... \r\n130900 GiB allocated <= 131072 GiB max 4-lvl user VM max\r\nPASSED\r\n\r\nRunning mmap+memset+fork test: 1 process, MAP_PRIVATE...\r\nmmap: Cannot allocate memory\r\nFAILED\r\n\r\nRunning mmap+memset+fork test: 2 processes, MAP_PRIVATE...\r\nmmap: Cannot allocate memory\r\nFAILED\r\n\r\nRunning shmat test...\r\nattached memory at 2^56 below or equal to 2^56\r\nPASSED\r\n```\r\n\r\nI think this has to do with the fact that in my VM, it can't mmap at 2^57:\r\n```\r\n% ./mmap+memset+fork --begin 47 --end 56 --map_private --map_anonymous\r\ni=47,addr=0x800000000000,ptr=0x800000000000 \r\ni=48,addr=0x1000000000000,ptr=0x1000000000000 \r\ni=49,addr=0x2000000000000,ptr=0x2000000000000 \r\ni=50,addr=0x4000000000000,ptr=0x4000000000000 \r\ni=51,addr=0x8000000000000,ptr=0x8000000000000 \r\ni=52,addr=0x10000000000000,ptr=0x10000000000000 \r\ni=53,addr=0x20000000000000,ptr=0x20000000000000 \r\ni=54,addr=0x40000000000000,ptr=0x40000000000000 \r\ni=55,addr=0x80000000000000,ptr=0x80000000000000 \r\ni=56,addr=0x100000000000000,ptr=0xffffffffffffffff \r\nmmap: Cannot allocate memory\r\n```\r\n"}}
{"actor":{"display_login":"sanskriti-s"}}