Skip to content

Instantly share code, notes, and snippets.

View jreidinger's full-sized avatar

Josef Reidinger jreidinger

View GitHub Profile
require "yast"
require "benchmark"
# if container
Yast::WFM.SCRSetDefault(Yast::WFM.SCROpen("chroot=/mnt:scr", false))
# endif
puts Benchmark.realtime { 1000.times { Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "systemctl is-enabled systemd-hostnamed.service") }}
@jreidinger
jreidinger / Measuring.md
Last active April 4, 2023 08:27
How to Test Agame DBus Service Memory Consumption

How to Test Agame DBus Service Memory Consumption

Requirements

Get running Live image of Agama. If some additional software is needed to install like valgrind, TW repo needs to be added by zypper. Also it is good to stop agama before doing adjustments.

Pmap

To get pmap of backend service search for service pid e.g. using ps aux | grep agama and then pass pid to pmap call. It is good to measure overall memory consumption of given component or doing serie of it to see how it differs in time.