{"action":"created","issue":{"url":"https://api.github.com/repos/stnava/ANTs/issues/241","labels_url":"https://api.github.com/repos/stnava/ANTs/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/stnava/ANTs/issues/241/comments","events_url":"https://api.github.com/repos/stnava/ANTs/issues/241/events","html_url":"https://github.com/stnava/ANTs/issues/241","id":114669433,"number":241,"title":"limiting memory for compiling","user":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-02T19:42:24Z","updated_at":"2015-11-02T21:01:50Z","closed_at":"2015-11-02T21:01:50Z","body":"```\r\n$ ps -eo rss,args --sort=-rss | head -n10\r\n  RSS COMMAND\r\n1574536 /usr/libexec/gcc/x86_64-redhat-linux/5.1.1/cc1plus -fpreprocessed /tmp/ccache/tmp/antsRegist.stdout.x1carbon.localdomain.12446.gBQM2Z.ii -quiet -dumpbase antsRegist.stdout.x1carbon.localdomain.12446.gBQM2Z.ii -m64 -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/antsUtilities.dir/antsRegistration2DFloat.cxx.o -g -grecord-gcc-switches -O2 -Werror=format-security -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel -fexceptions -fstack-protector-strong -funit-at-a-time -fPIC --param ssp-buffer-size=4 -o -\r\n1550108 /usr/libexec/gcc/x86_64-redhat-linux/5.1.1/cc1plus -fpreprocessed /tmp/ccache/tmp/antsRegist.stdout.x1carbon.localdomain.12397.KLIyvM.ii -quiet -dumpbase antsRegist.stdout.x1carbon.localdomain.12397.KLIyvM.ii -m64 -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/antsUtilities.dir/antsRegistration2DDouble.cxx.o -g -grecord-gcc-switches -O2 -Werror=format-security -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel -fexceptions -fstack-protector-strong -funit-at-a-time -fPIC --param ssp-buffer-size=4 -o -\r\n```\r\n\r\nas you can see it eats 3 GiB of RAM. It's only 2 threads. If I will use 4 threads it will take 8+ GiB. Is there way how to limit it?"},"comment":{"url":"https://api.github.com/repos/stnava/ANTs/issues/comments/153155356","html_url":"https://github.com/stnava/ANTs/issues/241#issuecomment-153155356","issue_url":"https://api.github.com/repos/stnava/ANTs/issues/241","id":153155356,"user":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T21:01:50Z","updated_at":"2015-11-02T21:01:50Z","body":"Thanks for suggestions."}}