{"action":"closed","issue":{"url":"https://api.github.com/repos/scylladb/seastar/issues/65","repository_url":"https://api.github.com/repos/scylladb/seastar","labels_url":"https://api.github.com/repos/scylladb/seastar/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/scylladb/seastar/issues/65/comments","events_url":"https://api.github.com/repos/scylladb/seastar/issues/65/events","html_url":"https://github.com/scylladb/seastar/issues/65","id":112117220,"number":65,"title":"Support sleeping (non-polling) mode","user":{"login":"nyh","id":584227,"avatar_url":"https://avatars.githubusercontent.com/u/584227?v=3","gravatar_id":"","url":"https://api.github.com/users/nyh","html_url":"https://github.com/nyh","followers_url":"https://api.github.com/users/nyh/followers","following_url":"https://api.github.com/users/nyh/following{/other_user}","gists_url":"https://api.github.com/users/nyh/gists{/gist_id}","starred_url":"https://api.github.com/users/nyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyh/subscriptions","organizations_url":"https://api.github.com/users/nyh/orgs","repos_url":"https://api.github.com/users/nyh/repos","events_url":"https://api.github.com/users/nyh/events{/privacy}","received_events_url":"https://api.github.com/users/nyh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-19T10:29:25Z","updated_at":"2016-04-06T12:02:20Z","closed_at":"2016-04-06T12:02:20Z","body":"While Seastar's endless polling improves performance, it is an annoyance for:\r\n* people who just want to try a Seastar application out on their desktop, and are surprised it uses 100% cpu even when idle.\r\n* people who want to run a fairly idle Seastar application on a shared server, when there is not enough CPU to spare a whole CPU for the Seastar application.\r\n\r\nIt would be great if we had a sleep-based event-loop mode that the user can configure, or better yet - Seasstar will switch to sleep-based on its own when it has no work to do. Of course it is important not to give up any of the performance when the load is high and poll-based loop is used: hopefully without adding more overheads like memory fencing."}}