Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2005 16:52:35 +0000
From:      "Wojciech A. Koszek" <dunstan@freebsd.czest.pl>
To:        freebsd-current@freebsd.org
Subject:   [CALL FOR TESTERS] Accounting implemented as separate kernel thread
Message-ID:  <20051227165235.GA53241@FreeBSD.czest.pl>

next in thread | raw e-mail | index | archive | help
Hello,

There were some problems in our current accounting implementation.
These were reported by Richard Todd:

http://lists.freebsd.org/pipermail/freebsd-current/2005-December/059149.html

I've decided to solve this problem and came up with implementation of
John Baldwin's idea: separate kernel thread responsible for acconting.
It is created when needed and destroyed when accounting is being
disabled. Also handles resume/suspend states. I did some tests and
couldn't get a panic.

The patch is here:
	http://freebsd.czest.pl/dunstan/FreeBSD/kern_acct.0.patch

It would be probably useful to replace current static SYSCTL_INTs and
replace them with SYSCTL_PROC of CTLTYPE_INT type in order to call
wakeup() just after configuration value change.

Comments are (as always) welcome!
-- 
* Wojciech A. Koszek && dunstan@FreeBSD.czest.pl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051227165235.GA53241>