Date: Sun, 6 Sep 2009 23:52:56 +0200 (CEST) From: Alex de Kruijff <samesame@akruijff.dds.nl> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Alex de Kruijff <samesame@akruijff.dds.nl> Subject: ports/138596: [MAINTAINER] sysutils/samesame vlruwk problem Message-ID: <200909062152.n86Lqu5V014142@Server1.lan> Resent-Message-ID: <200909062200.n86M03Nv077668@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 138596 >Category: ports >Synopsis: [MAINTAINER] sysutils/samesame vlruwk problem >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Sep 06 22:00:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alex de Kruijff >Release: >Organization: >Environment: FreeBSD Server1.lan 6.1-RELEASE-p20 FreeBSD 6.1-RELEASE-p20 #0: Wed Nov 14 02:07:49 CET 2007 akruijff@Server1.lan:/temp/obj/temp/src/sys/SERVER-SMP i386 FreeBSD Gateway.lan 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #0: Fri Feb 6 03:34:06 CET 2009 akruijff@Gateway.lan:/temp/obj/temp/src/sys/SERVER i386 >Description: If unlink(2) is called very quicky, very ofter in a small amount of time, then the system is left in a vlruwk state. 'sysctl -a | grep vn' shows that there are few free vnodes. It just so happens that my program has a use for that. >How-To-Repeat: Wait for report ports/138590 to be handeld, then samefile -V and sameln -V should give "SameSame 1.5 ..." cp -Rp /usr/src /usr/src1 cp -Rp /usr/src /usr/src2 cp -Rp /usr/src /usr/src.. cp -Rp /usr/src /usr/srcN find /usr/src* -type f | samefile -i > .samefile sameln -w < .samefile >Fix: 1) Whe using -w hurts, don't use it. It can still be used in a pipe but there's little advantage in that. 2) It looks like a problem in the kernel. 3) A work around in the SameSame code: I'm assuming this is FreeBSD related, therefor I was thinking of patch file. The patch file should add code that checks the vnodes level. It can do this by modifing the file src/mainAction.cpp just before the line: "// Is it time to sync?". I don't work on this option any time soon. Anyone else is welkomed to. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909062152.n86Lqu5V014142>