From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 308EC1F428 for ; Tue, 28 Mar 2023 03:05:59 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=MFj/cqE5; dkim-atps=neutral Received: by mail-ed1-x52b.google.com with SMTP id ek18so44030271edb.6 for ; Mon, 27 Mar 2023 20:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679972757; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Y7uYXq/Dk5sMWPw9ziKqHDYPTNaSZwOYBRltypKoB+0=; b=MFj/cqE5RjJ49tL5i929ORK8z/4Ta30P0M+qIHtGq3zT/ber6/+ZpAbf5Ch9tmojV7 Nje8tgyL/eBmLb5E7X/NBRXX2Ge2IvUJgcuc4uMzKuoGg7Yyqf8ZFfr/R6xKvc0zVNlm nBRGA2qQ/gmZ+JlIEnijhI5mW9gAJbNi5TVwYxhUDE+rKbHCaYeTdz4rlp6Nq8Y1o69r 4/oD1e6vd+/Q15Itez38wNj3vpnyxchgFNsMi26+FXVH75F1VhXKseS+TUCvnqRfdawo iJ8P3F7Wp+jmWlmJ6prcG+tbxeH88ON9uJ4ea1zPrydwzNvh7VEfP/WM1qDl01Mifgs7 QVmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679972757; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y7uYXq/Dk5sMWPw9ziKqHDYPTNaSZwOYBRltypKoB+0=; b=PhvooDGCj8nFu24PF4bgigWqxJN4bQBrZkyo4YG/f7d7hTAdD9xKKMEYvGzPZVgnqS FWvmYL2SDBy5ukqrg5rPD9gCWyiJmaFt2eEbxt/gKAzBSjns0KHq0us0qe0mM5kpV5pZ 1HudQQ8+llZ1dWuahNR4m63BWlvSvPiic4NeJLz/oIkcedUq1PTKxgWueNHCW6UyXRDV /d+xXgp5ijpXBuDHWREhIN0Lm/0nrUKNKDOOOhQiYt0TYyV40HlRCHvc0LLsz7xXmLCV AJv5jLbn3kNdH6fmAb+VbTLLmycFUGik7rgk47RshPHoc7AAnme8NpQe3jgAEA4OLIkB 88Rw== X-Gm-Message-State: AAQBX9epLnBkPHVQiJMszCgpSMlbDr4xI1jtRFm7Li3haFyXWiWP7Pfb lTSPjLhr6YJ01t/IkarOKMlvlDdvnKjCfJZud7RHrgACFMwC51ll X-Google-Smtp-Source: AKy350bQ+RTh2AOIvGp5w3o8Gi+vT/2lA6z0wordgFXHQvpPLk8yGrBDmMH416kepRkiF3GHL8lM/CJPTB7t6e2jJDM= X-Received: by 2002:a17:906:4f1a:b0:930:528b:91e5 with SMTP id t26-20020a1709064f1a00b00930528b91e5mr6690119eju.4.1679972757029; Mon, 27 Mar 2023 20:05:57 -0700 (PDT) MIME-Version: 1.0 References: <20230328013226.M125137@dcvr> <20230328025205.M639038@dcvr> In-Reply-To: <20230328025205.M639038@dcvr> From: Louis DeLosSantos Date: Mon, 27 Mar 2023 23:05:45 -0400 Message-ID: Subject: Re: Issues with `lei` as non-root To: Eric Wong Cc: meta@public-inbox.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: > Actually, only 18 (0..17). The `mem' stuff is mmap-ed and doesn't count against `ulimit -n` (RLIMIT_NOFILE). Yup, you are right, did a quick "wc -l" without thinking about it. > Definitely not; the lei-daemon is per-user. Okay, maybe this is the issue to begin with? I installed lei from dnf. I'm not sure what launches the daemon, is it launched on first run? If that is the case, it was probably launched when I restored to `sudo lei q ....` command. But, if its running as systemd service, I could move it to user service. # show system-wide limits ~ =F0=9F=96=B3 head /proc/sys/fs/inotify/max_* =3D=3D> /proc/sys/fs/inotify/max_queued_events <=3D=3D 16384 =3D=3D> /proc/sys/fs/inotify/max_user_instances <=3D=3D 128 =3D=3D> /proc/sys/fs/inotify/max_user_watches <=3D=3D 524288 # show per-user inotify FDs (-nP speeds up lsof by avoiding lookups) systemd 1686 louis 6r a_inode 0,14 0 15364 inotify systemd 1686 louis 11r a_inode 0,14 0 15364 inotify systemd 1686 louis 13r a_inode 0,14 0 15364 inotify dbus-brok 1727 louis 7r a_inode 0,14 0 15364 inotify swaync 1868 louis 15r a_inode 0,14 0 15364 inotify dbus-brok 1898 louis 7r a_inode 0,14 0 15364 inotify xdg-deskt 1914 louis 10r a_inode 0,14 0 15364 inotify xdg-deskt 1938 louis 12r a_inode 0,14 0 15364 inotify xdg-deskt 1968 louis 14r a_inode 0,14 0 15364 inotify wireplumb 1979 louis 19r a_inode 0,14 0 15364 inotify wireplumb 1979 louis 28r a_inode 0,14 0 15364 inotify wireplumb 1979 louis 30r a_inode 0,14 0 15364 inotify code 2362 louis 63r a_inode 0,14 0 15364 inotify code 2362 louis 86r a_inode 0,14 0 15364 inotify code 2362 louis 109r a_inode 0,14 0 15364 inotify code 2456 louis 21r a_inode 0,14 0 15364 inotify code 2493 louis 51r a_inode 0,14 0 15364 inotify code 2547 louis 49r a_inode 0,14 0 15364 inotify code 2547 louis 54r a_inode 0,14 0 15364 inotify firefox 4168 louis 80r a_inode 0,14 0 15364 inotify cgroupify 4347 louis 6r a_inode 0,14 0 15364 inotify flatpak-s 53051 louis 7r a_inode 0,14 0 15364 inotify obsidian 53073 louis 69r a_inode 0,14 0 15364 inotify flatpak-p 53080 louis 7r a_inode 0,14 0 15364 inotify obsidian 53135 louis 21r a_inode 0,14 0 15364 inotify obsidian 53141 louis 56r a_inode 0,14 0 15364 inotify tail 235359 louis 4r a_inode 0,14 0 15364 inotify tail 251716 louis 4r a_inode 0,14 0 15364 inotify tail 251821 louis 4r a_inode 0,14 0 15364 inotify tail 252069 louis 4r a_inode 0,14 0 15364 inotify tail 252266 louis 4r a_inode 0,14 0 15364 inotify tail 252399 louis 4r a_inode 0,14 0 15364 inotify tail 252434 louis 4r a_inode 0,14 0 15364 inotify tail 252749 louis 4r a_inode 0,14 0 15364 inotify tail 252953 louis 4r a_inode 0,14 0 15364 inotify tail 253611 louis 4r a_inode 0,14 0 15364 inotify tail 253772 louis 4r a_inode 0,14 0 15364 inotify tail 253858 louis 4r a_inode 0,14 0 15364 inotify tail 253932 louis 4r a_inode 0,14 0 15364 inotify tail 254159 louis 4r a_inode 0,14 0 15364 inotify tail 254323 louis 4r a_inode 0,14 0 15364 inotify tail 254425 louis 4r a_inode 0,14 0 15364 inotify tail 255070 louis 4r a_inode 0,14 0 15364 inotify tail 255592 louis 4r a_inode 0,14 0 15364 inotify tail 256816 louis 4r a_inode 0,14 0 15364 inotify tail 256939 louis 4r a_inode 0,14 0 15364 inotify tail 257302 louis 4r a_inode 0,14 0 15364 inotify tail 257435 louis 4r a_inode 0,14 0 15364 inotify tail 257746 louis 4r a_inode 0,14 0 15364 inotify tail 258071 louis 4r a_inode 0,14 0 15364 inotify tail 258169 louis 4r a_inode 0,14 0 15364 inotify tail 258279 louis 4r a_inode 0,14 0 15364 inotify tail 258413 louis 4r a_inode 0,14 0 15364 inotify tail 258715 louis 4r a_inode 0,14 0 15364 inotify tail 259167 louis 4r a_inode 0,14 0 15364 inotify tail 259289 louis 4r a_inode 0,14 0 15364 inotify tail 259484 louis 4r a_inode 0,14 0 15364 inotify tail 259623 louis 4r a_inode 0,14 0 15364 inotify tail 259876 louis 4r a_inode 0,14 0 15364 inotify tail 260275 louis 4r a_inode 0,14 0 15364 inotify tail 260412 louis 4r a_inode 0,14 0 15364 inotify tail 260518 louis 4r a_inode 0,14 0 15364 inotify tail 260650 louis 4r a_inode 0,14 0 15364 inotify tail 260818 louis 4r a_inode 0,14 0 15364 inotify tail 261665 louis 4r a_inode 0,14 0 15364 inotify tail 262636 louis 4r a_inode 0,14 0 15364 inotify tail 262963 louis 4r a_inode 0,14 0 15364 inotify tail 263781 louis 4r a_inode 0,14 0 15364 inotify tail 264183 louis 4r a_inode 0,14 0 15364 inotify tail 264242 louis 4r a_inode 0,14 0 15364 inotify tail 264484 louis 4r a_inode 0,14 0 15364 inotify tail 264769 louis 4r a_inode 0,14 0 15364 inotify tail 264970 louis 4r a_inode 0,14 0 15364 inotify tail 265488 louis 4r a_inode 0,14 0 15364 inotify tail 265939 louis 4r a_inode 0,14 0 15364 inotify tail 266145 louis 4r a_inode 0,14 0 15364 inotify tail 267183 louis 4r a_inode 0,14 0 15364 inotify tail 267352 louis 4r a_inode 0,14 0 15364 inotify tail 267951 louis 4r a_inode 0,14 0 15364 inotify tail 268135 louis 4r a_inode 0,14 0 15364 inotify tail 268320 louis 4r a_inode 0,14 0 15364 inotify tail 268892 louis 4r a_inode 0,14 0 15364 inotify tail 269418 louis 4r a_inode 0,14 0 15364 inotify tail 269631 louis 4r a_inode 0,14 0 15364 inotify tail 339541 louis 4r a_inode 0,14 0 15364 inotify tail 339854 louis 4r a_inode 0,14 0 15364 inotify tail 340349 louis 4r a_inode 0,14 0 15364 inotify tail 340566 louis 4r a_inode 0,14 0 15364 inotify tail 340712 louis 4r a_inode 0,14 0 15364 inotify tail 340858 louis 4r a_inode 0,14 0 15364 inotify tail 341122 louis 4r a_inode 0,14 0 15364 inotify tail 341356 louis 4r a_inode 0,14 0 15364 inotify tail 341499 louis 4r a_inode 0,14 0 15364 inotify tail 341643 louis 4r a_inode 0,14 0 15364 inotify tail 341858 louis 4r a_inode 0,14 0 15364 inotify tail 341948 louis 4r a_inode 0,14 0 15364 inotify tail 342271 louis 4r a_inode 0,14 0 15364 inotify tail 342410 louis 4r a_inode 0,14 0 15364 inotify tail 342557 louis 4r a_inode 0,14 0 15364 inotify tail 342802 louis 4r a_inode 0,14 0 15364 inotify tail 342944 louis 4r a_inode 0,14 0 15364 inotify tail 343409 louis 4r a_inode 0,14 0 15364 inotify tail 343690 louis 4r a_inode 0,14 0 15364 inotify tail 343864 louis 4r a_inode 0,14 0 15364 inotify tail 344049 louis 4r a_inode 0,14 0 15364 inotify tail 344285 louis 4r a_inode 0,14 0 15364 inotify tail 344429 louis 4r a_inode 0,14 0 15364 inotify tail 345251 louis 4r a_inode 0,14 0 15364 inotify tail 345541 louis 4r a_inode 0,14 0 15364 inotify tail 345972 louis 4r a_inode 0,14 0 15364 inotify tail 346163 louis 4r a_inode 0,14 0 15364 inotify tail 346755 louis 4r a_inode 0,14 0 15364 inotify tail 347063 louis 4r a_inode 0,14 0 15364 inotify tail 350273 louis 4r a_inode 0,14 0 15364 inotify tail 350316 louis 4r a_inode 0,14 0 15364 inotify tail 350781 louis 4r a_inode 0,14 0 15364 inotify tail 350942 louis 4r a_inode 0,14 0 15364 inotify tail 351111 louis 4r a_inode 0,14 0 15364 inotify tail 351746 louis 4r a_inode 0,14 0 15364 inotify tail 353489 louis 4r a_inode 0,14 0 15364 inotify tail 353801 louis 4r a_inode 0,14 0 15364 inotify tail 354352 louis 4r a_inode 0,14 0 15364 inotify tail 354638 louis 4r a_inode 0,14 0 15364 inotify tail 354923 louis 4r a_inode 0,14 0 15364 inotify tail 362029 louis 4r a_inode 0,14 0 15364 inotify tail 367093 louis 4r a_inode 0,14 0 15364 inotify waybar 811099 louis 37r a_inode 0,14 0 15364 inotify waybar 811099 louis 38r a_inode 0,14 0 15364 inotify On Mon, Mar 27, 2023 at 10:52=E2=80=AFPM Eric Wong wrote: > > Louis DeLosSantos wrote: > > > > > Above is 54 open sockets. Which seems fine. > > Actually, only 18 (0..17). The `mem' stuff is mmap-ed and > doesn't count against `ulimit -n` (RLIMIT_NOFILE). > > > Should daemon be running as root, if I intend to only use lei as user? > > Definitely not; the lei-daemon is per-user. > > I also forgot, inotify has its own per-user limits; perhaps > you're hitting those? > > # show system-wide limits > $ head /proc/sys/fs/inotify/max_* > > # show per-user inotify FDs (-nP speeds up lsof by avoiding lookups) > $ lsof -nP -u $USER |grep inotify