From nobody Wed Sep 13 06:59:21 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rlrsr2NRKz4smHY for ; Wed, 13 Sep 2023 06:59:28 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rlrsr080Nz4bvZ for ; Wed, 13 Sep 2023 06:59:28 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-99c93638322so131806866b.1 for ; Tue, 12 Sep 2023 23:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694588364; x=1695193164; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=hqSbdIrkFivVRliQdSGrergR61SSu3nhOfoFBMJpvb4=; b=iwHBs4CZtb6xLwEGY8WYJCDFibxWutsYlyD9RivgEspSm+FMuO3MXMzqbKbFrjxzD+ /V3ndkzxRuL6dFKdyata4X0j6gJ1kRdipiQcisfUykxVu6R0S8kyHRNr2TEACjIRunGJ LG3gN78+2l+Tp0SzchNgs1Ux4VeQHx5WrPc36TntBauSleE6g+wKMPT87PJTJyp2BSg/ 59Zar2pdJaVoqn9DPiHZY6WHW4oyD3JER2v+FuqMIrOSqc38jMgRLLDghqe+Wu6gNW/Q t75akFb6hi01xfYk6sgcAYWgVzyiwO8Qol3RnuSdU17kQZK7QOehDhoCAJ5nPjWA3aVe HilA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694588364; x=1695193164; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hqSbdIrkFivVRliQdSGrergR61SSu3nhOfoFBMJpvb4=; b=pAgvfiFXZmh1FbkGETdpVZgwh+cviloSQcem5TOh8bVMzb7m3B+wCJ/dAVGNzUXKn4 ZvPADfsPYSBb7S0tvuKOBQjj9OuV5LqmpFdJ87g2PIPu2jZ5CBbv7Ka2+bzAvFOVp/+l q+X7vcaL/WUmeoMr5gd0jKWsVSn1mGLuOY8tbLAUpoJhoL++frkpam+LuGtQkiDGCnoH s+HpULjFwl14XzJzGU3atuEirMAfrJVEsNyodhG5EpbOGJ94WGzZ/h8I3CL4XP11NjIQ 3gvrPTlewzTAEDPwQOw1gK9mONJ0qOktpUu7Gk2b+3ubhwJrA2R6GJBknO8hET4GYeiu 3WuA== X-Gm-Message-State: AOJu0YzNSfR3N4YzFjghwKeO22ynzZAwTPApogxOtRU8DSPRrPmiOBnA chBpktbwcV1kOW0eSNtXhnKUCUKGO0IuYcge X-Google-Smtp-Source: AGHT+IGFj91Y0xRm24eW46i/tltmL7M/8edududzILpRfRR/+ap209NC4LwYXNHnQJuz6DtORXP6Jw== X-Received: by 2002:a17:907:94d1:b0:9a1:e0b1:e919 with SMTP id dn17-20020a17090794d100b009a1e0b1e919mr6960808ejc.4.1694588364160; Tue, 12 Sep 2023 23:59:24 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id q18-20020a170906a09200b0099b8234a9fesm7939032ejy.1.2023.09.12.23.59.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Sep 2023 23:59:23 -0700 (PDT) Message-ID: Date: Wed, 13 Sep 2023 07:59:21 +0100 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Content-Language: en-US To: FreeBSD CURRENT Cc: Bakul Shah References: <291ad2de-ba0e-4bdf-786a-19614eacec49@gmail.com> <592123F4-E610-446E-82B4-ACC519C0BA3E@iitbombay.org> From: Graham Perrin Subject: Re: Continually count the number of open files In-Reply-To: <592123F4-E610-446E-82B4-ACC519C0BA3E@iitbombay.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4Rlrsr080Nz4bvZ On 12/09/2023 17:19, Bakul Shah wrote: > On Sep 11, 2023, at 11:38 PM, Graham Perrin wrote: >> Can anything like systat(1) present a count, continually? > How about > > while sleep 0.1; do sysctl -n kern.openfiles; done That's ideal, thanks. I knew about the sysctl, but not how to form a command like the one above. (I'm a tcsh user, I can easily 'sh' before running the command.) > > Or you can write a small program using sysctl(3). > >> I'd like to monitor, after log in to Plasma (X11), in connection with . > Not sure checking how many files are open will help you. > Looks like "baloo" is using inotify to watch changes on > every file & directory or something. Simulating inotify > with kqueue under FreeBSD doesn't scale well. FreeBSD > should add inotify. baloo is not used in 273669. I'm beginning to investigate something unrelated to KDE that has bugged me, on FreeBSD, for a very long time. Thanks