Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 28 Apr 2001 09:26:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 28 Apr 2001 09:26:07 -0400 Received: from chiara.elte.hu ([157.181.150.200]:48655 "HELO chiara.elte.hu") by vger.kernel.org with SMTP id ; Sat, 28 Apr 2001 09:26:03 -0400 Date: Sat, 28 Apr 2001 15:24:25 +0200 (CEST) From: Ingo Molnar Reply-To: To: Ville Herva Cc: Fabio Riccardi , Subject: Re: X15 alpha release: as fast as TUX but in user space In-Reply-To: <20010428161502.I3529@niksula.cs.hut.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 28 Apr 2001, Ville Herva wrote: > Uhh, perhaps I'm stupid, but why not cache the date field and update > the field once a five seconds? Or even once a second? perhaps the best way would be to do this updating in the sending code itself. first there would be a 'current time thread', which updates a global shared variable that shows the current time. (ie. no extra system-call is needed to access current time.) If the header-sending code detects that current time is not equal to the timestamp stored in the header itself, then the header is reconstructed. Pretty simple. Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/