Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for page (0.16 sec)

  1. src/bytes/boundary_test.go

    package bytes_test
    
    import (
    	. "bytes"
    	"syscall"
    	"testing"
    )
    
    // This file tests the situation where byte operations are checking
    // data very near to a page boundary. We want to make sure those
    // operations do not read across the boundary and cause a page
    // fault where they shouldn't.
    
    // These tests run only on linux. The code being tested is
    // not OS-specific, so it does not need to be tested on all
    // operating systems.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. internal/disk/directio_unsupported.go

    //
    //
    // On illumos an explicit O_DIRECT flag is not necessary for two primary
    // reasons. Note that ZFS is effectively the default filesystem on illumos
    // systems.
    //
    // One benefit of using DirectIO on Linux is that the page cache will not be
    // polluted with single-access data. The ZFS read cache (ARC) is scan-resistant
    // so there is no risk of polluting the entire cache with data accessed once.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  3. cmd/metrics-v3-system-process.go

    	processIOWCharBytesMD             = NewCounterMD(processIOWCharBytes, "Total bytes written by the process to the underlying storage system including page cache, /proc/[pid]/io wchar")
    	processIOWriteBytesMD             = NewCounterMD(processIOWriteBytes, "Total bytes written by the process to the underlying storage system, /proc/[pid]/io write_bytes")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. cmd/utils.go

    	}
    
    	// Modify u to choose the ldap option
    	u.Path += "/ldap"
    	// fmt.Println(u)
    
    	// Pick the LDAP login option. This would return a form page after
    	// following some redirects. `lastReq` would be the URL of the form
    	// page, where we need to POST (submit) the form.
    	req, err = http.NewRequestWithContext(ctx, http.MethodGet, u.String(), nil)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 31.3K bytes
    - Viewed (0)
  5. internal/ioutil/ioutil.go

    const DirectioAlignSize = 4096
    
    // CopyAligned - copies from reader to writer using the aligned input
    // buffer, it is expected that input buffer is page aligned to
    // 4K page boundaries. Without passing aligned buffer may cause
    // this function to return error.
    //
    // This code is similar in spirit to io.Copy but it is only to be
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  6. cmd/handler-api.go

    		return 0
    	}
    	if limit == cgroupMemNoLimit {
    		// No limit set, It's the highest positive signed 64-bit
    		// integer (2^63-1), rounded down to multiples of 4096 (2^12),
    		// the most common page size on x86 systems - for cgroup_limits.
    		return 0
    	}
    	return limit
    }
    
    func availableMemory() (available uint64) {
    	available = 2048 * blockSizeV2 * 2 // Default to 4 GiB when we can't find the limits.
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. istioctl/pkg/internaldebug/internal-debug.go

    				return nil, fmt.Errorf(" You must provide a proxyID in the query string, e.g. [%s]",
    					"edsz?proxyID=istio-ingressgateway")
    
    			case strings.Contains(eString, "404 page not found"):
    				return HandlerForRetrieveDebugList(kubeClient, *centralOpts, writer, istioNamespace)
    
    			case strings.Contains(eString, "querystring parameter 'resource' is required"):
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. internal/disk/fdatasync_linux.go

    // do not require all metadata to be synchronized with the disk.
    func Fdatasync(f *os.File) error {
    	return syscall.Fdatasync(int(f.Fd()))
    }
    
    // FadviseDontNeed invalidates page-cache
    func FadviseDontNeed(f *os.File) error {
    	return unix.Fadvise(int(f.Fd()), 0, 0, unix.FADV_DONTNEED)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    			if pos != -1 {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    		}
    	}
    }
    
    // test a small index across all page offsets
    func TestIndexByteSmall(t *testing.T) {
    	b := make([]byte, 5015) // bigger than a page
    	// Make sure we find the correct byte even when straddling a page.
    	for i := 0; i <= len(b)-15; i++ {
    		for j := 0; j < 15; j++ {
    			b[i+j] = byte(100 + j)
    		}
    		for j := 0; j < 15; j++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. cmd/warm-backend-gcs.go

    	it := gcs.client.Bucket(gcs.Bucket).Objects(ctx, &storage.Query{
    		Delimiter: "/",
    		Prefix:    gcs.Prefix,
    		Versions:  false,
    	})
    	pager := iterator.NewPager(it, 1, "")
    	gcsObjects := make([]*storage.ObjectAttrs, 0)
    	_, err := pager.NextPage(&gcsObjects)
    	if err != nil {
    		return false, gcsToObjectError(err, gcs.Bucket, gcs.Prefix)
    	}
    	if len(gcsObjects) > 0 {
    		return true, nil
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top