From owner-freebsd-current@FreeBSD.ORG Fri Nov 2 21:00:56 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 295917EA for ; Fri, 2 Nov 2012 21:00:56 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id E4EBA8FC0A for ; Fri, 2 Nov 2012 21:00:55 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi1so2889061pad.13 for ; Fri, 02 Nov 2012 14:00:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type:x-gm-message-state; bh=uWOvDz9M5XIZZr4wWGTiIX4oVf50gF8z9GRHf+83e9w=; b=W5jATP2nJbLsmFh7lM8u+x24N+q6JoLMttGpI3NuIGrCw/PGugJgI/dClO55aeuLLx BQDboco7C5/IG979+fvC7LFfKx4WjuSfC9l9UehFnV7aBQC47EFzoNrgiM0Gau+xTDap 8KfxcL+lDlej1MREUisOguGB4Ovm6xkjM0QxUrsIfaUwL3ET/fSr6FRr9OBlGEjDm1VL 4VAF2mtQf18LGZTsPBRc+RZmdGGA7E6wScbS8IYwESChsN+kC1pY2mmIS3hO3EvFhN6S qt1nZtBBHJbyuLkvOcwAVCMEtjSMYhza5BfPf0hB8kvl2NdSQbpwFlkvimgmeZjguqHo it4w== Received: by 10.68.230.135 with SMTP id sy7mr9711656pbc.76.1351890055322; Fri, 02 Nov 2012 14:00:55 -0700 (PDT) Received: from rrcs-66-91-135-210.west.biz.rr.com (rrcs-66-91-135-210.west.biz.rr.com. [66.91.135.210]) by mx.google.com with ESMTPS id gq10sm677821pbc.54.2012.11.02.14.00.54 (version=SSLv3 cipher=OTHER); Fri, 02 Nov 2012 14:00:54 -0700 (PDT) Date: Fri, 2 Nov 2012 10:59:33 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Eitan Adler Subject: Re: ULE patch, call for testers In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Gm-Message-State: ALoCoQkk8roOrYUZtTwKS24sAQ/w3WaiiwZ9JeY1cHwxvKCqkgs3GFJXJTbT3nBDOMwtukggjmpV Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2012 21:00:56 -0000 On Fri, 2 Nov 2012, Eitan Adler wrote: > On 2 November 2012 14:26, Jeff Roberson wrote: >> I have a small patch to the ULE scheduler that makes a fairly large change >> to the way timeshare threads are handled. >> >> http://people.freebsd.org/~jeff/schedslice.diff >> >> Previously ULE used a fixed slice size for all timeshare threads. Now it >> scales the slice size down based on load. This should reduce latency for >> timeshare threads as load increases. It is important to note that this does >> not impact interactive threads. But when a thread transitions to >> interactive from timeshare it should see some improvement. This happens >> when something like Xorg chews up a lot of CPU. >> >> If anyone has perf tests they'd like to run please report back. I have done >> a handful of validation. > > does it make sense to make these sysctls? > > +#define SCHED_SLICE_DEFAULT_DIVISOR 10 /* 100 ms. */ > +#define SCHED_SLICE_MIN_DIVISOR 4 /* DEFAULT/MIN = 25 ms. */ > DEFAULT_DIVISOR is indirectly through the sysctls that modify the slice. The min divisor could be. I will consider adding that. Thanks, Jeff > > -- > Eitan Adler >