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=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B1A431F41C; Tue, 28 Mar 2023 02:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1679971925; bh=yBqILwCpmPXm7lc/BYk9CFVf4B+fjwDeOvYxhcGxEyk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wN50fyRXc86uNKEM1DcshCcW50fJ6f2hqOzJ6ON8gOPFIz9o5YLbm7PfZj2AlMxhE 48curgy93vwmsyW3lBDOriVb9/TuEjEWE5URFqPltznfzjUTNkv0wcAp8ob636KfFM vWu2L7URD0K/nvLCBg2UE3Q8hb9pIQyrUyjtJkhY= Date: Tue, 28 Mar 2023 02:52:05 +0000 From: Eric Wong To: Louis DeLosSantos Cc: meta@public-inbox.org Subject: Re: Issues with `lei` as non-root Message-ID: <20230328025205.M639038@dcvr> References: <20230328013226.M125137@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: 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