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

        servers = pack_BFD(servers)

        self.fill(servers, dummy)

        level = 1
        self.remove_unit_servers(servers, level)

        while servers:
            s = dual(servers)
            servers = pack_BFD(s)
            level += 1
            self.remove_unit_servers(servers, level)

        self.sim.logger.log("Levels = {}".format(level))

        for d in dummy:
            d.next_deadline = INFINITO
            d.budget = INFINITO
            d.dummyServer = True
Ejemplo 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)
        level = 0
        self.remove_unit_servers(servers, level)
        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)
            level += 1

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


        for d in dummy:
            d.next_deadline = INFINITO
            d.budget = INFINITO
            #sim.logger.log("{}.budget = {}, deadline {}".format(server.identifier, server.budget, server.next_deadline))
            d.dummyServer = True
Ejemplo n.º 3
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)
Ejemplo n.º 4
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)
Ejemplo n.º 5
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)