Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 121 for sysctls (0.04 seconds)

  1. cmd/os-dirent_namelen_linux.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"fmt"
    	"syscall"
    	"unsafe"
    )
    
    func direntNamlen(dirent *syscall.Dirent) (uint64, error) {
    	const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name))
    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	const nameBufLen = uint16(len(nameBuf))
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.5K bytes
    - Click Count (0)
  2. src/archive/tar/stat_unix.go

    	"runtime"
    	"strconv"
    	"sync"
    	"syscall"
    )
    
    func init() {
    	sysStat = statUnix
    }
    
    // userMap and groupMap caches UID and GID lookups for performance reasons.
    // The downside is that renaming uname or gname by the OS never takes effect.
    var userMap, groupMap sync.Map // map[int]string
    
    func statUnix(fi fs.FileInfo, h *Header, doNameLookups bool) error {
    	sys, ok := fi.Sys().(*syscall.Stat_t)
    	if !ok {
    		return nil
    	}
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  3. internal/disk/type_windows.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"path/filepath"
    	"syscall"
    	"unsafe"
    )
    
    // GetVolumeInformation provides windows drive volume information.
    var GetVolumeInformation = kernel32.NewProc("GetVolumeInformationW")
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.2K bytes
    - Click Count (0)
  4. internal/disk/stat_openbsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := uint64(s.F_bfree) - uint64(s.F_bavail)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  5. cmd/service.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"os"
    	"os/exec"
    	"runtime"
    	"syscall"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    // Type of service signals currently supported.
    type serviceSignal int
    
    const (
    	serviceRestart       serviceSignal = iota // Restarts the server.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Feb 28 07:02:14 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  6. api/go1.8.txt

    pkg sort, func SliceStable(interface{}, func(int, int) bool)
    pkg syscall (linux-arm-cgo), func TimevalToNsec(Timeval) int64
    pkg syscall (linux-arm), func TimevalToNsec(Timeval) int64
    pkg syscall (openbsd-386), const SYS_KILL = 122
    pkg syscall (openbsd-386-cgo), const SYS_KILL = 122
    pkg syscall (openbsd-amd64), const SYS_KILL = 122
    pkg syscall (openbsd-amd64-cgo), const SYS_KILL = 122
    pkg syscall (windows-386), const ERROR_DIR_NOT_EMPTY = 145
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Wed Dec 21 05:25:57 GMT 2016
    - 16.3K bytes
    - Click Count (0)
  7. api/go1.22.txt

    pkg syscall (linux-386), type SysProcAttr struct, PidFD *int #51246
    pkg syscall (linux-386-cgo), type SysProcAttr struct, PidFD *int #51246
    pkg syscall (linux-amd64), type SysProcAttr struct, PidFD *int #51246
    pkg syscall (linux-amd64-cgo), type SysProcAttr struct, PidFD *int #51246
    pkg syscall (linux-arm), type SysProcAttr struct, PidFD *int #51246
    pkg syscall (linux-arm-cgo), type SysProcAttr struct, PidFD *int #51246
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Wed Jan 24 20:54:27 GMT 2024
    - 7.7K bytes
    - Click Count (0)
  8. docs/debugging/reorder-disks/main.go

    		})
    	if err != nil {
    		return nil, err
    	}
    	return result, nil
    }
    
    type localDisk struct {
    	index int
    	path  string
    }
    
    func getMajorMinor(path string) (string, error) {
    	var stat syscall.Stat_t
    	if err := syscall.Stat(path, &stat); err != nil {
    		return "", fmt.Errorf("unable to stat `%s`: %w", path, err)
    	}
    
    	devID := uint64(stat.Dev)
    	major := (devID & 0x00000000000fff00) >> 8
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 24 23:05:23 GMT 2024
    - 5.4K bytes
    - Click Count (0)
  9. docs/tuning/tuned.conf

    /sys/kernel/mm/transparent_hugepage/defrag=defer+madvise
    /sys/kernel/mm/transparent_hugepage/khugepaged/max_ptes_none=0
    
    [cpu]
    force_latency=1
    governor=performance
    energy_perf_bias=performance
    min_perf_pct=100
    
    [sysctl]
    fs.xfs.xfssyncd_centisecs=72000
    net.core.busy_read=50
    net.core.busy_poll=50
    kernel.numa_balancing=1
    
    # Do not use swap at all
    vm.swappiness=0
    vm.vfs_cache_pressure=50
    
    # Start writeback at 3% memory
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Jul 12 23:31:18 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  10. cmd/os-dirent_fileino.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import "syscall"
    
    func direntInode(dirent *syscall.Dirent) uint64 {
    	return uint64(dirent.Fileno)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 950 bytes
    - Click Count (0)
Back to Top