Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyMemoryToMmap ¶
CopyMemoryToMmap copies memory from a process to mmap using ProcessVMReadv
Types ¶
type PageMap ¶
type PageMap struct {
// contains filtered or unexported fields
}
PageMap represents the soft-dirty view of pages (imported from proc package)
func NewPageMap ¶
NewPageMap creates a new PageMap for the given process
func (*PageMap) CalculateDirtyRatio ¶
CalculateDirtyRatio calculates the ratio of dirty pages
func (*PageMap) ClearSoftDirty ¶
ClearSoftDirty clears the soft-dirty bits for the process
type PreCopyEngine ¶
type PreCopyEngine struct {
// contains filtered or unexported fields
}
PreCopyEngine handles iterative pre-copy with soft-dirty tracking
func NewPreCopyEngine ¶
func NewPreCopyEngine(pid int, maxPasses int, dirtyThreshold float64, workers int, bufferManager *buffer.Manager, verbose bool) *PreCopyEngine
NewPreCopyEngine creates a new pre-copy engine
func (*PreCopyEngine) RunPreCopy ¶
func (pce *PreCopyEngine) RunPreCopy(vmas []VMA) (*PreCopyResult, error)
RunPreCopy runs the iterative pre-copy process
Click to show internal directories.
Click to hide internal directories.