Esempio n. 1
0
    def reduce_iterations(self, servers):
        """
        Offline part of the RUN Scheduler. Create the reduction tree.
        """
        dummy = []
        #self.print_taks_in_servers(servers)

        servers = pack_BFD(servers)
        #self.print_servers(servers)

        self.independent(servers, dummy)
        #self.print_servers(servers)

        level = 1
        while len(servers) > 1:
            s = dual(servers)
            #self.print_dual(s)
            servers = pack_BFD(s)
            level += 1

        self.sim.logger.log("Levels = {}".format(level))
        self.add_subsystem(servers[0], level)

        for d in dummy:
            #set_budget(d)
            update_deadline(self.sim, servers[0], d)
Esempio n. 2
0
    def reduce_iterations(self, servers):
        """
        Offline part of the RUN Scheduler. Create the reduction tree.
        """
        dummy = []
        #self.print_taks_in_servers(servers)
        #servers = increase(self, servers, len(self.processors), dummy)
        #servers = self.before(servers, dummy)
        servers = pack_BFD(servers)
        #self.print_servers(servers)
        #self.fill(servers, dummy)
        self.independent(servers, dummy)
        #self.print_servers(servers)
        #self.remove_unit_servers(servers)
        level = 1
        while len(servers) > 1:
            #while servers:
            #self.print_servers(servers)
            s = dual(servers)
            #self.print_dual(s)
            servers = pack_BFD(s)
            #self.print_servers(servers)
            #self.remove_unit_servers(servers)
            level += 1

        self.sim.logger.log("Levels = {} quantity".format(level))
        self.add_subsystem(servers[0])

        for d in dummy:
            #set_budget(d)
            update_deadline(self.sim, servers[0], d)
Esempio n. 3
0
    def dummy_activated(self, cpu):

        update_deadline(self.sim, self.root, self.dummyTask[0])
        self.is_idle = False
        self.keep = False

        self.sim.logger.log("RESEEET NOT IDLE NOT KEEP".format())

        self.update_budget()
        self.to_reschedule = True
        cpu.resched()
Esempio n. 4
0
    def reduce_iterations(self, servers):
        """
        Offline part of the RUN Scheduler. Create the reduction tree.
        """
        dummy = []
        servers = pack_BFD(servers)

        self.independent(servers, dummy)

        level = 1
        while len(servers) > 1:
            s = dual(servers)
            servers = pack_BFD(s)
            level += 1

        self.sim.logger.log("Levels = {} quantity".format(level))
        self.add_subsystem(servers[0], level)

        for d in dummy:
            update_deadline(self.sim, servers[0], d)