{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/io.js/issues/1283","labels_url":"https://api.github.com/repos/nodejs/io.js/issues/1283/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/io.js/issues/1283/comments","events_url":"https://api.github.com/repos/nodejs/io.js/issues/1283/events","html_url":"https://github.com/nodejs/io.js/issues/1283","id":64679461,"number":1283,"title":"smalloc cascading issue?","user":{"login":"pflannery","id":1727302,"avatar_url":"https://avatars.githubusercontent.com/u/1727302?v=3","gravatar_id":"","url":"https://api.github.com/users/pflannery","html_url":"https://github.com/pflannery","followers_url":"https://api.github.com/users/pflannery/followers","following_url":"https://api.github.com/users/pflannery/following{/other_user}","gists_url":"https://api.github.com/users/pflannery/gists{/gist_id}","starred_url":"https://api.github.com/users/pflannery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pflannery/subscriptions","organizations_url":"https://api.github.com/users/pflannery/orgs","repos_url":"https://api.github.com/users/pflannery/repos","events_url":"https://api.github.com/users/pflannery/events{/privacy}","received_events_url":"https://api.github.com/users/pflannery/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/io.js/labels/smalloc","name":"smalloc","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-27T02:57:22Z","updated_at":"2015-05-26T17:27:50Z","closed_at":null,"body":"We been investigating large memory issues for the [Docpad Project](https://github.com/docpad/docpad) and whilst looking at a generated heap snapshot cia v8-profiler I've seen that smalloc seems to do a huge cascade in the graph starting at a node 24 in distance and cascading all the way down to 58000 in distance. (see screenshot below)\r\n\r\nThe heap snapshot is [here for download](https://www.dropbox.com/s/arnx6ptjxobk1ug/renderCollectionAfter1-1427139241561.heapsnapshot?dl=0)\r\n\r\n![smalloc-issue](https://cloud.githubusercontent.com/assets/1727302/6861104/bca1cc1a-d428-11e4-9df5-9f02a2aa4506.png)\r\n\r\nI'm not an expert in analysing heap snapshots but I don't recall seeing large distances like this in V8 heap snapshots."},"comment":{"url":"https://api.github.com/repos/nodejs/io.js/issues/comments/105611916","html_url":"https://github.com/nodejs/io.js/issues/1283#issuecomment-105611916","issue_url":"https://api.github.com/repos/nodejs/io.js/issues/1283","id":105611916,"user":{"login":"trevnorris","id":289174,"avatar_url":"https://avatars.githubusercontent.com/u/289174?v=3","gravatar_id":"","url":"https://api.github.com/users/trevnorris","html_url":"https://github.com/trevnorris","followers_url":"https://api.github.com/users/trevnorris/followers","following_url":"https://api.github.com/users/trevnorris/following{/other_user}","gists_url":"https://api.github.com/users/trevnorris/gists{/gist_id}","starred_url":"https://api.github.com/users/trevnorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevnorris/subscriptions","organizations_url":"https://api.github.com/users/trevnorris/orgs","repos_url":"https://api.github.com/users/trevnorris/repos","events_url":"https://api.github.com/users/trevnorris/events{/privacy}","received_events_url":"https://api.github.com/users/trevnorris/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T17:27:50Z","updated_at":"2015-05-26T17:27:50Z","body":"Though regardless, this will probably still be an issue even with the new implementation. You're allocations are the size of the default `Buffer.poolSize`. This means to me that chunks of the slab are being held onto. I'd investigate all uses of `Buffer#slice()` in your code."}}