From owner-freebsd-current@FreeBSD.ORG Sun Oct 11 23:20:50 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A35FA106568F for ; Sun, 11 Oct 2009 23:20:50 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by mx1.freebsd.org (Postfix) with ESMTP id 2D4FB8FC18 for ; Sun, 11 Oct 2009 23:20:49 +0000 (UTC) Received: by bwz23 with SMTP id 23so1636763bwz.43 for ; Sun, 11 Oct 2009 16:20:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=1rwIL9TDV6vDI4xzHwR0BZF105003jMqDjH2vA5GML0=; b=mQVVEKQgfcgOX3cIgxn2+tw/5tPv91VQQ9a4HeDAfhiZyO7EVuXkuSN4cXQR6jkx2u tkSriXOR7aTzPy+E/gE3OQfoimEAUy1dPPVvBjcJnoVqtWbFAc5lFL8W/yLuG203YPb3 RmLZ+unL7MFmTtQSaq0u5EdK9fjfeXkwGWkaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=o5IoJ5zysev2WwCjSbpnGLOcPp9OBt28mM95UDnNsXe7/E+eFODTYKS6D67VjgjQ3x U8NY88Pco7dJNvjVIIS2iTjX62XUjZg7QC2iW9vky6ZkZSF259WGLdwaBHAQNN/2uFyc pSElkAO1GE5N7O8RMHKu19G7lonF0G+LYrTrI= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.223.97.155 with SMTP id l27mr1367281fan.91.1255303248884; Sun, 11 Oct 2009 16:20:48 -0700 (PDT) In-Reply-To: <100658409950385d656fb5d8030af744.squirrel@webmail.lerctr.org> References: <6729ad0409e449f8dbda69ecd8feb618.squirrel@webmail.lerctr.org> <3bbf2fe10910111611p2f48d89cpa80350980f4f03e4@mail.gmail.com> <100658409950385d656fb5d8030af744.squirrel@webmail.lerctr.org> Date: Mon, 12 Oct 2009 01:20:48 +0200 X-Google-Sender-Auth: e0d85796f3383cc5 Message-ID: <3bbf2fe10910111620p3aa5d4cbgb5db2659d8477142@mail.gmail.com> From: Attilio Rao To: Larry Rosenman Content-Type: text/plain; charset=UTF-8 Cc: freebsd-current@freebsd.org Subject: Re: Scheduler weirdness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Oct 2009 23:20:50 -0000 2009/10/12 Larry Rosenman : > > On Sun, October 11, 2009 6:11 pm, Attilio Rao wrote: >> 2009/10/12 Larry Rosenman : >>> >>> Ok, running RELENG_8 from Friday (10/9/2009). >>> >>> If I have 4 Folding-at-home processes running (they nice themselves) the >>> system is slow as a dog. >>> >>> If I stop them, it's speedy. >>> >>> This is running SCHED_ULE >>> >>> is this expected? >>> >>> What can I do to help? >> >> Can you please produce the schedgraph output for this workload? >> Do you know how to setup it? > > I'm not familiar with this. What do I need to do? - Recompile your kernel with the following options: KTR KTR_COMPILE=(KTR_SCHED) KTR_MASK=(KTR_SCHED) KTR_ENTRIES=262144 - Run the buggy workload - When the slowness has been experienced a bit (a reasonable timeframe is within 10/20 secs) do: sysctl debug.ktr.mask=0 - do: ktrdump -ct > ktr.out - send here this file along with the number and frequency of your CPUs Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein