Application diagnostics and monitoring potential issues.r

Is there a way to run any app in somekind of "diagnostic" "monitored" mode or get some logs on its errors? Usually I would get the error in the terminal but some apps do not display any error message in terminal.

I know that the Linux filesystem is full of inormation being written into files.. I need to figure out where I can get more info.

Why do i need it? I have a problem with terminal "cd" command taking .5second to complete (time delay). But it would be interesting in general to know how to diagnose app issues better.

System:
  Kernel: 6.1.5-zen2-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=bd716b39-6313-4def-bb78-fea6f3782898 rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 info: latte-dock
    wm: kwin_x11 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B450M-A v: Rev X.0x
    serial: <filter> UEFI: American Megatrends v: 3604 date: 02/25/2022
CPU:
  Info: model: AMD Ryzen 7 2700X socket: AM4 bits: 64 type: MT MCP arch: Zen+
    gen: 2 level: v3 note: check built: 2018-21 process: GF 12nm
    family: 0x17 (23) model-id: 8 stepping: 2 microcode: 0x800820D
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 768 KiB desc: d-8x32 KiB; i-8x64 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 2387 high: 3700 min/max: 2200/3700 boost: disabled
    base/boost: 3700/4350 scaling: driver: acpi-cpufreq governor: schedutil
    volts: 1.2 V ext-clock: 100 MHz cores: 1: 3700 2: 2200 3: 2200 4: 3700
    5: 2200 6: 2200 7: 2200 8: 2200 9: 2200 10: 2200 11: 2200 12: 2200
    13: 2200 14: 2200 15: 2200 16: 2200 bogomips: 118404
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: Micro-Star MSI
    driver: nvidia v: 525.78.01 alternate: nouveau,nvidia_drm non-free: 525.xx+
    status: current (as of 2022-12) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 09:00.0 chip-ID: 10de:1c03 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7
    compositor: kwin_x11 driver: N/A display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1200 s-dpi: 93 s-size: 1049x321mm (41.30x12.64")
    s-diag: 1097mm (43.19")
  Monitor-1: DVI-D-0 pos: primary,right res: 1920x1200 hz: 60 dpi: 94
    size: 518x324mm (20.39x12.76") diag: 611mm (24.05") modes: N/A
  Monitor-2: HDMI-0 pos: left res: 1920x1200 hz: 60 dpi: 94
    size: 518x324mm (20.39x12.76") diag: 611mm (24.05") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 525.78.01 renderer: NVIDIA GeForce GTX 1060
    6GB/PCIe/SSE2 direct render: Yes
Audio:
  Device-1: NVIDIA GP106 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel bus-ID: 3-3:3 v: kernel chip-ID: 0d8c:0004 pcie:
    gen: 3 class-ID: 0300 speed: 8 GT/s lanes: 16 bus-ID: 09:00.1
    chip-ID: 10de:10f1 class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 0b:00.3
    chip-ID: 1022:1457 class-ID: 0403
  Device-3: C-Media CM6631A Audio Processor type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound API: ALSA v: k6.1.5-zen2-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.64 running: yes
Network:
  Device-1: Qualcomm Atheros AR9285 Wireless Network Adapter driver: ath9k
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 07:00.0
    chip-ID: 168c:002b class-ID: 0280
  IF: wlp7s0 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 08:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp8s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb v: 0.8 bus-ID: 1-2:3 chip-ID: 0a12:0001 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:
  Local Storage: total: 2.62 TiB used: 52.51 GiB (2.0%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Silicon Power
    model: SPCC M.2 PCIe SSD size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: H211011a temp: 41.9 C scheme: GPT
  SMART: yes health: PASSED on: 139d 23h cycles: 633
    read-units: 12,896,665 [6.60 TB] written-units: 8,688,888 [4.44 TB]
  ID-2: /dev/sda maj-min: 8:0 vendor: Crucial model: M4-CT128M4SSD2
    family: Micron RealSSD m4/C400 size: 119.24 GiB block-size: physical: 512 B
    logical: 512 B sata: 3.0 speed: 6.0 Gb/s type: SSD serial: <filter>
    rev: 000F scheme: GPT
  SMART: yes state: enabled health: PASSED on: 5y 50d 0h cycles: 6075
  ID-3: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD20EARX-00PASB0 family: Green size: 1.82 TiB block-size:
    physical: 4096 B logical: 512 B sata: 3.0 speed: 6.0 Gb/s type: N/A
    serial: <filter> rev: AB51 temp: 25 C scheme: MBR
  SMART: yes state: enabled health: PASSED on: 5y 59d 3h cycles: 5741
  ID-4: /dev/sdc maj-min: 8:32 vendor: Kingston model: SUV400S37240G
    family: SSDNow UV400/500 size: 223.57 GiB block-size: physical: 4096 B
    logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
    rev: 96R9 temp: 24 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 1y 332d 13h cycles: 2353
Partition:
  ID-1: / raw-size: 243.65 GiB size: 243.65 GiB (100.00%)
    used: 52.48 GiB (21.5%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p6
    maj-min: 259:6
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 28.1 MiB (9.4%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1
  ID-3: /home raw-size: 243.65 GiB size: 243.65 GiB (100.00%)
    used: 52.48 GiB (21.5%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p6
    maj-min: 259:6
  ID-4: /var/log raw-size: 243.65 GiB size: 243.65 GiB (100.00%)
    used: 52.48 GiB (21.5%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p6
    maj-min: 259:6
  ID-5: /var/tmp raw-size: 243.65 GiB size: 243.65 GiB (100.00%)
    used: 52.48 GiB (21.5%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p6
    maj-min: 259:6
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: swap-2 type: zram size: 15.53 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 41.5 C mobo: N/A gpu: nvidia temp: 28 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 359 Uptime: 2h 28m wakeups: 1 Memory: 15.53 GiB
  used: 4.05 GiB (26.1%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1391
  libs: 340 tools: octopi,paru,yay pm: rpm pkgs: 0 Shell: garuda-inxi (sudo)
  default: Bash v: 5.1.16 running-in: alacritty inxi: 3.3.24
Garuda (2.6.14-1):
  System install date:     2023-01-05
  Last full system update: 2023-01-17 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio nvidia-dkms
  Windows dual boot:       Yes
  Failed units:

Well, this thread might be some additional tips and tricks. I was actually able to fix my previous problem.

If you start the app in Konsole/Terminal and you got no logs try

jctl
alias jctl 'journalctl -p 3 -xb'

Or open the issue on the app gitlab/github page.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.