From owner-cvs-src@FreeBSD.ORG Thu Nov 29 13:56:07 2007 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EF9D16A469 for ; Thu, 29 Nov 2007 13:56:07 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 1657C13C46B for ; Thu, 29 Nov 2007 13:56:06 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1799473nfb for ; Thu, 29 Nov 2007 05:56:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=MjYPMPxy4O0LJTX+9U3rlrqYLfy6l0PMFEdD0ABYoKY=; b=OUyIxzFKYAm8VSbKRhcW8305OZF5RYvTwlY+OeHeL8gCEoaN0xqVePraLwflDyTq3NSUNt8a+4zstB0cZyalv1iewBTUhReioJ2tdFxXol3jRps28FXxjnlpOL+BMbJ1ZUgANky4bt6+luO8NSlSy6wfzLkpBtb6poDmoOhU2Sg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=eqDg1MXQu+PBs7+F+B7R6MUuhPUoeoVLtIt3UB7MHBl13Gjdh6BKvDjj9A+hW/b485CxZV0Rl7g8tVe1Aj9tnclrSzaeeCBkUZyobeROsHVsUIkFmncL4TZ5ehIr6fOYufRusU2/TcNMT3Cpi45h0yPx8xZgyeLt/7muQG6ZZtA= Received: by 10.86.89.4 with SMTP id m4mr6109618fgb.1196344565494; Thu, 29 Nov 2007 05:56:05 -0800 (PST) Received: by 10.86.28.19 with HTTP; Thu, 29 Nov 2007 05:56:05 -0800 (PST) Message-ID: <3bbf2fe10711290556u67b0f007g5a87bfd8e7804fbd@mail.gmail.com> Date: Thu, 29 Nov 2007 14:56:05 +0100 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Peter Wemm" In-Reply-To: <200711290634.lAT6YUpr004269@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200711290634.lAT6YUpr004269@repoman.freebsd.org> X-Google-Sender-Auth: f52b96184d39f203 Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/compat/linprocfs linprocfs.c src/sys/kern kern_clock.c src/sys/sys pcpu.h resource.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2007 13:56:07 -0000 2007/11/29, Peter Wemm : > peter 2007-11-29 06:34:30 UTC > > FreeBSD src repository > > Modified files: > sys/compat/linprocfs linprocfs.c > sys/kern kern_clock.c > sys/sys pcpu.h resource.h > Log: > Move the shared cp_time array (counts %sys, %user, %idle etc) to the > per-cpu area. cp_time[] goes away and a new function creates a merged > cp_time-like array for things like linprocfs, sysctl etc. The > atomic ops for updating cp_time[] in statclock go away, and the scope > of the thread lock is reduced. > > sysctl kern.cp_time returns a backwards compatible cp_time[] array. > A new kern.cp_times sysctl returns the individual per-cpu stats. > > I have pending changes to make top and vmstat optionally show per-cpu > stats. > > I'm very aware that there are something like 5 or 6 other versions "out > there" for doing this - but none were handy when I needed them. > > I did merge my changes with John Baldwin's, and ended up replacing a > few chunks of my stuff with his, and stealing some other code. > > Reviewed by: jhb > Partly obtained from: jhb Thanks guys. Attilio -- Peace can only be achieved by understanding - A. Einstein