Re: ffs snapshots patch

2011-04-29 Thread Juergen Hannken-Illjes
, but at last the server > won't hang for a long time. > thanks ! Not really. Any thread ending up in ffs_copyonwrite() or ffs_snapblkfree() will block. If this server runs NFS it could be possible that all NFS server threads block. -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany)

Re: ffs snapshots patch

2011-04-28 Thread Juergen Hannken-Illjes
On Wed, Apr 27, 2011 at 10:43:59AM +0200, Manuel Bouyer wrote: > On Mon, Apr 18, 2011 at 09:36:25AM +0200, Juergen Hannken-Illjes wrote: > > [...] > > > Fixing 2) is trickier. To avoid the heavy writes to the snapshot file > > > with the fs suspended, the snapshot appea

Re: ffs snapshots patch

2011-04-23 Thread Juergen Hannken-Illjes
5720974 x 32768 43.4780.420 45720974 x 32768 40.7905.642 45720974 x 32768 49.700 12.748 45720974 x 32768 55.599 18.612 22860487 x 655367.0050.600 22860487 x 65536 10.5582.436 22860487 x 65536 14.3654.122 22860487 x 65536 18.615 5.739 For me snapshots

Re: ffs fsync patch - block devices and wapbl

2011-04-21 Thread Juergen Hannken-Illjes
thanks for taking a look on this. > > ffs_fsync should not need to know if the filesystem used on its VBLK node is > ffs or not. it should just call VFS_FSYNC as the other filesystems > (ie. spec_fsync) do. the FSYNC_VFS flag should go away. You mean like the

ffs fsync patch - block devices and wapbl

2011-04-19 Thread Juergen Hannken-Illjes
the request comes from ffs or from other file system via VFS_FSYNC(). - Take care which mount to test for WAPBL -- v_mount to update the times and wapbl_vptomp() to update the dirty blocks. Never update times when called by VFS_FSYNC(). Comments or objections? -- Juergen Hannken-Illjes

Re: ffs snapshots patch

2011-04-18 Thread Juergen Hannken-Illjes
summary informations (the > second being probably a consequence of the first) appear wrong when > running fsck against a snapshot. I believe this is fixable, but > I've not yet found from where the information mismatch is coming from. > > comments ? > > PS: I'm away

Re: another wapbl and shapshot issue

2011-04-10 Thread Juergen Hannken-Illjes
apbl_begin(). Yes. Maybe lower the wl_dealloclim again. > Also I wonder if it's OK for wapbl_flush() to cause more data to be > added to the log. It is the way wapbl works. Block deallocations produce more blocks that are stored in the journal. Its resource estimations are fragile at le

SMBUS missing Send/Receive protocol?

2011-02-10 Thread Juergen Hannken-Illjes
used by iic_smbus_send_byte() which uses "cmdlen = 0, len = 1". So the final question: Does this change to pci/piixpm.c look ok? Looks like alipm.c and ichsmb.c have the same problem ... -- Juergen Hannken-Illjes -

Revoke() and VOP_OPEN() vs. vref()

2011-01-11 Thread Juergen Hannken-Illjes
vrele(lvp); works but this way revoke() through a layered file system will always inactivate and close the lower vnode so I'm not sure this is a real solution. -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany)

Re: WAPBL kernel assertion

2011-01-08 Thread Juergen Hannken-Illjes
I can't recall the > details anymore, but I remember the overflow was quite easy to trigger > on a rump kernel. Maybe the problem triggers easier in a virtual > environment? ... and rev 1.38 would help too. -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany)

vmpage race and deadlock

2010-11-28 Thread Juergen Hannken-Illjes
n to three places, where we change page flags without holding the object lock. With this diff (*2) in place the test runs for > 48 hours. Using atomic ops here is not possible as flags is a 16bit value. Any objections against the change or other ideas to solve this problem? -- Juergen Hannken-

UVM / pmap assertion under load

2010-07-29 Thread Juergen Hannken-Illjes
ot; which may be related. Any ideas? -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany)

