From owner-freebsd-stable@FreeBSD.ORG Wed Jun 11 22:12:35 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93870B5B for ; Wed, 11 Jun 2014 22:12:35 +0000 (UTC) Received: from mail-qc0-x22c.google.com (mail-qc0-x22c.google.com [IPv6:2607:f8b0:400d:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 540EE2D56 for ; Wed, 11 Jun 2014 22:12:35 +0000 (UTC) Received: by mail-qc0-f172.google.com with SMTP id o8so678574qcw.31 for ; Wed, 11 Jun 2014 15:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6ojp9YcCmNt2WemnLTIhbxJ7Wn//yVSKHXTTILeX+8Y=; b=KzFqM7PZvutrBjIrgw8UOOSbmfroY5E1YrfrjooIgqfF7d3XGS3nEJD+Ma+kC67PI5 ymQflQVkMyP4QG9CKU7BYLWSdwtkHLWSNZcRFDhGS9MxyNgnEIctK6NbXx3Rw1RGFQLJ vS0UgMtVa882JiPI+Y9mtwp6YaK3hiEHNIY4/1VxwNY5pHjFxYBSRG5w2FHb56yQ77uO xfFR2vFuDO6vOy04MJ434AlBO+egB+oKgxAzxwgnrq66tIxaJyx8NkSCO6rBLFTfEXeq Mm9iF+ZjnzQFqVIR3agABnNi00OSEPGEI0lR4IzbvfGKPr1+yHaocvbgBERr4XvI50aG qlDQ== MIME-Version: 1.0 X-Received: by 10.224.79.198 with SMTP id q6mr26961675qak.99.1402524754466; Wed, 11 Jun 2014 15:12:34 -0700 (PDT) Received: by 10.96.73.39 with HTTP; Wed, 11 Jun 2014 15:12:34 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Jun 2014 15:12:34 -0700 Message-ID: Subject: Re: dedicate the most available cpu cores to my application From: hiren panchasara To: Nick Sivo Content-Type: text/plain; charset=UTF-8 Cc: Mahdi Dashtbozorgi , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 22:12:35 -0000 On Wed, Jun 11, 2014 at 2:15 PM, hiren panchasara wrote: > On Wed, Jun 11, 2014 at 1:16 PM, Nick Sivo wrote: >> I'd actually like to do the opposite of this, and have run into the >> same problem. >> >> cpuset -s 1 -l 0 >> cpuset: setaffinity: Resource deadlock avoided > > I see the same problem on -CURRENT. > > fwiw, a fix is being discussed and worked on: > http://lists.freebsd.org/pipermail/freebsd-hackers/2014-June/045292.html > > I am going to try and apply the proposed patch > https://phabric.freebsd.org/D141 to see how it behaves. Unified diffs from the review above: https://phabric.freebsd.org/file/data/zixvlbugtluzxbmfj72e/PHID-FILE-uxhuddcmyqfuscwvnxsv/D141.diff With this patch, sudo cpuset -s 1 -l 0-4 - worked. And I think it's doing the right thing by looking at top -PSH. cheers, Hiren