Comments (2)
Additionally:
One thing we could also do to simplify this code and remove all the hand-rolled parsing of /proc/self/mounts
is to shell out to findmnt
so
findmnt --types cgroup --options memory --uniq --output TARGET --noheadings --notruncate --canonicalize
and
findmnt --types cgroupv2 --options memory --uniq --output TARGET --noheadings --notruncate --canonicalize
should give us the path for the one or more mount points of the memory
controller for either cgroupv1 or cgroupv2.
We could also see if the Golang standard library for listing mount points (if there even is one) is sane.
from gosigar.
Fixed in version 1.3.3
from gosigar.
Related Issues (20)
- macOS Sierra crash HOT 1
- Make Memory calculations use MemAvailable HOT 1
- Does not work on Linux HOT 3
- Darwin: no get 'syscall.NOTE_EXEC' event, and how get pid and ppid in one event? HOT 3
- psnotify can't work on Darwin platform HOT 2
- Weird package dependency
- Issue with uintptr size HOT 2
- showing wrong uptime in windows machine HOT 2
- Memory calculation inside containerized environments HOT 2
- Resolve vulnerability CVE-2020-14040 in outdated golang.org/x/text HOT 3
- More examples HOT 1
- Error when run the code HOT 4
- sigar.Mem not reporting correctly inside Docker container HOT 9
- build errors on GOARCH=arm64 (type Cpu has no field or method Get) HOT 6
- security issue from dependency on gopkg.in/yaml.v2 HOT 2
- Support for darwin arm64? HOT 1
- Readme needs updating HOT 1
- Security vulnerabilities in dependencies of latest release HOT 3
- GetFileSystemUsage(...) returns Kilobytes instead of Bytes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gosigar.