From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 4 10:32:35 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 172631065693 for ; Thu, 4 Feb 2010 10:32:35 +0000 (UTC) (envelope-from cronfy@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 9E4218FC14 for ; Thu, 4 Feb 2010 10:32:34 +0000 (UTC) Received: by fxm24 with SMTP id 24so575924fxm.3 for ; Thu, 04 Feb 2010 02:32:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=YL3KNISn5baAZwmyxupUy4xjhtEjJ+c4avs4BuoyjkQ=; b=MS5Hdg+lrxHj9R7DI2tSqIfjprntoYrNcxaJZ5ApTeXZj3mEJWyFYmGOFcwTCvDNHW 8go0m+WU7MPFFRBqEm+5X+UzI+OrvjisNyZXnumkjn3UAYoirmx0o6CsiusduHB+ry6S UUrdEpKQNgJAG3Shq2AclUF2w40b883YrmwTI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Zy6MVAzo5T2h1drdeyT5WMdZjFy0GJ1RUIcMvzFeMl8TzIsVlTftRbq4uQMRGNGxiF 35UYEhnNiAOZwquiP3WWSff+ihvQO693DQpVXqlXPgFWxpZSnC0wV9uSxXzBLXMoI7Tm 6JjnaEmpGVCC+k65OMmKM8ZL2CnfnWFgscUp8= MIME-Version: 1.0 Received: by 10.223.144.74 with SMTP id y10mr984427fau.18.1265279553497; Thu, 04 Feb 2010 02:32:33 -0800 (PST) In-Reply-To: <20100130000108.GB95021@stack.nl> References: <20100130000108.GB95021@stack.nl> From: cronfy Date: Thu, 4 Feb 2010 13:32:13 +0300 Message-ID: To: Jilles Tjoelker Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Unique process id (not pid) and accounting daemon X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2010 10:32:35 -0000 Hello, >> I am trying to create an accounting daemon that would be more precise >> than usual BSD system accounting. It should read the whole process >> tree from time to time (say, every 10 seconds) and log changes in >> usage of CPU, I/O operations and memory per process. >> There is a problem: it is not always possible to link a process in a >> process tree against matching process in an accounting file. Only >> command name, user/group id =A0and start time will match... > Have you looked at audit(4)? Yes, but I did not see how it can help to measure cpu usage/io operations for long running processes and to sync between process list and accounting file. --=20 // cronfy