2004-09-06 18:16:31

by Horst H. von Brand

[permalink] [raw]
Subject: Re: silent semantic changes with reiser4

Spam <[email protected]> said:

[...]

> The problem with the userspace library is standardization. What
> would be needed is a userspace library that has a extensible plugin
> interface that is standardized. Otherwise we would need lots of
> different libraries, and I seriously doubt that 1) this will happen
> and 2) we get all Linux programs to be patched to use it.

What is the difference with a kernel implementation? Not by being in-kernel
will it make all the incompatible ways of doing this magically vanish, and
give outstanding performance. Plus handling and maintaining the in-kernel
stuff is _much_ harder than userspace libraries.

I'd go the other way around: Get userspace to agree on a common framework,
make it work in userspace; if (extensive, hopefully) experience shows that
a pure userspace solution has issues that can't be solved except by kernel
assistance, so be it.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513


2004-09-06 18:53:27

by David Masover

[permalink] [raw]
Subject: Re: silent semantic changes with reiser4

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Horst von Brand wrote:
| Spam <[email protected]> said:
|
| [...]
|
|
|> The problem with the userspace library is standardization. What
|> would be needed is a userspace library that has a extensible plugin
|> interface that is standardized. Otherwise we would need lots of
|> different libraries, and I seriously doubt that 1) this will happen
|> and 2) we get all Linux programs to be patched to use it.
|
|
| What is the difference with a kernel implementation? Not by being
in-kernel
| will it make all the incompatible ways of doing this magically vanish, and
| give outstanding performance. Plus handling and maintaining the in-kernel
| stuff is _much_ harder than userspace libraries.

First of all, only the interface has to be in the kernel. I haven't
heard anyone suggest otherwise.

Second, there are quite a few things which I might want to do, which can
be done with this interface and without patching programs, but would
require massive patches to userspace. There have been numerous examples.

There are some things which can't be solved without patching. Version
control is one such thing. But then there can be more generic patches
- -- as soon as the transaction API is done, you only have to patch apps
to use that, and have a version control reiser4 plugin.

| I'd go the other way around: Get userspace to agree on a common framework,
| make it work in userspace; if (extensive, hopefully) experience shows that
| a pure userspace solution has issues that can't be solved except by kernel
| assistance, so be it.

We already have such a framework -- it's called "VFS".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQIVAwUBQTyyGXgHNmZLgCUhAQLUeQ/8D3tWL9l/zQeGylpVbOe6SkcSPOOmlIFR
tcjh0y1Y4ET17ATFKbKbzQYYDgd49AqU/gZnro27jYun3Yi6U0fWGGQFfi1A9O5E
gSCmsjSWjfDfx4gu3EU1x0Bhkd6Mo8GCrC7L5gj5C+L4c5ZAnffeGloF8nM4hCex
Wsb0PgOSxXuoQcd2EELVEXYdq0RCnxrmuszl1B2SE6w1ImONWMoXJ9fDGDf0aIUu
rwrrZnlH4zp0bQ0dXDGXqUYYT5h5DAhbh96IWLrPbWMB0vLBqIP+95P2/vTHb7EL
RwVKBV1UuuZ2ANPbImoIuxHWF+PCx/HwFs/mUolw0D2Yn3u2HgmPVFemyPnlCfeX
yGPhJgnieRuGntgUZcfbqk7ZO3y0y5eRDq6N4eMHMlWYV9LC5kyP7OxcQ8SAF8P6
Sk4iylYN1AMiy5Bp9odScauST0NT9CLmi1Ps0DYwgVN1H+ldS1l+4ITokb1Ex1+4
ZLq1HhPNaYYWoA4VPuwxl0XrB4wGrMbOt1w4+TNM3AG9MvzqTGgSrh2rXfXkPHGZ
7LNHuinRyJt3dcF0vPS4WHG6FtVsO8XVPaY55tYQIYZEBtZl3mattBb9gM3WDJmw
M/pxbAQTDZHloR9/7TGEF8gD3AjPBexTfvojqVHK2VvRu4/2Ku17wvK82v68LuyU
bFxxxgj9IgY=
=BxAT
-----END PGP SIGNATURE-----

2004-09-06 22:37:28

by Christer Weinigel

[permalink] [raw]
Subject: Re: silent semantic changes with reiser4

David Masover <[email protected]> writes:

> Second, there are quite a few things which I might want to do, which can
> be done with this interface and without patching programs, but would
> require massive patches to userspace. There have been numerous
> examples.

Please give one example? There is a lot of handwaving here on all
sides.

> | I'd go the other way around: Get userspace to agree on a common framework,
> | make it work in userspace; if (extensive, hopefully) experience shows that
> | a pure userspace solution has issues that can't be solved except by kernel
> | assistance, so be it.
>
> We already have such a framework -- it's called "VFS".

That you'd like to break the semantics of. Great.

/Christer

--
"Just how much can I get away with and still go to heaven?"

Freelance consultant specializing in device driver programming for Linux
Christer Weinigel <[email protected]> http://www.weinigel.se

2004-09-07 06:32:09

by Hans Reiser

[permalink] [raw]
Subject: Re: silent semantic changes with reiser4

David Masover wrote:

>
> There are some things which can't be solved without patching. Version
> control is one such thing.

You can do most of the version control stuff without patching, for
instance selecting a version by name is easy (see Clearcase). Clearcase
users mostly do not patch user space binaries. But your point is
generally true that there are features that knowing about them allows
you to better employ them.

> But then there can be more generic patches
> -- as soon as the transaction API is done, you only have to patch apps
> to use that, and have a version control reiser4 plugin.
>
> | I'd go the other way around: Get userspace to agree on a common
> framework,
> | make it work in userspace; if (extensive, hopefully) experience
> shows that
> | a pure userspace solution has issues that can't be solved except by
> kernel
> | assistance, so be it.
>
> We already have such a framework -- it's called "VFS".

If doing it in the kernel is so hard, why hasn't it stopped us yet? ;-)

I am not asking other people to contibute their labor to making this
thing they view as infeasible work, I am just asking them to get out of
the way please, and let the users decide whether they like it.

Nothing significant about the reiserfs project was thought likely to
work by sensible people before it worked. I am a bit used to that.
After all, Oracle's IFS and several similar projects proved filesystems
on top of balanced trees cannot perform well....;-)

Anyone who complains about kernel bloat should first consider that
reiser4 is not by any means the largest filesystem in the kernel.

Hans