From nobody Wed Sep 13 18:52:19 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 4Rm8hd6DpPz4ssnt for ; Wed, 13 Sep 2023 18:52:33 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (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 4Rm8hd0WZgz4cKS for ; Wed, 13 Sep 2023 18:52:32 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-68fc9a4ebe9so73755b3a.2 for ; Wed, 13 Sep 2023 11:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20230601.gappssmtp.com; s=20230601; t=1694631151; x=1695235951; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=l/wkQ8HOWumEWr7nkAyVDppjN9h6s54tXbOmNqxvX/8=; b=EmeIwVQ4dC10PijxUouc4p45ukOYL0a0qQtd5W6KmAiubEMMm+NrM7oXClIfrQHIV3 PReaPzuTr0QFV7koLNunPaXOoQ6mwxaTQFwgd2BJj5XqPdEo4ULtt95VgbY6gmshYtzp Est+ty67QmHutxJp36f2xxCrpbF8CLQswW1k9UhuCRFdL99w7Gof3oU+HxG4tsIcLXaU j2rs8T6+86biCLav1wCLE7LiwRujRp/b9B2Y/h5cucBsAdgQMZjhYk6hos7ikUH+eBqB v1osh7RV69yWfT8LvlksrL50RtzXc2Ji1iOFDdbwrw19c1Qaj+jzAjm1DX6LoPRxALoa GGVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694631151; x=1695235951; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l/wkQ8HOWumEWr7nkAyVDppjN9h6s54tXbOmNqxvX/8=; b=dEPxmUwsMTgqxcjQPFcoZeFGe8XDCfd0dQwraYVxm8ijduSHYsbUFJzM1dLtB2iy+j QWQdYNLgbTIVWX2l4KjiDDiovsyWOAzvmAVZFQ8RkuHNNwe3Fb3AGmESj9NfDImzzHmN qj4Td81G0fUQTi2xBZJyLOBOTX1em/CWuitPdswgcMn7I6nMdxaC7OE/3sIr3VJryozp 1PrPTrVXf4+OGdexI5nsdHWP38us7ErYoA1GweAH4SkB+S0NyfXMwefeIbGWqak7lDxO JKJqWEsFq+0zEJoI1H2cC8DOt7mwamEBGpy+uzxctqJZUF8Yhpzeo8uyEnGMuqIBWMbS FXxA== X-Gm-Message-State: AOJu0YyfVVhO3yg//GvGggUY1fAzbVcB7jqQiOPTgh5WpTa4McLarddy Yg7lnYAyuUehdWtHF/Dker49NQ== X-Google-Smtp-Source: AGHT+IHpYGi/2YDuqRfAQ1f9EGtnp4FXAwDU/DjKsGmFfC8Vl0D3FskbZt+jxoalaAAtq/vq8rzHPw== X-Received: by 2002:a05:6a00:812:b0:68f:cb69:8e63 with SMTP id m18-20020a056a00081200b0068fcb698e63mr3923920pfk.4.1694631151099; Wed, 13 Sep 2023 11:52:31 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id i20-20020aa79094000000b00687260020b1sm9446693pfa.72.2023.09.13.11.52.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Sep 2023 11:52:30 -0700 (PDT) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Continually count the number of open files From: Bakul Shah In-Reply-To: Date: Wed, 13 Sep 2023 11:52:19 -0700 Cc: FreeBSD CURRENT Content-Transfer-Encoding: 7bit Message-Id: References: <291ad2de-ba0e-4bdf-786a-19614eacec49@gmail.com> <592123F4-E610-446E-82B4-ACC519C0BA3E@iitbombay.org> To: Graham Perrin X-Mailer: Apple Mail (2.3731.700.6) 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:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Rm8hd0WZgz4cKS On Sep 12, 2023, at 11:59 PM, Graham Perrin wrote: > > (I'm a tcsh user, I can easily 'sh' before running the command.) You can switch to zsh. Most of csh/tcsh + sh + many more features. > baloo is not used in 273669. It certainly feels like an inotify like use or a file-descr leak. The bug reporter can try "procstat fd " on running processes to see which one has all those open files. Another thing worth trying is to run under ktrace -di to see which syscalls were made.