Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for Threads (0.21 sec)

  1. misc/cgo/gmp/fib.go

    // that pass integers back and forth.  No actual
    // concurrency, just threads and synchronization
    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	big "."
    	"runtime"
    )
    
    func fibber(c chan *big.Int, out chan string, n int64) {
    	// Keep the fibbers in dedicated operating system
    	// threads, so that this program tests coordination
    	// between pthreads and not just goroutines.
    	runtime.LockOSThread()
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 919 bytes
    - Viewed (0)
  2. cmd/server-rlimit.go

    	return currentKernel < kernel.Version(4, 0, 0)
    }
    
    func setMaxResources(ctx *cli.Context) (err error) {
    	// Set the Go runtime max threads threshold to 90% of kernel setting.
    	sysMaxThreads, err := sys.GetMaxThreads()
    	if err == nil {
    		minioMaxThreads := (sysMaxThreads * 90) / 100
    		// Only set max threads if it is greater than the default one
    		if minioMaxThreads > 10000 {
    			debug.SetMaxThreads(minioMaxThreads)
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue18146.go

    		var rlim syscall.Rlimit
    		if syscall.Getrlimit(nproc, &rlim) == nil {
    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    				for {
    					_ = md5.Sum([]byte("Hello, !"))
    				}
    			}()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue1435.go

    	}
    	if !foundAThread {
    		return fmt.Errorf("found no thread /proc/<TID>/status files for process %q", expectedProc)
    	}
    	return nil
    }
    
    // test1435 test 9 glibc implemented setuid/gid syscall functions are
    // mapped.  This test is a slightly more expansive test than that of
    // src/syscall/syscall_linux_test.go:TestSetuidEtc() insofar as it
    // launches concurrent threads from C code via CGo and validates that
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  5. cmd/local-locker_gen.go

    				return
    			}
    		case "Writes":
    			z.Writes, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Writes")
    				return
    			}
    		case "Reads":
    			z.Reads, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Reads")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	return
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. cmd/metrics-resource.go

    	// drive stats
    	totalInodes    MetricName = "total_inodes"
    	readsPerSec    MetricName = "reads_per_sec"
    	writesPerSec   MetricName = "writes_per_sec"
    	readsKBPerSec  MetricName = "reads_kb_per_sec"
    	writesKBPerSec MetricName = "writes_kb_per_sec"
    	readsAwait     MetricName = "reads_await"
    	writesAwait    MetricName = "writes_await"
    	percUtil       MetricName = "perc_util"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/cgo_thread_lock.go

    			select {
    			case <-stop:
    				return
    			case <-time.After(time.Millisecond * 100):
    			}
    		}
    	}()
    	defer close(stop)
    
    	for i := 0; i < 1000; i++ {
    		if !C.Ctid() {
    			t.Fatalf("cgo has not locked OS thread")
    		}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  8. internal/bucket/bandwidth/reader.go

    type MonitoredReader struct {
    	r        io.Reader
    	throttle *bucketThrottle
    	ctx      context.Context // request context
    	lastErr  error           // last error reported, if this non-nil all reads will fail.
    	m        *Monitor
    	opts     *MonitorReaderOptions
    }
    
    // BucketOptions represents the bucket and optionally its replication target pair.
    type BucketOptions struct {
    	Name           string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  9. cmd/xl-storage_noatime_notsupported.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"os"
    )
    
    var (
    	// No special option for reads on windows
    	readMode = os.O_RDONLY
    
    	// Write with sync no buffering only used only for `xl.meta` writes
    	writeMode = os.O_SYNC
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1K bytes
    - Viewed (0)
  10. cmd/speedtest.go

    			}
    
    			if totalGet < throughputHighestGet {
    				// Following check is for situations
    				// when Writes() scale higher than Reads()
    				// - practically speaking this never happens
    				// and should never happen - however it has
    				// been seen recently due to hardware issues
    				// causes Reads() to go slower than Writes().
    				//
    				// Send such results anyways as this shall
    				// expose a problem underneath.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top