Profile sync daemon breaks browsers

garuda-inxi
System:
  Kernel: 5.18.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=53e270ad-dfd5-4874-a125-69d21ada6b8d rw rootflags=subvol=@
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
    sysrq_always_enabled=1 amdgpu.ppfeaturemask=0xffffffff nowatchdog
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: X470 Taichi serial: <superuser required>
    UEFI: American Megatrends v: P4.86 date: 01/27/2022
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: AMD Ryzen 5 2600X bits: 64 type: MT MCP arch: Zen+
    family: 0x17 (23) model-id: 8 stepping: 2 microcode: 0x800820D
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 4155 high: 4174 min/max: 2200/3600 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 4172 2: 4170
    3: 4158 4: 4173 5: 4173 6: 4141 7: 4160 8: 4137 9: 4153 10: 4152 11: 4174
    12: 4099 bogomips: 86405
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M]
    vendor: Gigabyte driver: amdgpu v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,HDMI-A-2
    bus-ID: 0f:00.0 chip-ID: 1002:73df class-ID: 0300
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
    alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 6400x2160 s-dpi: 120 s-size: 1354x457mm (53.31x17.99")
    s-diag: 1429mm (56.26")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,left
    model: LG (GoldStar) HDR WFHD serial: <filter> built: 2021 res: 2560x1080
    dpi: 81 gamma: 1.2 size: 798x334mm (31.42x13.15") diag: 869mm (34.2")
    modes: max: 2560x1080 min: 640x480
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: right model: Samsung
    serial: <filter> built: 2019 res: 3840x2160 hz: 60 dpi: 52 gamma: 1.2
    size: 1872x1053mm (73.7x41.46") diag: 1093mm (43") ratio: 16:9 modes:
    max: 3840x2160 min: 720x400
  OpenGL: renderer: AMD Radeon RX 6700 XT (navy_flounder LLVM 13.0.1 DRM
    3.46 5.18.1-zen1-1-zen)
    v: 4.6 Mesa 22.1.1 direct render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0f:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Sound Server-1: ALSA v: k5.18.1-zen1-1-zen running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 16.0 running: no
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 09:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Edimax Bluetooth Adapter type: USB driver: btusb v: 0.8
    bus-ID: 1-8:4 chip-ID: 7392:c611 class-ID: e001 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 2.96 TiB used: 3.09 TiB (104.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Samsung
    model: SSD 970 EVO 250GB size: 232.89 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXE7 temp: 33.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 980 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 1B4QFXO7
    temp: 35.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DX002-2DV164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC41 scheme: GPT
Partition:
  ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 684.36 GiB (73.5%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 16.3 MiB (5.5%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:1
  ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 684.36 GiB (73.5%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 684.36 GiB (73.5%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 684.36 GiB (73.5%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.27 GiB used: 2 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 55.0 C mobo: 0.0 C gpu: amdgpu temp: 53.0 C
    mem: 54.0 C
  Fan Speeds (RPM): fan-2: 0 fan-3: 0 fan-4: 0 fan-5: 0 gpu: amdgpu fan: 0
Info:
  Processes: 440 Uptime: 20m wakeups: 2 Memory: 31.27 GiB
  used: 11.86 GiB (37.9%) Init: systemd v: 251 tool: systemctl Compilers:
  gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 2311 lib: 572 flatpak: 0
  Shell: fish v: 3.4.1 default: Bash v: 5.1.16 running-in: alacritty
  inxi: 3.3.16
Garuda (2.6.3-2):
  System install date:     2022-05-22
  Last full system update: 2022-06-05 ↻
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:

As you can see in my inxi my tmpfs/run/user/1000 is full which causes a whole bunch of problems with Vivaldi (and firedragon) where logins are lost, websites don't work (had to disable profile sync to be able to even write this post)

I posted on the telegram group about this and was advised to disable profile sync so I ran systemctl --user stop psd and systemctl --user disable psd but upon the next reboot they get renabled.

how do I either

  1. fix the issue so i can use psd?
  2. if thats not possible how do i permently disable psd?

EDIT: thought the inxi showed the free space of /run/user/1000 but don't see it so here it is

df /run/user/1000
Filesystem      1K-blocks       Used Available Use% Mounted on
tmpfs             3278840    3278836         4 100% /run/user/1000

Would removing Vivaldi and Firedragon from ~/.config/psd.conf help?

2 Likes

I am under the impression pam_systemd will wipe this directory for you if you reboot. Is that not happening?

no it stays full on a reboot. (possibly because it just copies all of my browsers settings again to it on login)

should have actually checked if the config ( i did read there is one on the arch wiki page but I don’t why i didn’t think there would be an option to disable it for certain browsers)

yes that does seem to help

although ideally, I would like to fix profile sync as its a pretty cool script

EDIT: noticed its vivaldi thats filling up the tmpfs left firedragon enabled and its at

df /run/user/1000/
Filesystem     1K-blocks  Used Available Use% Mounted on
tmpfs            3278840 43856   3234984   2% /run/user/1000

figured it out so the issue is since vivaldi also has a built in mail client (which I use) it uses about 5GB of space. by deafult arch limits /run/user/100 to 10% of your total memory. I have 32GB so thats 3.2GB which is less than the 5GB vivaldi uses and it also has to account for firedragon.

the solution was to edit /etc/systemd/logind.conf as seen here logind.conf(5) — Arch manual pages I set it to 25% which actually may be a little high but that's the maximum allowed not what is actually allocated (it seems it only allocates what it needs up to this limit)

it would be nice if it wouldn't sync the mail database but I don't think there (at least I couldn't find any) options to exclude certain file paths

2 Likes

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