- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 240 for prlimit1 (0.18 sec)
-
src/syscall/rlimit_darwin.go
// license that can be found in the LICENSE file. //go:build darwin package syscall // adjustFileLimit adds per-OS limitations on the Rlimit used for RLIMIT_NOFILE. See rlimit.go. func adjustFileLimit(lim *Rlimit) { // On older macOS, setrlimit(RLIMIT_NOFILE, lim) with lim.Cur = infinity fails. // Set to the value of kern.maxfilesperproc instead. n, err := SysctlUint32("kern.maxfilesperproc")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 15 17:18:32 UTC 2023 - 593 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/lister_watcher_test.go
obj1, err := lw.List(metav1.ListOptions{Limit: 2}) if err != nil { t.Fatalf("List failed: %v", err) } limit1, ok := obj1.(*example.PodList) if !ok { t.Fatalf("Expected PodList but got %v", limit1) } if len(limit1.Items) != 2 { t.Errorf("Expected PodList of length 2 but got %d", len(limit1.Items)) } if limit1.Continue == "" { t.Errorf("Expected list to have Continue but got none") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 11:51:06 UTC 2024 - 3.6K bytes - Viewed (0) -
src/syscall/rlimit_stub.go
// license that can be found in the LICENSE file. //go:build unix && !darwin package syscall // adjustFileLimit adds per-OS limitations on the Rlimit used for RLIMIT_NOFILE. See rlimit.go.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 21:22:57 UTC 2023 - 338 bytes - Viewed (0) -
pkg/util/rlimit/rlimit_linux.go
See the License for the specific language governing permissions and limitations under the License. */ package rlimit import ( "golang.org/x/sys/unix" ) // SetNumFiles sets the linux rlimit for the maximum open files. func SetNumFiles(maxOpenFiles uint64) error { return unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 866 bytes - Viewed (0) -
pkg/util/rlimit/rlimit_unsupported.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package rlimit import ( "errors" ) // SetNumFiles sets the rlimit for the maximum open files. func SetNumFiles(maxOpenFiles uint64) error { return errors.New("SetRLimit unsupported in this platform")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 813 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_386.go
Max uint32 } //sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT const rlimInf32 = ^uint32(0) const rlimInf64 = ^uint64(0) func Getrlimit(resource int, rlim *Rlimit) (err error) { err = Prlimit(0, resource, nil, rlim) if err != ENOSYS { return err } rl := rlimit32{} err = getrlimit(resource, &rl) if err != nil { return } if rl.Cur == rlimInf32 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 8.9K bytes - Viewed (0) -
src/runtime/runtime-gdb_unix_test.go
debug.SetTraceback("crash") var lim syscall.Rlimit err := syscall.Getrlimit(syscall.RLIMIT_CORE, &lim) if err != nil { panic(fmt.Sprintf("error getting rlimit: %v", err)) } lim.Cur = lim.Max fmt.Fprintf(os.Stderr, "Setting RLIMIT_CORE = %+#v\n", lim) err = syscall.Setrlimit(syscall.RLIMIT_CORE, &lim) if err != nil { panic(fmt.Sprintf("error setting rlimit: %v", err)) } } func main() { flag.Parse()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 17 19:05:30 UTC 2024 - 9.4K bytes - Viewed (0) -
src/syscall/export_rlimit_test.go
// license that can be found in the LICENSE file. //go:build unix package syscall import "sync/atomic" func OrigRlimitNofile() *Rlimit { return origRlimitNofile.Load() } func GetInternalOrigRlimitNofile() *atomic.Pointer[Rlimit] { return &origRlimitNofile
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:18:19 UTC 2024 - 374 bytes - Viewed (0) -
src/syscall/rlimit_test.go
// Check that we can open 1200 files, which proves // that the rlimit is being raised appropriately on those systems. fileCount := 1200 // OpenBSD has a default soft limit of 512 and hard limit of 1024. if runtime.GOOS == "openbsd" { fileCount = 768 } var files []*os.File for i := 0; i < fileCount; i++ { f, err := os.Open("rlimit.go") if err != nil { t.Error(err) break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 21:22:57 UTC 2023 - 953 bytes - Viewed (0) -
pkg/kubelet/server/stats/summary.go
} else { podStats, err = sp.provider.ListPodStats(ctx) } if err != nil { return nil, fmt.Errorf("failed to list pod stats: %v", err) } rlimit, err := sp.provider.RlimitStats() if err != nil { return nil, fmt.Errorf("failed to get rlimit stats: %v", err) } nodeStats := statsapi.NodeStats{ NodeName: node.Name, CPU: rootStats.CPU, Memory: rootStats.Memory,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 18:46:33 UTC 2023 - 5.1K bytes - Viewed (0)