Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,116 for fairness (0.39 sec)

  1. src/runtime/testdata/testprog/gc.go

    package main
    
    import (
    	"fmt"
    	"math"
    	"os"
    	"runtime"
    	"runtime/debug"
    	"runtime/metrics"
    	"sync"
    	"sync/atomic"
    	"time"
    	"unsafe"
    )
    
    func init() {
    	register("GCFairness", GCFairness)
    	register("GCFairness2", GCFairness2)
    	register("GCSys", GCSys)
    	register("GCPhys", GCPhys)
    	register("DeferLiveness", DeferLiveness)
    	register("GCZombie", GCZombie)
    	register("GCMemoryLimit", GCMemoryLimit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  2. src/internal/coverage/cfile/emitdata_test.go

    	}
    }
    
    // buildHarness builds the helper program "harness.exe".
    func buildHarness(t *testing.T, dir string, opts []string) string {
    	harnessPath := filepath.Join(dir, "harness.exe")
    	harnessSrc := filepath.Join("testdata", "harness.go")
    	args := []string{"build", "-o", harnessPath}
    	args = append(args, opts...)
    	args = append(args, harnessSrc)
    	//t.Logf("harness build: go %+v\n", args)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  3. pkg/volume/flexvolume/attacher_test.go

    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"testing"
    	"time"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/kubernetes/pkg/volume"
    	"k8s.io/kubernetes/test/utils/harness"
    )
    
    func TestAttach(tt *testing.T) {
    	t := harness.For(tt)
    	defer t.Close()
    
    	spec := fakeVolumeSpec()
    
    	plugin, _ := testPlugin(t)
    	plugin.runner = fakeRunner(
    		assertDriverCall(t, notSupportedOutput(), attachCmd,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 03 23:29:42 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  4. pkg/volume/flexvolume/plugin_test.go

    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"testing"
    
    	"k8s.io/kubernetes/test/utils/harness"
    	"k8s.io/utils/exec/testing"
    )
    
    func TestInit(tt *testing.T) {
    	t := harness.For(tt)
    	defer t.Close()
    
    	plugin, _ := testPlugin(t)
    	plugin.runner = fakeRunner(
    		assertDriverCall(t, successOutput(), "init"),
    	)
    	plugin.Init(plugin.host)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 21 06:54:44 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  5. CHANGELOG/CHANGELOG-1.14.md

    ### Scheduling
    
    - Improved fairness of the scheduling queue by placing pods which are attempted recently behind other pods with the same priority. ([#73700](https://github.com/kubernetes/kubernetes/pull/73700), [@denkensk](https://github.com/denkensk))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 14 22:06:39 UTC 2021
    - 271.5K bytes
    - Viewed (0)
  6. pkg/volume/flexvolume/common_test.go

    	goruntime "runtime"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/kubernetes/pkg/volume"
    	volumetesting "k8s.io/kubernetes/pkg/volume/testing"
    	"k8s.io/kubernetes/test/utils/harness"
    	"k8s.io/utils/exec"
    	exectesting "k8s.io/utils/exec/testing"
    )
    
    func testPlugin(h *harness.Harness) (*flexVolumeAttachablePlugin, string) {
    	rootDir := h.TempDir("", "flexvolume_test")
    	return &flexVolumeAttachablePlugin{
    		flexVolumePlugin: &flexVolumePlugin{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  7. pkg/volume/flexvolume/detacher_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"testing"
    
    	"k8s.io/kubernetes/test/utils/harness"
    )
    
    func TestDetach(tt *testing.T) {
    	t := harness.For(tt)
    	defer t.Close()
    
    	plugin, _ := testPlugin(t)
    	plugin.runner = fakeRunner(
    		assertDriverCall(t, notSupportedOutput(), detachCmd,
    			"sdx", "localhost"),
    	)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 08 22:44:05 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  8. src/runtime/proc.go

    		gp, tnow := gcController.findRunnableGCWorker(pp, now)
    		if gp != nil {
    			return gp, false, true
    		}
    		now = tnow
    	}
    
    	// Check the global runnable queue once in a while to ensure fairness.
    	// Otherwise two goroutines can completely occupy the local runqueue
    	// by constantly respawning each other.
    	if pp.schedtick%61 == 0 && sched.runqsize > 0 {
    		lock(&sched.lock)
    		gp := globrunqget(pp, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  9. pkg/volume/flexvolume/unmounter_test.go

    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"testing"
    
    	"k8s.io/mount-utils"
    
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/kubernetes/test/utils/harness"
    )
    
    func TestTearDownAt(tt *testing.T) {
    	t := harness.For(tt)
    	defer t.Close()
    
    	mounter := mount.NewFakeMounter(nil)
    
    	plugin, rootDir := testPlugin(t)
    	plugin.runner = fakeRunner(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  10. pkg/volume/flexvolume/mounter_test.go

    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/kubernetes/pkg/volume"
    	"k8s.io/kubernetes/test/utils/harness"
    )
    
    func TestSetUpAt(tt *testing.T) {
    	t := harness.For(tt)
    	defer t.Close()
    
    	spec := fakeVolumeSpec()
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "my-pod",
    			Namespace: "my-ns",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 2.3K bytes
    - Viewed (0)
Back to top