lkml.org 
[lkml]   [2006]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 0/4] WorkStruct: Shrink work_struct by two thirds
    From
    Date
    On Mon, 2006-11-20 at 14:27 +0000, David Howells wrote:
    >
    > The workqueue struct is huge, and this limits it's usefulness. On a 64-bit
    > architecture it's nearly 100 bytes in size, of which the timer_list is half.
    > These patches shrink work_struct by 8 of the 12 words it ordinarily consumes.
    > This is done by:
    >
    > (1) Splitting the timer out so that delayable work items are defined by a
    > separate structure which incorporates a basic work_struct and a timer.

    Why not simply add a timer argument to 'queue_delayed_work()' and
    'cancel_delayed_work()'? That may allow you to reuse an existing timer
    struct if you already have it embedded somewhere else.

    Cheers
    Trond

    -
    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: 2006-11-20 17:35    [W:0.021 / U:30.136 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site