Title: select.select() consuming excessive process time on Ubuntu & MacOS · Issue #234 · stackless-dev/stackless · GitHub
Open Graph Title: select.select() consuming excessive process time on Ubuntu & MacOS · Issue #234 · stackless-dev/stackless
X Title: select.select() consuming excessive process time on Ubuntu & MacOS · Issue #234 · stackless-dev/stackless
Description: Hi, I have been using stackless for some time, but now I am stuck and need to ask for help. In short, the call to select.select() consumes excessive processing time (equal to the wall clock) in some scenarios. It seems it happens when th...
Open Graph Description: Hi, I have been using stackless for some time, but now I am stuck and need to ask for help. In short, the call to select.select() consumes excessive processing time (equal to the wall clock) in som...
X Description: Hi, I have been using stackless for some time, but now I am stuck and need to ask for help. In short, the call to select.select() consumes excessive processing time (equal to the wall clock) in som...
Opengraph URL: https://github.com/stackless-dev/stackless/issues/234
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"select.select() consuming excessive process time on Ubuntu \u0026 MacOS","articleBody":"Hi,\r\n\r\nI have been using stackless for some time, but now I am stuck and need to ask for help. In short, the call to select.select() consumes excessive processing time (equal to the wall clock) in some scenarios. It seems it happens when the system get busy, but I have not been able to boil it down better than that.\r\n\r\nThe behaviour is not consistent across platforms and versions of Stackless. When I started using Stackless back around 2.7.2 I did not have this performance problem. I first got problems on MacOS around 2.7.9 but since I was anyway about to finish up my then big project I just switched to working on Ubuntu. But now I get similar symptoms on Ubuntu as well.\r\n\r\nThe core loop of my project has not changed significantly since the start. I also don't know what I could have done wrong on Python side to have select.select behave almost like if it was implemented with a loop (but only in some cases).\r\n\r\nI would like to move onto Conda because for my new project I need numpy, scipy, and pygame at the same time (as well as FORTRAN compiler) but with the current issues I am kind of stuck.\r\n\r\nThe behaviour I get is as follows:\r\n\r\n**Ubuntu 12, 14, 16 - Stackless built locally - Intel 2500K**\r\n- Unfortunately the machine died some time ago, and I don't remember the exact Stackless version (probably 2.7.2). \r\n- Running project test suite (multi-threaded): good performance, moderate CPU load\r\n- Running \"empty loop\" (framework only): low CPU load\r\n- Running \"zita\" (pygame application + framework): good performance, moderate CPU load that disappeared when idle\r\n\r\n**Ubuntu 18 - Conda environment - Ryzen 3700**\r\n- Python 2.7.16 Stackless 3.1b3 060516 |Anaconda, Inc.| (default, Mar 23 2019, 22:01:13) \r\n [GCC 7.3.0] on linux2\r\n- Running project test suite (multi-threaded): bad performance, high CPU load\r\n- Running \"empty loop\" (framework only): low CPU load\r\n- Running \"zita\" (pygame application + framework): decent performance, high % CPU load that persists when idle\r\n\r\n**Ubuntu 18 - Stackless built locally - Ryzen 3700**\r\n- Python 2.7.16 Stackless 3.1b3 060516 (default, Aug 17 2019, 14:48:39) \r\n [GCC 7.4.0] on linux2\r\n- Running project test suite (multi-threaded): bad performance, high CPU load\r\n- Running \"empty loop\" (framework only): low CPU load\r\n- Running \"zita\" (pygame application + framework): good performance, moderate CPU load that disappears when idle\r\n\r\n**MacOS - Conda environment - Intel Core i5 (c:a 2013)**\r\n- Python 2.7.15 Stackless 3.1b3 060516 |Anaconda, Inc.| (default, Oct 5 2018, 08:25:48) \r\n [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin\r\n- Running project test suite (multi-threaded): bad performance, high CPU load\r\n- Running \"empty loop\" (framework only): low CPU load\r\n- Running \"zita\" (pygame application + framework): poor graphics performance, high CPU load that disappears when idle\r\n\r\n**MacOS - Downloaded installer - Intel Core i5 (c:a 2013)**\r\n- Python 2.7.9 Stackless 3.1b3 060516 (default, Oct 22 2016, 20:25:12) \r\n [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin\r\n- Running project test suite (multi-threaded): bad performance, high CPU load\r\n- Running \"empty loop\" (framework only): low CPU load\r\n- Running \"zita\" (pygame application + framework): poor graphics performance, high CPU load that disappears when idle\r\n\r\nSorry for the vague error report, but I just don't have a lot to go on. Any help will be appreciated.\r\n\r\nThank you in advance and best regards,\r\n\r\nAndreas\r\n","author":{"url":"https://github.com/adde1","@type":"Person","name":"adde1"},"datePublished":"2020-06-02T09:56:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/234/stackless/issues/234"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ad246a2a-63e3-ef82-f97b-8010742e0824 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E444:98BCF:2F065BA:40BEF73:6980C109 |
| html-safe-nonce | 61f7c87bc212a7f65f38a3cd3a4a4152b17e94f6eb0358150ac56276f1db3049 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDQ0Ojk4QkNGOjJGMDY1QkE6NDBCRUY3Mzo2OTgwQzEwOSIsInZpc2l0b3JfaWQiOiIxNDU5Njk3MjA3NzE1MzQ4NzQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 84dd101a11f4b7e77d207c59fa41a1c10d0a52db7e3184f2c03768892598110a |
| hovercard-subject-tag | issue:629068355 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackless-dev/stackless/234/issue_layout |
| twitter:image | https://opengraph.githubassets.com/821dd36affc5000de549816a2f5357f817678514aa79647e1f9995c9a416b038/stackless-dev/stackless/issues/234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/821dd36affc5000de549816a2f5357f817678514aa79647e1f9995c9a416b038/stackless-dev/stackless/issues/234 |
| og:image:alt | Hi, I have been using stackless for some time, but now I am stuck and need to ask for help. In short, the call to select.select() consumes excessive processing time (equal to the wall clock) in som... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adde1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fb936832e40deb3175641d9cfedc8432372f91b0bc899576222953095fc7879e |
| turbo-cache-control | no-preview |
| go-import | github.com/stackless-dev/stackless git https://github.com/stackless-dev/stackless.git |
| octolytics-dimension-user_id | 27702805 |
| octolytics-dimension-user_login | stackless-dev |
| octolytics-dimension-repository_id | 102492542 |
| octolytics-dimension-repository_nwo | stackless-dev/stackless |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 81598961 |
| octolytics-dimension-repository_parent_nwo | python/cpython |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3e9b7987a76a2b9d08066d02bb64947a61943332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width