[PATCH 0/2] Refinements to memory usage tests
Here are some patches on top of Stefano's series which adds tests showing userspace and kernel memory usage for passt. The first I needed to get the tests running on my system. The second just removes some unneccesary things. David Gibson (2): test: Correct passt binary path for memory usage tests test: Don't use "outer" passt for memory usage tests test/lib/layout_ugly | 9 --------- test/lib/setup_ugly | 21 ++------------------- test/passt.mem.mbuto | 6 ++++-- 3 files changed, 6 insertions(+), 30 deletions(-) -- 2.38.1
With mbuto, binaries typically end up in /bin not /usr/bin. In some cases
/usr/bin might not even exist. So we should put the passt binary in /bin
as well to avoid errors if /usr/bin doesn't exist.
While we're there symlink /bin to /usr/bin so that anything which refers to
/usr/bin explicitly will also work.
Signed-off-by: David Gibson
The memory usage tests check both userspace and kernel memory usage of
passt. We run it inside a VM so that we can examine kernel memory usage
without noise from whatever else is happening on the host system.
Currently we also give that VM network connectivity to the outside world
using another instance of passt on the host. The memory usage tests are
purely local to the VM, so outside connectivity is neither needed nor
desirable. Remove it and instead run the passt within the VM against a
local dummy interface.
Signed-off-by: David Gibson
On Tue, 1 Nov 2022 16:19:37 +1100
David Gibson
The memory usage tests check both userspace and kernel memory usage of passt. We run it inside a VM so that we can examine kernel memory usage without noise from whatever else is happening on the host system.
Currently we also give that VM network connectivity to the outside world using another instance of passt on the host. The memory usage tests are purely local to the VM, so outside connectivity is neither needed nor desirable. Remove it and instead run the passt within the VM against a local dummy interface.
Oh, brilliant, I didn't even consider using a dummy interface here. I would apply this series after re-spinning mine. -- Stefano
participants (2)
-
David Gibson
-
Stefano Brivio