Re: kernel nfsd problems

Andi Kleen (andi@mlm.extern.lrz-muenchen.de)
12 Apr 1997 14:36:07 +0200


Olaf Kirch <okir@monad.swb.de> writes:

> On Fri, 11 Apr 1997 20:46:39 EDT, "Steven N. Hirsch" wrote:
> > I would love to start pounding on the new kernel-level nfsd, however under
> > 2.1.33 the user-space nfsd program fails the nfssvc ctl call. It looks
> > like everything is getting built, but my knowledge of the kernel syscall
> > mechanism is somewhat limited. I am not building nfsd as a module, BTW.
>
> That's a known problem. I will add that when I send Linus the next bunch
> of patches. You basically have to add the syscall to
> arch/i386/kernel/entry.S.

I used knfsd as a module and it seems to work even without any change
in entry.S :)

I played a bit with knfsd and tried to run a bonnie from a BSD box.

Result: bonnie failed and I got this on the linux box:

nfsd: trying to free free inode in nfsxdr.c:468
dev 0805 ino 334585, mode 0100755
nfsd: trying to free free inode in nfsxdr.c:468
dev 0805 ino 334586, mode 0100644
nfsd: trying to free free inode in nfsxdr.c:468
dev 0805 ino 334587, mode 0100755
nfsd: trying to free free inode in nfsxdr.c:468
dev 0805 ino 334585, mode 0100755
nfsd: trying to free free inode in nfsxdr.c:468
dev 0805 ino 334585, mode 0100555

(for 5 tries to run bonnie)

Bonnie gave:

% uname -a
FreeBSD bse 2.2-BETA_A FreeBSD 2.2-BETA_A
% bonnie
File './Bonnie.27418', size: 104857600
Writing with putc()...Bonnie: drastic I/O error (./Bonnie.27418): Operation not
permitted

This error is reproducible, it just happens everytime I start bonnie.

nfsd: request from insecure port (8d54213b:1077)!

Is there a way to allow connections from an "insecure" port? IMHO
the complete concept of insecure ports should be buried as quickly
as possible.

I also tried iozone from a Linux 2.0 box (over 100BaseT) and only
got ca 22KB/s write speed with default options.

-Andi