Skip to content

Instantly share code, notes, and snippets.

View jreidinger's full-sized avatar

Josef Reidinger jreidinger

View GitHub Profile
@jreidinger
jreidinger / Measuring.md
Last active April 4, 2023 08:27
How to Test Agame DBus Service Memory Consumption
View Measuring.md

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.

View benchmark.rb
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") }}
View readme
Images with progress of installation. Both ncurses and qt and both original bottom approach and vertically centered one.
View comparison
Note: it is not final, just what I found so far
Libyui-ncurses
- better works when maxing out window
Finalcut
- mouse super works like a charm
- options to move,resize,close window is really nice
View daily report
Testing Label, Mount Points and Mount By
----------------------------------------
- After fix in my git branch label is now kept if using Start with Existing partitioning
- mount by and mount path is not used with simple Start with Existing partitioning ( and default is proposed )
- When import mount points is used then it set properly mount path, but mount by is still default one ( uuid )
- when using import mount points and format system volumes, then it reset label on that system volumes ( but keep on rest ). Mount by is still lost.
How it works in old partitioner:
@jreidinger
jreidinger / disk-devicegraph.xml
Last active May 29, 2017 14:42
Demonstration of hard to debug caching problem when device is from no longer valid device graph
View disk-devicegraph.xml
<?xml version="1.0"?>
<Devicegraph>
<Devices>
<Disk>
<sid>42</sid>
<name>/dev/sda</name>
<sysfs-name>sda</sysfs-name>
<sysfs-path>/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda</sysfs-path>
<region>
<length>16777216</length>
View gist:59d5d2a471ff83a94cab409db2cbe184
## Configuration file for software management
## /etc/zypp/zypp.conf
##
## Boolean values are 0 1 yes no on off true false
[main]
##
View hana.aug
(* Hana global.inif module for Augeas
Author: Josef Reidinger <jreidinger@suse.cz>
hana global.ini is a standard INI File, just keys can be single char or number
*)
module Hana =
autoload xfm
@jreidinger
jreidinger / print_deps.rb
Last active September 19, 2016 13:46
build service dependency chain
View print_deps.rb
require "yaml"
require "cheetah"
require "pp"
require "rexml/document"
class Package
attr_accessor :layer, :name, :depends, :time, :total_time
def initialize(name, depends)
@name = name
@jreidinger
jreidinger / allowed_type_benchmark.rb
Last active June 29, 2016 07:47
yast installation profile
View allowed_type_benchmark.rb
require "yast"
require "benchmark"
VALUES = ["any", "nil", "void", "boolean", "string", "symbol", "integer",
"float", "list", "map", "term", "path", "locale", "function",
"byteblock"
]
def replacement(object, to)
types = Yast::Ops::TYPES_MAP[to]