Skip to content

Commit

Permalink
remove div up
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Feb 22, 2024
1 parent f584453 commit 196ab3c
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
from .base_eviction_helper import BaseEvictionHelper


def _div_up(x, n):
"""perform div up."""
return (x + n - 1) // n


class RecomputeEvictionHelper(BaseEvictionHelper):
"""recompute eviction."""

Expand All @@ -28,8 +23,6 @@ def swap_out(self, seq: SchedulerSequence, swap_out_map: Dict[int, int]):
"""sequence swap out."""
self.block_manager.free(seq)
seq.set_step(0)
# num_blocks = _div_up(seq, seq.block_size)
# seq.logical_blocks.resize(num_blocks)
seq.logical_blocks.reset()

def try_swap_out(self, seq: SchedulerSequence, swap_out_map: Dict[int,
Expand Down

0 comments on commit 196ab3c

Please sign in to comment.