linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: VFS mediator?
@ 2002-03-19 13:45 Jesse Pollard
  2002-03-19 21:24 ` Pavel Machek
  0 siblings, 1 reply; 17+ messages in thread
From: Jesse Pollard @ 2002-03-19 13:45 UTC (permalink / raw)
  To: pavel, Trond Myklebust
  Cc: Alexander Viro, Alan Cox, Simon Richter, Jonathan Barker, linux-kernel

Pavel Machek <pavel@suse.cz>:
> Hi!
> 
> >      > Okay, take userland nfs-server. (This thread was about userland
> >      > filesystems).
> > 
> > Yech... Nobody should be seriously considering using unfsd: it does
> > not even manage to follow the NFS protocol. That inability was one of
> > the many reasons why Olaf Kirch abandoned further develpement of unfsd
> > and started work on knfsd.
> > 
> >      > Then, make memory full of dirty pages. Imagine that nfs-server
> >      > is swapped-out by some bad luck. What you have is extremely
> >      > nasty deadlock, AFAICS. [To free memory you have to write out
> >      > dirty data, but you can't do that because you don't have enough
> >      > memory for nfs-server].
> > 
> > So that is another argument for using knfsd rather than unfsd. I will
> > agree with you that NFS is not perfect, but please judge it on its
> > actual merits and not on some trumped up charge...
> 
> Sorry, this thread was about userland filesystems, and NFS is just not
> usefull there (for read/write case).

Assuming, of course, that the daemon doesn't mprotect itself...

A user mode file system is really only good at debugging a design.

All file migration style filesystems, and user mode filesystems, have this
same problem on paging based systems:

Can't write buffer until file is migrated (file system full),
Can't migrate file until buffer memory is freed....
system hung...

Although it is usually possible to detect this deadlock and abort some
process, freeing memory (and sometimes disk space at the same time).

Swapping systems can have the equivalent problem if swap space is
oversubscribed.

The problem boils down to the same solution - don't oversubscribe memory...

I know this is a bit of a troll, but memory controls are necessary to
detect, avoid, or repair the situation.
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 17+ messages in thread
* VFS mediator?
@ 2002-03-14 14:52 Jonathan Barker
  2002-03-14 23:09 ` Simon Richter
  2002-03-15 14:28 ` Jonathan Barker
  0 siblings, 2 replies; 17+ messages in thread
From: Jonathan Barker @ 2002-03-14 14:52 UTC (permalink / raw)
  To: linux-kernel

Dear all

In brief: a kernel module which "exported" VFS requests to a (specified) 
user-space daemon would be useful. My particular application is a daemon 
which generates files on the fly - I would like to expose this as part of the 
filesystem. Ideally, the kernel module would deal with generation of fake 
inode numbers etc and the user-space daemon would simply be asked to create a 
pipe corresponding to a "filename" and (possibly) supply a directory tree. 

Clearly, an application-specific module could do the job - cf NFS. But I am 
not (yet) skilled enough in kernel development to know how, and it seems to 
me that a "VFS mediator" module could simplify development of many 
VFS-related applications (eg mounting ftp sites). Is there a kind soul out 
there who has already done this, or is willing to undertake such a task? 

Thanks for any input

Jonathan

Dr Jonathan Barker
EMBL-EBI Hinxton
jbarker@ebi.ac.uk

 

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2002-03-19 21:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-19 13:45 VFS mediator? Jesse Pollard
2002-03-19 21:24 ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2002-03-14 14:52 Jonathan Barker
2002-03-14 23:09 ` Simon Richter
2002-03-14 23:33   ` Alan Cox
2002-03-15  0:00     ` Alexander Viro
2002-03-15 11:50       ` Simon Richter
2002-03-18 19:25       ` Pavel Machek
2002-03-18 22:18         ` Trond Myklebust
2002-03-18 22:38           ` Pavel Machek
2002-03-18 22:48             ` Trond Myklebust
2002-03-18 22:54               ` Pavel Machek
2002-03-18 23:05                 ` Trond Myklebust
2002-03-19  0:15           ` Alan Cox
2002-03-18 22:29         ` Alexander Viro
2002-03-18 22:36           ` Pavel Machek
2002-03-15 14:28 ` Jonathan Barker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).