Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for 1MiB (0.22 sec)

  1. cmd/batch-expire_test.go

          size:
            lessThan: "10MiB" # match objects with size less than this value (e.g. 10MiB)
            greaterThan: 1MiB # match objects with size greater than this value (e.g. 1MiB)
          purge:
              # retainVersions: 0 # (default) delete all versions of the object. This option is the fastest.
              # retainVersions: 5 # keep the latest 5 versions of the object.
      
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. cmd/batch-job-common-types_test.go

    package cmd
    
    import (
    	"fmt"
    	"testing"
    )
    
    func TestBatchJobSizeInRange(t *testing.T) {
    	tests := []struct {
    		objSize    int64
    		sizeFilter BatchJobSizeFilter
    		want       bool
    	}{
    		{
    			// 1Mib < 2Mib < 10MiB -> in range
    			objSize: 2 << 20,
    			sizeFilter: BatchJobSizeFilter{
    				UpperBound: 10 << 20,
    				LowerBound: 1 << 20,
    			},
    			want: true,
    		},
    		{
    			// 2KiB < 1 MiB -> out of range from left
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 08 23:22:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/arena/arena_test.go

    // license that can be found in the LICENSE file.
    
    //go:build goexperiment.arenas
    
    package arena_test
    
    import (
    	"arena"
    	"testing"
    )
    
    type T1 struct {
    	n int
    }
    type T2 [1 << 20]byte // 1MiB
    
    func TestSmoke(t *testing.T) {
    	a := arena.NewArena()
    	defer a.Free()
    
    	tt := arena.New[T1](a)
    	tt.n = 1
    
    	ts := arena.MakeSlice[T1](a, 99, 100)
    	if len(ts) != 99 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 742 bytes
    - Viewed (0)
  4. cmd/batch-expire.go

    //       size:
    //         lessThan: "10MiB" # match objects with size less than this value (e.g. 10MiB)
    //         greaterThan: 1MiB # match objects with size greater than this value (e.g. 1MiB)
    //       purge:
    //           # retainVersions: 0 # (default) delete all versions of the object. This option is the fastest.
    //           # retainVersions: 5 # keep the latest 5 versions of the object.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  5. cmd/os_unix.go

    	return nil
    }
    
    // The buffer must be at least a block long.
    // refer https://github.com/golang/go/issues/24015
    const blockSize = 8 << 10 // 8192
    
    // By default at least 128 entries in single getdents call (1MiB buffer)
    var (
    	direntPool = sync.Pool{
    		New: func() interface{} {
    			buf := make([]byte, blockSize*128)
    			return &buf
    		},
    	}
    
    	direntNamePool = sync.Pool{
    		New: func() interface{} {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. cmd/encryption-v1_test.go

    			}
    			if o != 0 || l != esum(test.oi) || skip != 0 || sn != 0 || ps != 0 {
    				t.Errorf("Case %d: test failed: %d %d %d %d %d", i, o, l, skip, sn, ps)
    			}
    		}
    
    		// Skip 1Mib and read 1Mib (in the decrypted object)
    		//
    		// The check below ensures the object is large enough
    		// for the read.
    		if lsum(test.decSizes) >= 2*humanize.MiByte {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  7. cmd/handler-api.go

    		maxMem := availableMemory()
    
    		// max requests per node is calculated as
    		// total_ram / ram_per_request
    		// ram_per_request is (2MiB+128KiB) * driveCount \
    		//    + 2 * 10MiB (default erasure block size v1) + 2 * 1MiB (default erasure block size v2)
    		blockSize := xioutil.LargeBlock + xioutil.SmallBlock
    		apiRequestsMaxPerNode = int(maxMem / uint64(maxSetDrives*blockSize+int(blockSizeV1*2+blockSizeV2*2)))
    		if globalIsDistErasure {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    	partPath := pathJoin(uploadIDPath, fi.DataDir) + "/"
    	req := ReadMultipleReq{
    		Bucket:       minioMetaMultipartBucket,
    		Prefix:       partPath,
    		MaxSize:      1 << 20, // Each part should realistically not be > 1MiB.
    		MaxResults:   maxParts + 1,
    		MetadataOnly: true,
    	}
    
    	start := partNumberMarker + 1
    	end := start + maxParts
    
    	// Parts are 1 based, so index 0 is part one, etc.
    	for i := start; i <= end; i++ {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    )
    
    //go:generate msgp -file $GOFILE -unexported
    
    // dataUsageHash is the hash type used.
    type dataUsageHash string
    
    // sizeHistogramV1 is size histogram V1, which has fewer intervals esp. between
    // 1024B and 1MiB.
    type sizeHistogramV1 [dataUsageBucketLenV1]uint64
    
    // sizeHistogram is a size histogram.
    type sizeHistogram [dataUsageBucketLen]uint64
    
    // versionsHistogram is a histogram of number of versions in an object.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  10. cmd/object-api-datatypes.go

    }
    
    // ObjectsHistogramIntervals is the list of all intervals
    // of object sizes to be included in objects histogram.
    // Note: this histogram expands 1024B-1MB to incl. 1024B-64KB, 64KB-256KB, 256KB-512KB and 512KB-1MiB
    var ObjectsHistogramIntervals = [dataUsageBucketLen]objectHistogramInterval{
    	{"LESS_THAN_1024_B", 0, humanize.KiByte - 1},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
Back to top