{"action":"created","issue":{"url":"https://api.github.com/repos/h2o/h2o/issues/101","labels_url":"https://api.github.com/repos/h2o/h2o/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/h2o/h2o/issues/101/comments","events_url":"https://api.github.com/repos/h2o/h2o/issues/101/events","html_url":"https://github.com/h2o/h2o/pull/101","id":53982428,"number":101,"title":"based default thread count on getconf NPROCESSORS_ONLIN Fixes #24","user":{"login":"nickdesaulniers","id":1823839,"avatar_url":"https://avatars.githubusercontent.com/u/1823839?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdesaulniers","html_url":"https://github.com/nickdesaulniers","followers_url":"https://api.github.com/users/nickdesaulniers/followers","following_url":"https://api.github.com/users/nickdesaulniers/following{/other_user}","gists_url":"https://api.github.com/users/nickdesaulniers/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdesaulniers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdesaulniers/subscriptions","organizations_url":"https://api.github.com/users/nickdesaulniers/orgs","repos_url":"https://api.github.com/users/nickdesaulniers/repos","events_url":"https://api.github.com/users/nickdesaulniers/events{/privacy}","received_events_url":"https://api.github.com/users/nickdesaulniers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-11T05:27:27Z","updated_at":"2015-01-11T05:40:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/h2o/h2o/pulls/101","html_url":"https://github.com/h2o/h2o/pull/101","diff_url":"https://github.com/h2o/h2o/pull/101.diff","patch_url":"https://github.com/h2o/h2o/pull/101.patch"},"body":"This uses sysconf to get the value of the number of online processing cores.  This works in both OSX 10.8.5 and Linux 3.13.0-36-generic, but it doesn't look there's Windows support that we have to worry about?\r\n\r\nI'm not sure that sysconf could mess up an return a negative number, and we can't initialize the static config with a runtime function, so we initialize the static struct to 1, and only reassign if the sysconf value if it's greater.\r\n\r\nYou can check this value from the command line via `getconf NPROCESSORS_ONLN`.  We use this value by default (as long as it's above 1), unless you have set a value in your config file, which takes precedent.  Not sure if we should be using max procs minus one?"},"comment":{"url":"https://api.github.com/repos/h2o/h2o/issues/comments/69484461","html_url":"https://github.com/h2o/h2o/pull/101#issuecomment-69484461","issue_url":"https://api.github.com/repos/h2o/h2o/issues/101","id":69484461,"user":{"login":"nickdesaulniers","id":1823839,"avatar_url":"https://avatars.githubusercontent.com/u/1823839?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdesaulniers","html_url":"https://github.com/nickdesaulniers","followers_url":"https://api.github.com/users/nickdesaulniers/followers","following_url":"https://api.github.com/users/nickdesaulniers/following{/other_user}","gists_url":"https://api.github.com/users/nickdesaulniers/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdesaulniers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdesaulniers/subscriptions","organizations_url":"https://api.github.com/users/nickdesaulniers/orgs","repos_url":"https://api.github.com/users/nickdesaulniers/repos","events_url":"https://api.github.com/users/nickdesaulniers/events{/privacy}","received_events_url":"https://api.github.com/users/nickdesaulniers/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T05:40:22Z","updated_at":"2015-01-11T05:40:22Z","body":"I seem to be unable to run the tests:\r\n```\r\nt/00unit.evloop.t ............... Can't locate Net/EmptyPort.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at t/Util.pm line 7.\r\nBEGIN failed--compilation aborted at t/Util.pm line 7.\r\nCompilation failed in require at t/00unit.evloop.t line 6.\r\nBEGIN failed--compilation aborted at t/00unit.evloop.t line 6.\r\nDubious, test returned 2 (wstat 512, 0x200)\r\nNo subtests run\r\n```\r\n\r\nI don't know the first thing about perl, but it looks like I'm missing a dependency.  Are there docs on how to run the tests?  They should be added to the readme."}}