From owner-freebsd-arch@FreeBSD.ORG Mon Jun 4 21:16:12 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B1FF1065672; Mon, 4 Jun 2012 21:16:12 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by mx1.freebsd.org (Postfix) with ESMTP id 8D0B48FC17; Mon, 4 Jun 2012 21:16:11 +0000 (UTC) Received: by qabj40 with SMTP id j40so2205084qab.15 for ; Mon, 04 Jun 2012 14:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=47d5Z5JgH9ySqYO2XKNw1/VzpGOBNoLmoXkzW0H/sQ4=; b=vfoNg9FxHW016viznrJ7FWcwnWn2FHqz+57u/FedhZT0zKs8zFGUu2SKBbcdhgt21/ BymWkbKcqUHWOgBIcCGKmPX6F8xDrFLLjLYwUa3sO8bYGM+5tf6uC9/YIlPQ+Wg/77qU Y0uktFvXhURuYhyt/WV1EizZOQMrxllFrR5Zgr/J2Z0RFYiS08/MA3y/6635azStnGFJ VTEUdaD6kPwJnpU754WjNjXZIwry4wUphANHxiJ2b/pBHvHbcffuclP+Z8uAOSSpXZgL NPhthxgEk8aP/dVC5QC7LtpUFRoVJF5UjUfAWib6ayr5/Xee8fsXgov8c9efX/dJV+E8 I3ag== MIME-Version: 1.0 Received: by 10.224.202.8 with SMTP id fc8mr14783196qab.40.1338844570879; Mon, 04 Jun 2012 14:16:10 -0700 (PDT) Sender: giovanni.trematerra@gmail.com Received: by 10.229.160.20 with HTTP; Mon, 4 Jun 2012 14:16:10 -0700 (PDT) In-Reply-To: <20120604181917.GD85127@deviant.kiev.zoral.com.ua> References: <20120603051904.GG2358@deviant.kiev.zoral.com.ua> <20120603184315.T856@besplex.bde.org> <201206041101.57486.jhb@freebsd.org> <20120604181917.GD85127@deviant.kiev.zoral.com.ua> Date: Mon, 4 Jun 2012 23:16:10 +0200 X-Google-Sender-Auth: c7e69wjeNf-PVXITIT-QPF4N8XM Message-ID: From: Giovanni Trematerra To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Alan Cox , Alexander Kabaev , Attilio Rao , freebsd-arch@freebsd.org Subject: Re: Fwd: [RFC] Kernel shared variables X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 21:16:12 -0000 On Mon, Jun 4, 2012 at 8:19 PM, Konstantin Belousov w= rote: > On Mon, Jun 04, 2012 at 11:01:57AM -0400, John Baldwin wrote: >> On Sunday, June 03, 2012 6:49:27 am Bruce Evans wrote: >> > On Sun, 3 Jun 2012, Konstantin Belousov wrote: >> I think duplicating this logic in userland would just be wasteful. =A0I = have >> a private fast gettimeofday() at my current job and it works by exportin= g >> the current timehands structure (well, the equivalent) to userland. =A0T= he >> userland bits then fetch a copy of the details and do the same as bintim= e(). >> (I move the math (bintime_addx() and the multiply)) out of the loop howe= ver. > I started yesterday an implementation which uses shared page to export > some variant of timehands, and uses auxv to provide the libc with a point= er > to timehands when rdtsc is reasonable. > > I almost finished both 32bit and 64bit userspace, but there is > kernel-side work left. Is your implementation ready or close to be ready > for commit ? In other words, should I drop the efforts, or continue ? > Hey wait, What are you doing? This is completely unfair. You didn't even review my patch. I really don't understand your way to completely ignore me and start implem= ent yesterday something you didn't care about for more than 3 years. It costs me a lot of time and energy and I think I deserve more respect tha= t just be ignored. -- Gianni