Cache_revlookup() and vfinddev() races

2010-07-18 Thread Juergen Hannken-Illjes
the vnode referenced. Any objections? -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany) Index: share/man/man9/namecache.9 === RCS file: /cvsroot/src/share/man/man9/namecache.9,v retrieving revision 1.13

Re: Move the vnode lock into file systems

2010-06-29 Thread Juergen Hannken-Illjes
On Sat, Jun 26, 2010 at 10:39:27AM +0200, Juergen Hannken-Illjes wrote: > The vnode lock operations currently work on a rw lock located inside the > vnode. I propose to move this lock into the file system node. > > This place is more logical as we lock a file system node and not a v

Re: Move the vnode lock into file systems

2010-06-28 Thread Juergen Hannken-Illjes
On Mon, Jun 28, 2010 at 09:06:57AM +, Andrew Doran wrote: > On Sat, Jun 26, 2010 at 10:39:27AM +0200, Juergen Hannken-Illjes wrote: > > The vnode lock operations currently work on a rw lock located inside the > > vnode. I propose to move this lock into the file system node

Re: Move the vnode lock into file systems

2010-06-27 Thread Juergen Hannken-Illjes
On Sun, Jun 27, 2010 at 02:06:31AM +, David Holland wrote: > On Sat, Jun 26, 2010 at 10:39:27AM +0200, Juergen Hannken-Illjes wrote: > > The vnode lock operations currently work on a rw lock located inside the > > vnode. I propose to move this lock into the file system node.

Move the vnode lock into file systems

2010-06-26 Thread Juergen Hannken-Illjes
to more than one vnode. Ptyfs allowing multiple mounts is such a candidate. A diff implemeting this for ufs, lfs and ext2fs is attached. Comments or objections anyone? -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany) Index: sys/ufs/ufs/inode.h

Re: VOP_*LOCK* cleanup proposal

2010-06-22 Thread Juergen Hannken-Illjes
On Tue, Jun 22, 2010 at 03:24:33PM +, Eduardo Horvath wrote: > On Tue, 22 Jun 2010, Juergen Hannken-Illjes wrote: > > > The vnode lock operations still carry some arguments and semantics from > > our old lockmgr(9). I propose to clean them up as: > > > > 1)

Re: VOP_*LOCK* cleanup proposal

2010-06-22 Thread Juergen Hannken-Illjes
time I looked it were 16 calls to vget() missing LK_INTERLOCK and two calls from vrelel() to vn_lock() with LK_INTERLOCK set. -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany)

VOP_*LOCK* cleanup proposal

2010-06-22 Thread Juergen Hannken-Illjes
d. A diff covering 1) and 3) is attached. The result of the substitution 's/\(VOP_UNLOCK([^,]*\), 0/\1/' to kill the second argument of VOP_UNLOCK() is omitted as it is completely mechanic. Comments or objections anyone? -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschw

Removal of recursive vnode locks

2010-06-16 Thread Juergen Hannken-Illjes
With mount_domount() the last consumer of recursive vnode locks has left. I propose to completely remove the concept of recursive vnode locks by eliminating vn_setrecurse(), vn_restorerecurse() and LK_CANRECURSE. A diff is attached. Comments or objections anyone? -- Juergen Hannken-Illjes

Re: Layered fs, vnode locking and v_vnlock removal

2010-06-01 Thread Juergen Hannken-Illjes
On Tue, Jun 01, 2010 at 01:54:53AM +, David Holland wrote: > On Sun, May 23, 2010 at 04:11:25PM +0200, Juergen Hannken-Illjes wrote: > > With our current vnode lock implementation VOP_LOCK() and VOP_UNLOCK() > > are not symmetric. A vnode may be locked from one file system an

Layered fs, vnode locking and v_vnlock removal

2010-05-23 Thread Juergen Hannken-Illjes
will remove v_vnlock and change layered file systems to always pass the locking VOP's down to the leaf file system. Comments or objections? -- Juergen Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany) Index: sys/miscfs/genfs/layer_vn