{"action":"created","issue":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/9194","labels_url":"https://api.github.com/repos/cms-sw/cmssw/issues/9194/labels{/name}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/9194/comments","events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/9194/events","html_url":"https://github.com/cms-sw/cmssw/pull/9194","id":78768195,"number":9194,"title":"Swap with empty vectors to free up memory in ElectronSeedProducer","user":{"login":"mark-grimes","id":6480160,"avatar_url":"https://avatars.githubusercontent.com/u/6480160?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-grimes","html_url":"https://github.com/mark-grimes","followers_url":"https://api.github.com/users/mark-grimes/followers","following_url":"https://api.github.com/users/mark-grimes/following{/other_user}","gists_url":"https://api.github.com/users/mark-grimes/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-grimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-grimes/subscriptions","organizations_url":"https://api.github.com/users/mark-grimes/orgs","repos_url":"https://api.github.com/users/mark-grimes/repos","events_url":"https://api.github.com/users/mark-grimes/events{/privacy}","received_events_url":"https://api.github.com/users/mark-grimes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/comparison-pending","name":"comparison-pending","color":"fef2c0"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/orp-pending","name":"orp-pending","color":"fbca04"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/pending-signatures","name":"pending-signatures","color":"eb6420"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/reconstruction-pending","name":"reconstruction-pending","color":"fbca04"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/tests-pending","name":"tests-pending","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cms-sw/cmssw/milestones/9","html_url":"https://github.com/cms-sw/cmssw/milestones/Next%20CMSSW_6_2_X_SLHC","labels_url":"https://api.github.com/repos/cms-sw/cmssw/milestones/9/labels","id":398204,"number":9,"title":"Next CMSSW_6_2_X_SLHC","description":"","creator":{"login":"ktf","id":10544,"avatar_url":"https://avatars.githubusercontent.com/u/10544?v=3","gravatar_id":"","url":"https://api.github.com/users/ktf","html_url":"https://github.com/ktf","followers_url":"https://api.github.com/users/ktf/followers","following_url":"https://api.github.com/users/ktf/following{/other_user}","gists_url":"https://api.github.com/users/ktf/gists{/gist_id}","starred_url":"https://api.github.com/users/ktf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktf/subscriptions","organizations_url":"https://api.github.com/users/ktf/orgs","repos_url":"https://api.github.com/users/ktf/repos","events_url":"https://api.github.com/users/ktf/events{/privacy}","received_events_url":"https://api.github.com/users/ktf/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":764,"state":"open","created_at":"2013-08-09T09:55:23Z","updated_at":"2015-05-21T01:11:43Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-21T01:09:46Z","updated_at":"2015-05-21T01:11:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cms-sw/cmssw/pulls/9194","html_url":"https://github.com/cms-sw/cmssw/pull/9194","diff_url":"https://github.com/cms-sw/cmssw/pull/9194.diff","patch_url":"https://github.com/cms-sw/cmssw/pull/9194.patch"},"body":"Using `clear` on temporary vectors wasn't freeing up the memory.  Changed to a swap with an empty vector instead.\r\n\r\nAt 200 pileup this frees up about 40 Mb.  Retained memory before (including the product, although that is a tiny fraction of it for this):\r\n![electronseedretained_before](https://cloud.githubusercontent.com/assets/6480160/7739736/32e22fc2-ff5e-11e4-92ea-07658c8a56e6.png)\r\n\r\nAnd after applying this pull request:\r\n![electronseedretained_after](https://cloud.githubusercontent.com/assets/6480160/7739739/3de15f74-ff5e-11e4-911b-1c75359e2a61.png)\r\n"},"comment":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments/104086326","html_url":"https://github.com/cms-sw/cmssw/pull/9194#issuecomment-104086326","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/9194","id":104086326,"user":{"login":"cmsbuild","id":4170616,"avatar_url":"https://avatars.githubusercontent.com/u/4170616?v=3","gravatar_id":"","url":"https://api.github.com/users/cmsbuild","html_url":"https://github.com/cmsbuild","followers_url":"https://api.github.com/users/cmsbuild/followers","following_url":"https://api.github.com/users/cmsbuild/following{/other_user}","gists_url":"https://api.github.com/users/cmsbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/cmsbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmsbuild/subscriptions","organizations_url":"https://api.github.com/users/cmsbuild/orgs","repos_url":"https://api.github.com/users/cmsbuild/repos","events_url":"https://api.github.com/users/cmsbuild/events{/privacy}","received_events_url":"https://api.github.com/users/cmsbuild/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T01:11:49Z","updated_at":"2015-05-21T01:11:49Z","body":"A new Pull Request was created by @mark-grimes (Mark Grimes) for CMSSW_6_2_X_SLHC.\n\nSwap with empty vectors to free up memory in ElectronSeedProducer\n\nIt involves the following packages:\n\nRecoEgamma/EgammaElectronAlgos\n\n\n@cmsbuild, @cvuosalo, @nclopezo, @slava77 can you please review it and eventually sign? Thanks.\n@Sam-Harper, @lgray this is something you requested to watch as well.\nYou can sign-off by replying to this message having '+1' in the first line of your reply.\nYou can reject by replying  to this message having '-1' in the first line of your reply.\nIf you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.\n@fratnikov, @mark-grimes you are the release manager for this.\nYou can merge this pull request by typing 'merge' in the first line of your comment."}}