space

package
v1.3.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package space provides storage cleanup and eviction functionality (the latter based on the least recently used cache replacement). It also serves as a built-in garbage-collection mechanism for orphaned workfiles.

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Package space provides storage cleanup and eviction functionality (the latter based on the least recently used cache replacement). It also serves as a built-in garbage-collection mechanism for orphaned workfiles.

  • Copyright (c) 2021-2024, NVIDIA CORPORATION. All rights reserved.

Package space provides storage cleanup and eviction functionality (the latter based on the least recently used cache replacement). It also serves as a built-in garbage-collection mechanism for orphaned workfiles.

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCleanup

func RunCleanup(ini *IniCln) fs.CapStatus

func RunLRU

func RunLRU(ini *IniLRU)

func Xreg

func Xreg()

Types

type IniCln

type IniCln struct {
	Config  *cmn.Config
	Xaction *XactCln
	StatsT  stats.Tracker
	Buckets []cmn.Bck // optional list of specific buckets to cleanup
	WG      *sync.WaitGroup
}

type IniLRU

type IniLRU struct {
	Xaction             *XactLRU
	Config              *cmn.Config
	StatsT              stats.Tracker
	Buckets             []cmn.Bck // list of buckets to run LRU
	GetFSUsedPercentage func(path string) (usedPercentage int64, ok bool)
	GetFSStats          func(path string) (blocks, bavail uint64, bsize int64, err error)
	WG                  *sync.WaitGroup
	Force               bool // Ignore LRU prop when set to be true.
}

type TestFactory

type TestFactory = lruFactory // unit tests only

private

type XactCln

type XactCln struct {
	xact.Base
}

func (*XactCln) Run

func (*XactCln) Run(*sync.WaitGroup)

func (*XactCln) Snap added in v1.3.16

func (r *XactCln) Snap() (snap *core.Snap)

type XactLRU

type XactLRU struct {
	xact.Base
}

func (*XactLRU) Run

func (*XactLRU) Run(*sync.WaitGroup)

func (*XactLRU) Snap added in v1.3.16

func (r *XactLRU) Snap() (snap *core.Snap)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL