Title: os.totalmem() incorrect when called on container (LXD) · Issue #27170 · nodejs/node · GitHub
Open Graph Title: os.totalmem() incorrect when called on container (LXD) · Issue #27170 · nodejs/node
X Title: os.totalmem() incorrect when called on container (LXD) · Issue #27170 · nodejs/node
Description: Version: 11.13.0 Platform: Linux 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Subsystem: os os.totalmem() reports an invalid value when use on a continaer - tested on lxd - How reproduce: ap...
Open Graph Description: Version: 11.13.0 Platform: Linux 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Subsystem: os os.totalmem() reports an invalid value when use on a conti...
X Description: Version: 11.13.0 Platform: Linux 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Subsystem: os os.totalmem() reports an invalid value when use on a conti...
Opengraph URL: https://github.com/nodejs/node/issues/27170
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"os.totalmem() incorrect when called on container (LXD)","articleBody":"\r\n\r\n* **Version**: 11.13.0\r\n* **Platform**: Linux 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n* **Subsystem**: os\r\n\r\nos.totalmem() reports an invalid value when use on a continaer - tested on lxd -\r\nHow reproduce: \r\n```bash\r\napt install lxd \r\nlxd init \r\n# .....\r\n\r\nlxc launch ubuntu:18.04 machine1\r\nlxc config set machine1 limits.memory 2500MB\r\nlxc exec machine1 /bin/bash\r\n\r\n# install node ......\r\nnode \r\n\u003e os.totalmem()\r\n32xxxxxxxxxx // 32GB \r\n# result here is the total memory of host no the container\r\n```\r\n\r\n\r\nhtop shows the correct value \r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/voxsoftware","@type":"Person","name":"voxsoftware"},"datePublished":"2019-04-10T07:25:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/27170/node/issues/27170"}
| 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:c7b15b28-611a-c82e-ae0d-8864cfd9f5f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBC4:FC5F:F29052:1612228:6A4E2E04 |
| html-safe-nonce | 57d7ceb09f6f1765f70f083526c860f618157874a8d49324a2abff58c1388668 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkM0OkZDNUY6RjI5MDUyOjE2MTIyMjg6NkE0RTJFMDQiLCJ2aXNpdG9yX2lkIjoiNzUxNDM2NTE2NjcwOTc3OTk3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cf5e82db4e590b47e6e6ef7d54e7bb4892db59f55013a9848a97066b4bfcd4a2 |
| hovercard-subject-tag | issue:431344727 |
| 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/nodejs/node/27170/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f48b9e8e21f5522841d0e1de2fe96f3aac7286ef859040429c4b025430e9ba5/nodejs/node/issues/27170 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f48b9e8e21f5522841d0e1de2fe96f3aac7286ef859040429c4b025430e9ba5/nodejs/node/issues/27170 |
| og:image:alt | Version: 11.13.0 Platform: Linux 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Subsystem: os os.totalmem() reports an invalid value when use on a conti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | voxsoftware |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | d9dd20d38f8ae3c4cb6b597807431db300d0bd2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width