From: "Frank Filz" <ffilzlnx@mindspring.com>
To: "'Olga Kornievskaia'" <aglo@umich.edu>,
"'Andrew J. Romero'" <romero@fnal.gov>
Cc: <linux-nfs@vger.kernel.org>
Subject: RE: Zombie / Orphan open files
Date: Tue, 31 Jan 2023 10:18:55 -0800 [thread overview]
Message-ID: <046e01d935a0$7b3a2d30$71ae8790$@mindspring.com> (raw)
In-Reply-To: <CAN-5tyFro=naMgub9uAZ0wa20WhZwV2Rh6xv_meNice1EG+Dug@mail.gmail.com>
> On Mon, Jan 30, 2023 at 5:44 PM Andrew J. Romero <romero@fnal.gov> wrote:
> >
> > Hi
> >
> > This is a quick general NFS server question.
> >
> > Does the NFSv4x specification require or recommend that: the NFS server,
> after some reasonable time,
> > should / must close orphan / zombie open files ?
>
> Why should the server be responsible for a badly behaving client? It seems like
> you are advocating for the world where a problem is hidden rather than solved.
> But because bugs do occur and some customers want a quick solution, some
> storage providers do have ways of dealing with releasing resources (like open
> state) that the client will never ask for again.
>
> Why should we excuse bad user behaviour? For things like long running jobs
> users have to be educated that their credentials must stay valid for the duration
> of their usage.
>
> Why should we excuse poor application behaviour that doesn't close files? But in
> a way we do, the OS will make sure that the file is closed when the application
> exists without explicitly closing the file. So I'm curious how do you get in a state
> with zombie?
Don't automatically assume this is bad application behavior, though it may be behavior we don't all like, sometimes it may be for a reason. Applications may be keeping a file open to protect the file (works best when share deny modes are available, i.e. most likely a Windows client). Also, won't an executable be kept open for the lifetime of the process, especially if the executable is large enough that it will be paged in/out from the file? This assures the same executable is available for the lifetime of the process even if deleted and replaced with a new version.
Now whether this kind of activity is desirable via NFS may be another question...
Frank
next prev parent reply other threads:[~2023-01-31 18:24 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 16:31 Trying to reduce NFSv4 timeouts to a few seconds on an established connection Andrew Klaassen
2023-01-23 16:35 ` Chuck Lever III
2023-01-23 16:41 ` Andrew Klaassen
2023-01-26 15:31 ` Andrew Klaassen
2023-01-26 22:08 ` Andrew Klaassen
2023-01-27 13:33 ` Jeff Layton
2023-01-30 19:33 ` Andrew Klaassen
2023-01-30 19:55 ` Jeff Layton
2023-01-30 20:03 ` Andrew Klaassen
2023-01-30 20:31 ` Jeff Layton
2023-01-30 22:11 ` Zombie / Orphan open files Andrew J. Romero
2023-01-31 0:10 ` Chuck Lever III
2023-01-31 13:27 ` Jeff Layton
2023-01-31 14:42 ` Andrew J. Romero
2023-01-31 15:24 ` Jeff Layton
2023-01-31 15:31 ` Chuck Lever III
2023-01-31 16:34 ` Chuck Lever III
2023-01-31 16:59 ` Andrew J. Romero
2023-01-31 18:05 ` Chuck Lever III
2023-01-31 18:33 ` Andrew J. Romero
2023-01-31 18:51 ` Chuck Lever III
2023-01-31 19:32 ` Andrew J. Romero
2023-01-31 19:08 ` Olga Kornievskaia
2023-01-31 19:31 ` Olga Kornievskaia
2023-01-31 19:54 ` Andrew J. Romero
2023-01-31 22:14 ` Olga Kornievskaia
2023-01-31 22:26 ` Andrew J. Romero
2023-01-31 22:47 ` Olga Kornievskaia
2023-01-31 23:08 ` Andrew J. Romero
2023-02-01 14:28 ` Olga Kornievskaia
[not found] ` <SA1PR09MB755217D2B3E29E9486D4796FA7D19@SA1PR09MB7552.namprd09.prod.outlook.com>
[not found] ` <CAN-5tyGaX=Go+kwrM33K2EaY41sXmf4v1+2JO8MhbDuGTGG7zA@mail.gmail.com>
[not found] ` <SA1PR09MB755277F59EB463643BEBDD77A7D69@SA1PR09MB7552.namprd09.prod.outlook.com>
2023-02-02 0:53 ` Olga Kornievskaia
2023-01-31 22:28 ` Jeff Layton
2023-01-31 18:13 ` Jeff Layton
2023-01-31 16:26 ` Olga Kornievskaia
2023-01-31 17:44 ` Andrew J. Romero
2023-01-31 18:18 ` Frank Filz [this message]
2023-01-31 19:19 ` Olga Kornievskaia
2023-01-31 21:31 ` Frank Filz
2023-01-31 21:46 ` Andrew J. Romero
2023-02-02 18:16 ` Trying to reduce NFSv4 timeouts to a few seconds on an established connection Andrew Klaassen
2023-02-06 15:27 ` Andrew Klaassen
2023-02-06 17:18 ` Andrew Klaassen
2023-02-27 14:48 ` Andrew Klaassen
2023-02-28 13:23 ` Jeff Layton
2023-03-02 15:25 ` Andrew Klaassen
2023-03-02 18:47 ` Andrew Klaassen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='046e01d935a0$7b3a2d30$71ae8790$@mindspring.com' \
--to=ffilzlnx@mindspring.com \
--cc=aglo@umich.edu \
--cc=linux-nfs@vger.kernel.org \
--cc=romero@fnal.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox