Interception for a resource based scheduler

From: selvakumar nagendran (kernelselva_at_yahoo.com)
Date: 12/31/04

  • Next message: Jesse Allen: "Re: ptrace single-stepping change breaks Wine"
    Date:	Thu, 30 Dec 2004 22:51:36 -0800 (PST)
    To: Arjan van de Ven <arjan@infradead.org>
    
    

    hi,
      I am using these information for the scheduler I am
    developing in Linux. The scheduler selects the next
    process to run based on the resources needed so that a
    high priority process will not starve for a semaphore
    key, file lock etc that were acquired by a low
    priority process. The user may change the file
    descriptor only through syscalls. If I intercept them
    and update the resource history that I am maintaining,
    then will the information break?

    Thanks,
    selva

    --- Arjan van de Ven <arjan@infradead.org> wrote:

    > On Thu, 2004-12-30 at 04:13 -0800, selvakumar
    > nagendran wrote:
    > >
    > > Thanks for ur help. The user will be changing
    > > this using system calls like dup,dup2 etc. If I
    > keep
    > > track of all these modifications by intercepting
    > all
    > > those syscalls and use inode number for
    > identifying
    > > the structure uniquely, will it break?
    >
    > it sure is not a reliable method. The user can
    > change the fd's YOU log.
    > So your logging is inaccurate. That may or may not
    > be a problem, it
    > depends on what the application of this is.
    >
    >
    >

                    
    __________________________________
    Do you Yahoo!?
    All your favorites on one personal page – Try My Yahoo!
    http://my.yahoo.com
    -
    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/


  • Next message: Jesse Allen: "Re: ptrace single-stepping change breaks Wine"

    Relevant Pages

    • Re: [PATCH] Staircase Scheduler v6.3 for 2.6.7-rc2
      ... which do not have the stair step scheduler. ... > pattern dislikes or d) ... Try the all-new Yahoo! ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: kernel stack challenge
      ... > If the policy check goes into an infinite loop, ... scheduler still can switch tasks (using timer for ... Do you Yahoo!? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: interruptible_sleep_on, interrupts and device drivers
      ... or just a simple semaphore ... OK, i'll not use, but the kernel has a lot of device drivers using it, that ... This is not a problem, because the scheduler will switch to another process, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test9 - poor swap performance on low end machines
      ... > I suppose it will show some improvement but fail to get performance ... > working on a break-down of where we're losing it. ... I guess encoding a vm scheduler will help (and ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: DVD burning still have problems
      ... > i just burned a DVD, and it works;D pretty neat, im not sure what ... the reason i changed to anticipatory from cfq is that i noticed ... right now it's not really clear if it's acpi or the io scheduler. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)