lkml.org 
[lkml]   [2003]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: 2.6 vs 2.4 regression when running gnomemeeting
    From
    Date
    On Sat, 2003-12-20 at 12:19, Ingo Molnar wrote:
    > * Christian Meder <chris@onestepahead.de> wrote:
    >
    > > That would leave me with two possibilities: 2.6. is doing something
    > > different in the gnomemeeting case or gnomemeeting is doing something
    > > different in the 2.6 case. A cursory look at the gnomemeeting sources
    > > didn't give me the impression that it's doing anything which would be
    > > affected by 2.6 deployment but I'll ask on the gnomemeeting-devel list
    > > for advice.
    >
    > yep, i've looked at the source too and it doesnt do anything that
    > changed in 2.6 from an interactivity POV.

    Stefan Bruens pointed out on the gnomemeeting-devel list that pwlib
    which gnomemeeting is using executes sched_yield and that perhaps there
    is a problem akin to the openoffice busy-loop on sched_yield() problem
    earlier this year. I found the following sched_yield code in pwlib 1.5.2
    in src/ptlib/unix/tlibthrd.cxx:


    > static BOOL PAssertThreadOp(int retval,
    > unsigned & retry,
    > const char * funcname,
    > const char * file,
    > unsigned line)
    > {
    > if (retval == 0) {
    > PTRACE_IF(2, retry > 0, "PWLib\t" << funcname << " required " << retry << "
    > retries!");
    > return FALSE;
    > }
    >
    > if (errno == EINTR || errno == EAGAIN) {
    > if (++retry < 1000) {
    > #if defined(P_RTEMS)
    > sched_yield();
    > #else
    > usleep(10000); // Basically just swap out thread to try and clear blockage
    > #endif
    > return TRUE; // Return value to try again
    > }
    > // Give up and assert
    > }
    >
    > PAssertFunc(file, line, NULL, psprintf("Function %s failed", funcname));
    > return FALSE;
    > }

    Is this obviously broken for 2.6 usage ?


    Christian

    --
    Christian Meder, email: chris@onestepahead.de

    What's the railroad to me ?
    I never go to see
    Where it ends.
    It fills a few hollows,
    And makes banks for the swallows,
    It sets the sand a-blowing,
    And the blackberries a-growing.
    (Henry David Thoreau)





    -
    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:59    [W:5.246 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site