{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1036","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1036/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1036/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1036/events","html_url":"https://github.com/ipfs/go-ipfs/issues/1036","id":67019990,"number":1036,"title":"Huge amount of context switches, growing over time","user":{"login":"okket","id":208337,"avatar_url":"https://avatars.githubusercontent.com/u/208337?v=3","gravatar_id":"","url":"https://api.github.com/users/okket","html_url":"https://github.com/okket","followers_url":"https://api.github.com/users/okket/followers","following_url":"https://api.github.com/users/okket/following{/other_user}","gists_url":"https://api.github.com/users/okket/gists{/gist_id}","starred_url":"https://api.github.com/users/okket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okket/subscriptions","organizations_url":"https://api.github.com/users/okket/orgs","repos_url":"https://api.github.com/users/okket/repos","events_url":"https://api.github.com/users/okket/events{/privacy}","received_events_url":"https://api.github.com/users/okket/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/backlog","name":"backlog","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"milestone":null,"comments":39,"created_at":"2015-04-08T00:28:52Z","updated_at":"2015-04-30T21:26:56Z","closed_at":null,"body":"When I let ```ipfs daemon``` run for about 48 hours my system starts to show latency issues due to a huge amount of context switches. They slowly grow over time and are directly attributable to ipfs (the problem does not exist without running the daemon).\r\n\r\nHere is a nice graph to illustrate:\r\n![interrupts-week](https://cloud.githubusercontent.com/assets/208337/7036491/dbae8c62-dd95-11e4-98ab-9a0316c7f53e.png)\r\n\r\nEvery other metric, like packets per second (about 300), connections (about 50), memory usage, etc. does not grow out of bounds. \r\n\r\nGuesswork: With ```vmstat 1``` I see nearly exactly ever 10 seconds a huge spike in context switches, currently about 20k. I am somewhat sure that this is daemon. \r\n\r\nI'll update this issue tomorrow with fresh numbers and hopefully a dump of the daemon. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/97973617","html_url":"https://github.com/ipfs/go-ipfs/issues/1036#issuecomment-97973617","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1036","id":97973617,"user":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T21:26:56Z","updated_at":"2015-04-30T21:26:56Z","body":"@okket thats what i get on mars every night, lol. thank you for the logs, i'll let you know if I find anything incriminating on them"}}