lkml.org 
[lkml]   [2002]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC][PATCH] linux-2.5.34_vsyscall_A0
    From
    Date
    On Fri, 2002-10-18 at 04:14, Andrea Arcangeli wrote:
    > the main reason it wasn't backported to i386 is that if glibc start
    > using the vgettimeofday instead of sys_gettimeofday, you won't be able
    > to downgrade kernel anymore to say 2.4 (oh yeah, I would then backport
    > it to my tree or Marcelo could apply the patches too to 2.4 but then 2.2
    > would be left uncovered, new glibc would segfault on the old kernels).
    > Probably the only way to avoid breaking backwards compatibility is that
    > glibc will check the uname at the first invocation and then it will
    > store the information in a global variable in the library. So then for
    > every second invocation it will be only an overhead of a branch. But it
    > would be a slowdown for this sequence
    > fork()exec()gettimeofday()exit()fork()exec()gettimeofday()exit()...

    Hmmm. Yes, that is a good point. Especially since due to TSC sync
    issues, everyone probably won't want to convert to this right off.
    Probing might do it, but that would require some fancy trapping in
    glibc. Maby users could manually LDPRELOAD a library that would alias
    gettimeofday, rather then changing glibc? That way the user of, as you
    said specialized db apps,etc, who *really* wants this can get it, but
    doesn't affect others.

    [snip]
    > However this is just a reminder message, I mainly wanted to point out
    > why I didn't spent time in this effort myself, if Linus is excited to
    > include vsyscalls on 32bit too that's fine with me, it would be a
    > definitive improvement at least for the non asymmetric multithreading
    > nor NUMA cases where the TSC loses synchronization (unless something
    > mmapped like cyclone or HPET is available of course). So it's up to you ;).

    It seems you been calling the psychic hotline recently! Actually that's
    *exactly* what my plans were for the NUMA case. Very good call!

    You bring up some good points. I'll try to think about it some more and
    see if there isn't a better way.

    thanks
    -john

    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:5.640 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site