diff --git a/pkg/agent/qrm-plugins/memory/dynamicpolicy/util_linux_amd64.go b/pkg/agent/qrm-plugins/memory/dynamicpolicy/util_linux_amd64.go index 0364839df..cab69559a 100644 --- a/pkg/agent/qrm-plugins/memory/dynamicpolicy/util_linux_amd64.go +++ b/pkg/agent/qrm-plugins/memory/dynamicpolicy/util_linux_amd64.go @@ -58,10 +58,6 @@ const ( // MovePagesAcceptableTimeCost is acceptable time cost of each move pages is 20ms MovePagesAcceptableTimeCost = 20 - MBytes = 1024 * 1024 - - // MinRSSSkipMigrate is min rss size to skip migrate the process numa pages. - MinRSSSkipMigrate = 10 * MBytes SystemNodeDir = "/sys/devices/system/node/" ProcDir = "/proc" @@ -252,11 +248,6 @@ func MovePagesForProcess(ctx context.Context, procDir string, pid int, srcNumas return err } - // skip process whose rss is below threshold. - if pidSmapsInfo.totalRss < MinRSSSkipMigrate { - return nil - } - srcNumasBitSet, err := bitmask.NewBitMask(srcNumas...) if err != nil { return fmt.Errorf("failed to NewBitMask allowd numas %+v", srcNumas)