-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ghw-snapshot: capture cpu, memory, topology data #203
Conversation
97d8425
to
61db0b9
Compare
it seems |
c607ec2
to
f932dd5
Compare
Yes, I did that on purpose after failing miserably with relative links :) The reason is because if you pass a directory containing relative links to Docker as a volume mount, Docker won't read the contents of the relative link (for security reasons). Docker considers a relative link to be simply a file that contains a string with a filepath in it:
I'd definitely be interested in your solution to this :) Please file a separate PR, though, as it will help for reviewing! Best, |
Ah, darn, I added to this PR because I'm using the same approach I followed for
OK, so I already made a little mess so I'll stay put and wait for further instructions. Apologies! |
I think we have a good resolution onhttps://github.com//pull/205 - I will rebase this on top of it when we reach consensus. |
works, but forgot to snapshot the relevant content under |
Add support to capture data ghw cares about in /sys/system/devices/{cpu,node}. With this patch, we can create snapshot we can reuse to test the `cpu`, `memory` and `topology` packages using the codeto consume snapshot added in commit 1a9fae7 There is quite a lot of opportunity to extract code from ghw-snapshot and add it to the newl created `snapshot` pkg, to make it easier to reuse and more testable. This refactoring is deferred to a later change because the new logic added is complex enough to stand in its own. Signed-off-by: Francesco Romani <fromani@redhat.com>
When snapshotting the block device tree structure, better use relative paths - not absolute, otherwise the link target will reference the buildDir path (not the unpackDir path), making the link broken. Signed-off-by: Francesco Romani <fromani@redhat.com>
f932dd5
to
a5eec57
Compare
updated! now the snapshot captures the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
Needed for #66 (see #66 (comment) and following)
Add support to capture data ghw cares about in
/sys/system/devices/{cpu,node}.
With this patch, we can create snapshot we can reuse
to test the
cpu
,memory
andtopology
packages usingthe codeto consume snapshot added in commit 1a9fae7
There is quite a lot of opportunity to extract code
from ghw-snapshot and add it to the newly created
snapshot
pkg, to make it easier to reuse and more testable.
This refactoring is deferred to a later change because
the new logic added is complex enough to stand in its own.
Signed-off-by: Francesco Romani fromani@redhat.com