Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for getncpu (0.24 sec)

  1. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    // The 'getCPU()' parameter defines the function that should be called to
    // retrieve the list of available CPUs for the type being referenced. If two
    // NUMA nodes/sockets/cores/cpus have the same number of available CPUs, they
    // are sorted in ascending order by their id.
    func (a *cpuAccumulator) sort(ids []int, getCPUs func(ids ...int) cpuset.CPUSet) {
    	sort.Slice(ids,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:56:21 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  2. src/internal/syscall/windows/syscall_windows.go

    const (
    	LOCKFILE_FAIL_IMMEDIATELY = 0x00000001
    	LOCKFILE_EXCLUSIVE_LOCK   = 0x00000002
    )
    
    const MB_ERR_INVALID_CHARS = 8
    
    //sys	GetACP() (acp uint32) = kernel32.GetACP
    //sys	GetConsoleCP() (ccp uint32) = kernel32.GetConsoleCP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java

            final OsCpuObj osCpuObj = new OsCpuObj();
            osObj.cpu = osCpuObj;
            osCpuObj.percent = osProbe.getSystemCpuPercent();
            final OsStats osStats = osProbe.osStats();
            osObj.loadAverages = osStats.getCpu().getLoadAverage();
            return osObj;
        }
    
        private EngineObj getEngineObj() {
            final EngineObj engineObj = new EngineObj();
            try {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/container_manager_windows.go

    	return &noopWindowsResourceAllocator{}
    }
    
    func (cm *containerManagerImpl) UpdateAllocatedDevices() {
    	return
    }
    
    func (cm *containerManagerImpl) GetCPUs(_, _ string) []int64 {
    	return nil
    }
    
    func (cm *containerManagerImpl) GetAllocatableCPUs() []int64 {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 11:25:36 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. src/internal/syscall/windows/zsyscall_windows.go

    	procGetAdaptersAddresses              = modiphlpapi.NewProc("GetAdaptersAddresses")
    	procCreateEventW                      = modkernel32.NewProc("CreateEventW")
    	procGetACP                            = modkernel32.NewProc("GetACP")
    	procGetComputerNameExW                = modkernel32.NewProc("GetComputerNameExW")
    	procGetConsoleCP                      = modkernel32.NewProc("GetConsoleCP")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. cmd/peer-rest-client.go

    	resp, err := serverInfoRPC.Call(ctx, client.gridConn(), grid.NewMSSWith(map[string]string{peerRESTMetrics: strconv.FormatBool(metrics)}))
    	return resp.ValueOrZero(), err
    }
    
    // GetCPUs - fetch CPU information for a remote node.
    func (client *peerRESTClient) GetCPUs(ctx context.Context) (info madmin.CPUs, err error) {
    	resp, err := getCPUsHandler.Call(ctx, client.gridConn(), grid.NewMSS())
    	return resp.ValueOrZero(), err
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. cmd/notification.go

    		if nErr.Err != nil {
    			peersLogOnceIf(logger.SetReqInfo(ctx, reqInfo), nErr.Err, nErr.Host.String())
    		}
    	}
    }
    
    // GetCPUs - Get all CPU information.
    func (sys *NotificationSys) GetCPUs(ctx context.Context) []madmin.CPUs {
    	reply := make([]madmin.CPUs, len(sys.peerClients))
    
    	g := errgroup.WithNErrs(len(sys.peerClients))
    	for index, client := range sys.peerClients {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 44.9K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/container_manager_linux.go

    }
    
    func int64Slice(in []int) []int64 {
    	out := make([]int64, len(in))
    	for i := range in {
    		out[i] = int64(in[i])
    	}
    	return out
    }
    
    func (cm *containerManagerImpl) GetCPUs(podUID, containerName string) []int64 {
    	if cm.cpuManager != nil {
    		return int64Slice(cm.cpuManager.GetExclusiveCPUs(podUID, containerName).UnsortedList())
    	}
    	return []int64{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    //sys	GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) = iphlpapi.GetAdaptersAddresses
    //sys	GetACP() (acp uint32) = kernel32.GetACP
    //sys	MultiByteToWideChar(codePage uint32, dwFlags uint32, str *byte, nstr int32, wchar *uint16, nwchar int32) (nwrite int32, err error) = kernel32.MultiByteToWideChar
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    		}
    	}
    
    	getAndWriteCPUs := func() {
    		if query.Get("syscpu") == "true" {
    			localCPUInfo := madmin.GetCPUs(healthCtx, globalLocalNodeName)
    			anonymizeAddr(&localCPUInfo)
    			healthInfo.Sys.CPUInfo = append(healthInfo.Sys.CPUInfo, localCPUInfo)
    
    			peerCPUInfo := globalNotificationSys.GetCPUs(healthCtx)
    			for _, cpuInfo := range peerCPUInfo {
    				anonymizeAddr(&cpuInfo)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top