[lkml]   [2001]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Process pinning
    In message <> you write:
    > Changes to array.c expose cpus_allowed in proc/pid/stat.

    Call me old fashioned, but I prefer my bitmasks in hex.

    Please also consider changing:

    c = goodness(prev, this_cpu, prev->active_mm);
    next = prev;


    if (prev & (1 << this_cpu)) {
    c = goodness(prev, this_cpu, prev->active_mm);
    next = prev;

    Otherwise, you will keep scheduling a RT process forever on a
    disallowed CPU on which it is already running. And even a non-RT
    process will stick on its disallowed CPU as long as nothing else runs

    Learnt this the hard way from the hotplug CPU patch...
    Premature optmztion is rt of all evl. --DK
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:25    [W:0.019 / U:50.768 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site