space

package
v1.3.19 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 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-2021, 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-2022, 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-2021, 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 {
	T       cluster.Target
	Xaction *XactCln
	StatsT  stats.Tracker
	Buckets []cmn.Bck // optional list of specific buckets to cleanup
	WG      *sync.WaitGroup
}

type IniLRU

type IniLRU struct {
	T                   cluster.Target
	Xaction             *XactLRU
	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

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

type XactLRU

type XactLRU struct {
	xact.Base
}

func (*XactLRU) Run

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

func (*XactLRU) Snap

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

Jump to

Keyboard shortcuts

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