Subject: port-sparc/15600: mfs on swap, when swap is over NFS, panics kernel
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 02/13/2002 23:03:47
>Number:         15600
>Category:       port-sparc
>Synopsis:       mfs on swap, when swap is over NFS, panics kernel
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 13 14:04:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 1.5ZA
>Organization:
	
>Environment:
	
	
System: NetBSD night-porter.duskware.de 1.5ZA NetBSD 1.5ZA (PORTER) #0: Tue Feb 12 21:59:35 CET 2002 martin@insomnia.duskware.de:/usr/src/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:

I have a diskless sparc (JavaStation Krups) and tried to speed up some things
via mounting /tmp on mfs. I used this /etc/fstab:

emmas:/exp3/sun         /       nfs     rw              0 0
/swap                   none    swap    sw
swap                  /tmp    mfs     rw,-s=20m       0 0

I made sure swap is already configured and then said

  mount /tmp

The kernel imediately caugt a trap (data access violation, have to provide
details and backtrace when I have access to that machine again).

So I checked if this is machine dependend and tried the same on an i386
machine, with the following fstab:

night-porter:/usr/exp/hosts/star        /       nfs     rw      0 0
/swap   none    swap    sw
swap    /tmp    mfs     rw,-s=2m        0 0

Everything worked:

[root@evening-star] /etc # mount
night-porter.duskware.de:/usr/exp/hosts/star on / type nfs
mfs:251 on /tmp type mfs (local)
[root@evening-star] /etc # swapctl -l
Device      1K-blocks     Used    Avail Capacity  Priority
/swap           10240        0    10240     0%    0

The sparc runs a kernel from sources cvs updated Feb 13, 2002, the i386 one
day older sources.

>How-To-Repeat:

s.a.

>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: