Re: 2.4.23aa2 (bugfixes and important VM improvements for the high end)

From: Andi Kleen
Date: Fri Mar 05 2004 - 10:53:05 EST


Ingo Molnar <mingo@xxxxxxx> writes:

> * Andrea Arcangeli <andrea@xxxxxxx> wrote:
>
> > I thought time() wouldn't be called more than 1 per second anyways,
> > why would anyone call time more than 1 per second?
>
> if mysql in fact calls time() frequently, then it should rather start a
> worker thread that updates a global time variable every second.

I just fixed the x86-64 vsyscall vtime() to only read the user mapped
__xtime.tv_sec. This should be equivalent. Only drawback is that if a
timer tick is delayed for too long it won't fix that, but I guess
that's reasonable for a 1s resolution.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/