From nobody Sun Mar 10 03:05:07 2024 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 4TslC92jCLz5D3F9 for ; Sun, 10 Mar 2024 03:05:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TslC80NhZz54BY for ; Sun, 10 Mar 2024 03:05:23 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=pqUqmRrv; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710039920; bh=il+SiFG9mHqml2EzczqR07H3ZmDgYMlP1BZrbaRAFcY=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=pqUqmRrvqdBqMFLL8sZgh1cd74K6uoiIwUwCAovnlzdZJUeRpdOPDJIr1k8Fnp/CKiY2IJM0xZ1Kt+WvF9L2CFhjB9di1PgCvHSPXk1+ctQRA0FgkaIZ7TpOt2vhtLvcKkHMFySMpneXbLk+9WxlDWdlB59L660RKVZvuL/Cx6uKIbvFevOkBSyJXqwPZVaF9se0jpTRRxvp63WiSOIA+i/HRg+Z0JqPKucbCxzrktsgVu5pKNjPSF3R+y+T0ZSJF7p+C0XN0G/ZsCSyUr9Qt+CL65C8TSS9NiehLlsbrhY6McadPAM4CcTBygTzXFXNCUZSeKm577sS8REPXhUaLg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710039920; bh=kDcAEDwakwoFITR0cSOKEkvoSBkgWbJthbGAvK3JUle=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=QW48qLvnT/0cNTYnDXfdQrDzNvz5llvsgxbu0gbsEt6AysAyUgO9y02HTix/3iWRx+zRDsCLkdwqW0TeUKqWHSDatNFMmvHT0PBtEzSzFy0S2GP9Bvkj0j90UzMzUp50t8khfFgPKqUyzCk/HyeTz1SMq/4VUUwItIpp1wyhQOTsXFwER+OaTn01bj76NEudnlwyfbSy5g2aG0iHZVxtSU6SDjjaKvHIkeGEZhm7JJKTsQINJnBctbfKgCZvPDMYyEVt3bey4IADIEga22JM0wIEMmc0uihO4dG1BcbUTZpe4PLjKE8rTS9/+sHOqmAqqaW2wN0kNO1AbuwnpA+M7w== X-YMail-OSG: Irty9uIVM1lBxQXbEdpegVEAkQr3AGhevowi5cHmRjjMskvNgyQH5khtprqIK9M wm90y7qmFQYs0woQ2PPe43P.wMVOuNNnwMzLSucmoSropT1ZeDir8TfPGnYbHKbmj.jVEngtjCuD arFBnlw9Ys1R1S.hproiL_r1FtnCZQ7euw4VbxO8bVtmlEg4IJ_1Q77F0b4VEx.OOpeLJJBVif8V sZEMrZkcHg0eHaLoqHAvMqZtxu3yVFjYsUmUgtvhwmg0U9z3hDpsCJ53l_ONj4HIOVjlPBO4mwpE DaMlwo_fx_.VJ7_C20EnaQ7EzfMYComr41riWy78ctbi_Y4MwKqrdwIKcvTCSuR5dbHf7GETumj1 rqgOwLpzlgDzMFVIWckjw7GilbyaJjaXJa_F12mWFoK8NwOJuzJI0B.TI6lzwnS1NdnT5XIairL0 RlTTF10WDAWft08RP1OdztIpyu.Grxen5FhB_.gnimlgqn6Bvg7ab0zpC4Mn1qj8Z4r3xESYI_bv B3QPWwQ8XTByo41BKP8.T5yv_vlmAiUIODQ0o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pIQFepWgVhG.JsCvDzJGPuY55N kSZGrL1XzbpuQFDlnG_3gzGxihFAVrdz9SDN05V89P4VR8yxWYpjh4yy2DGwtcA8iv.Cc.UPEtwi oI2vHLzBkTfIHr.ixKTDPWYVvQ7vdJmrAxAruhA1OJXocD5vzw86eGk2ggcpXpSAumhi_aevprU1 Ol7iNyTRJ8dj8bI9QGmDJ4MZzNZZ6DRUTUT7g8tazB6N8I2cwXDnrhp8VjKFAc3LLa.YiTfVJA16 YjcG6LkcpybMptzaAFEN2uYrT3UGb.F3uV6tW4xEiLE5D_Ui5mBLWlD6tyHRHspHI3vd7aTCGeL3 .HbjrXCYeurlulnA4C0_UD9FaeBCskrPhy86g5EziwKs3QOe9a5chPLLnK2DZxnaR4CESPidRAkN hl.mWLWkqaojcmRzjJKxKcO6juk_RgY.46YXsHhfkEIWOkSBNVDGTnqc36WaSGA1ZnFdQPnkkm6e ZjNOb_1HhtpiDe0i9lZzjIFo82HObJXhTXHjWsiXyipcyqwSJzdu.T7KGeYSt8kcpYcLvClQv3dj fgUBwyMTHD5JaMCrc2EzehU7PoZRDtw7qAmM1mDJcCCLGw5gNQBVoORgqWylNXAQXbKZUj0rll1X iZTYtbK5yhuSGplFeEKiJee9zqUUpj0BVYmBzW2IulwG87ZVqJVyl2h2cd7mcL9pTUTRnfE0ARg- - X-Sonic-MF: X-Sonic-ID: 6e9da922-34fc-4c65-9949-445e9d246aa9 Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sun, 10 Mar 2024 03:05:20 +0000 Received: by hermes--production-gq1-5c57879fdf-bmngc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4edfb80e279368de4ddb2aba73997ad9; Sun, 10 Mar 2024 03:05:17 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 \(3774.400.31\)) Subject: Re: Reason why "nocache" option is not displayed in "mount"? Message-Id: Date: Sat, 9 Mar 2024 19:05:07 -0800 To: "mckusick@freebsd.org" , Current FreeBSD X-Mailer: Apple Mail (2.3774.400.31) References: X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.206:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.206:from] X-Rspamd-Queue-Id: 4TslC80NhZz54BY Kirk McKusick wrote on Date: Sun, 10 Mar 2024 01:53:05 UTC : > The issue has to do with how flags are defined in mount.h. > Specifically there are the flags that are externally visible > (prefixed with MNT_) and those that are for internal use > (prefixed with MNTK_, the K standing for KERNEL). If it > is desirable to have MNTK_NULL_NOCACHE visible, then it > should be renamed to MNT_NULL_CACHE, added to MNT_VISFLAGMASK, > and listed in MNTOPT_NAMES. It probably belongs in the set > described as `Flags set by internal operations, but visible > to the user.' With this change, it will be displayed by > the mount command and show up in the statfs flags. -o nocache appears to be mount_nullfs specific: man mount_nullfs reports: The options are as follows: -o Options are specified with a -o flag followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. Additionally the following option is supported: nocache Disable metadata caching in the null layer. Some lower- layer file systems may force this option. Depending on the access pattern, this may result in increased lock contention. There is also the recent addition to main of: QUOTE +The +.Dv vfs.nullfs.cache_vnodes +sysctl specifies global default for mount-specific cache/nocache option. END QUOTE The vfs.nullfs.cache_vnodes related commits listed a 1 week MFC. Now -o cache is an option as well, in order to cover both defaults being possible. (While it is not limited to what initiated the additions, that initiation is associated with some ZFS performance problem avoidance work that is going on where the caching was having negative consequences when nullfs was also in use.) kib's wording when I asked about the display-of-mode-status issue was: QUOTE Mount uses getfsstat(2) which has no knowledge of nmount(2). END QUOTE === Mark Millard marklmi at yahoo.com