Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 147 for preemption (0.13 sec)

  1. src/runtime/chan_test.go

    		testenv.SkipFlaky(t, 51482)
    	}
    
    	// The goal of this test is to trigger a "racy sudog adjustment"
    	// throw. Basically, there's a window between when a goroutine
    	// becomes available for preemption for stack scanning (and thus,
    	// stack shrinking) but before the goroutine has fully parked on a
    	// channel. See issue 40641 for more details on the problem.
    	//
    	// The way we try to induce this failure is to set up two
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api.cc

    // TFE_ContextUpdateServerDefWithTimeout to be simple wrappers around the same
    // C++ function.
    // Retries are used for CreateContext calls, which is used in
    // ParameterServerStrategy initialization to be robust to worker preemption.
    TF_CAPI_EXPORT extern void TFE_ContextSetServerDefWithTimeoutAndRetries(
        TFE_Context* ctx, int keep_alive_secs, const void* proto, size_t proto_len,
        int64_t init_timeout_in_ms, int retries, TF_Status* status,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  3. src/runtime/mprof.go

    			yield()
    			continue
    		}
    
    		// While we have gp1.goroutineProfiled set to
    		// goroutineProfileInProgress, gp1 may appear _Grunnable but will not
    		// actually be able to run. Disable preemption for ourselves, to make
    		// sure we finish profiling gp1 right away instead of leaving it stuck
    		// in this limbo.
    		mp := acquirem()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental.h

        int64_t init_timeout_in_ms, TF_Status* status,
        bool clear_existing_contexts);
    
    // Set server def with retries and timeout. This is helpful for fault-tolerant
    // initial connection in high-preemption environments, such as
    // ParameterServerStrategy training.
    // This API is for experimental usage and may be subject to change.
    TF_CAPI_EXPORT extern void TFE_ContextSetServerDefWithTimeoutAndRetries(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  5. src/os/signal/signal_test.go

    	// deliver the signal.
    	start := time.Now()
    	timer := time.NewTimer(settleTime / 10)
    	defer timer.Stop()
    	// If the caller notified for all signals on c, filter out SIGURG,
    	// which is used for runtime preemption and can come at unpredictable times.
    	// General user code should filter out all unexpected signals instead of just
    	// SIGURG, but since os/signal is tightly coupled to the runtime it seems
    	// appropriate to be stricter here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/types_test.go

    				},
    			},
    			wantReasonMsg: "0/3 nodes are available: Node(s) failed PreFilter plugin FalsePreFilter.",
    		},
    		{
    			name:        "nodes failed Prefilter plugin and the preemption also failed",
    			numAllNodes: 3,
    			diagnosis: Diagnosis{
    				PreFilterMsg: "Node(s) failed PreFilter plugin FalsePreFilter",
    				NodeToStatusMap: NodeToStatusMap{
    					// They're inserted by the framework.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  7. src/runtime/chan.go

    	// src is on our stack, dst is a slot on another stack.
    
    	// Once we read sg.elem out of sg, it will no longer
    	// be updated if the destination's stack gets copied (shrunk).
    	// So make sure that no preemption points can happen between read & use.
    	dst := sg.elem
    	typeBitsBulkBarrier(t, uintptr(dst), uintptr(src), t.Size_)
    	// No need for cgo write barrier checks because dst is always
    	// Go memory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/mips/asm0.go

    }
    
    // isUnsafePoint returns whether p is an unsafe point.
    func (c *ctxt0) isUnsafePoint(p *obj.Prog) bool {
    	// If p explicitly uses REGTMP, it's unsafe to preempt, because the
    	// preemption sequence clobbers REGTMP.
    	return p.From.Reg == REGTMP || p.To.Reg == REGTMP || p.Reg == REGTMP
    }
    
    // isRestartable returns whether p is a multi-instruction sequence that,
    // if preempted, can be restarted.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 53.6K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/arm64/obj7.go

    	}
    	p.To.Type = obj.TYPE_REG
    	p.To.Reg = REGRT1
    
    	// Mark the stack bound check and morestack call async nonpreemptible.
    	// If we get preempted here, when resumed the preemption request is
    	// cleared, but we'll still call morestack, which will double the stack
    	// unnecessarily. See issue #35470.
    	p = c.ctxt.StartUnsafePoint(p, c.newprog)
    
    	q := (*obj.Prog)(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 05:46:32 UTC 2023
    - 28.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcarchive/carchive_test.go

    	t.Logf("%v\n%s", cmd.Args, sb)
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    // Issue 49288.
    func TestPreemption(t *testing.T) {
    	if runtime.Compiler == "gccgo" {
    		t.Skip("skipping asynchronous preemption test with gccgo")
    	}
    	globalSkip(t)
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-archive")
    
    	t.Parallel()
    
    	if !testWork {
    		defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
Back to top