Skip to content

Commit 8dd9d8e

Browse files
committed
Log memory usage and the 10 processes using the most memory
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent 56794bc commit 8dd9d8e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/system/test_systemd.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ def test_failed_units(host: Host) -> None:
2323

2424
pytest.fixture(scope='module')
2525
def test_verify_default_target(host: Host) -> None:
26+
# Look at what is using memory
27+
# TODO: to remove
28+
host.ssh('ps -eo pid,ppid,%mem,rss,args ww --sort=-rss | head -n 11')
29+
host.ssh('free')
30+
2631
analyse = host.ssh('systemd-analyze verify default.target')
2732
err = False
2833
polkit_msg = "Cannot add dependency job for unit polkit.service, ignoring: Unit not found."

0 commit comments

Comments
 (0)