From owner-freebsd-stable@FreeBSD.ORG Wed Jun 11 20:16:29 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 247DA789 for ; Wed, 11 Jun 2014 20:16:29 +0000 (UTC) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (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 EB8152119 for ; Wed, 11 Jun 2014 20:16:28 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id eu11so174399pac.39 for ; Wed, 11 Jun 2014 13:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ycombinator.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xbfQlKFyqTCH/gCxN9GFV6bQfFUFbrlRKfXJmGkOSDw=; b=F38GpFoPvQemC5/XjH+DZCQvYotS4zr8Fl53R1soOnPytiWwGIpfEmhPwIKVAtRtds WqK7cl/g5pLguL+lSQO7Y+IahNbPWsGqyL6sm2xpnqoVv9CSTDnRXwAja/Sx8p1+W5CW HpFnIvfMHikeM1OdFPJg/5Y0VFgojJdRAC7qU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=xbfQlKFyqTCH/gCxN9GFV6bQfFUFbrlRKfXJmGkOSDw=; b=gNoaTMFX/ii8cSeFvOsHaC1WoVRypgzEJAaFt4ADYN7MXswGdo21HncbIHYsauIcQu j68j2nQKF8KxpZUWwtsvjZ0EVn/RDmwIrAfbEFJcwQWGg5XUy5liIqbDCrQCfqo/1rvM IZSNH4IMCmZlE4o+Rfc3BP2a2kxHagmaDhm7MFpmFtO7aAhsj+H/agQFyC1Ko9EVEDau d28CPMAoC83M8OqjmfV/xiIc8TSp1M92OYeQHesP4c4CBnW6Q0GCPPbI7uKuOybgYUQa Uh+wypF/KcS1fBbdaKwo5QbpXR6/fG6Amz8CA+lfKIWaRGLwOnI4TL8ygCRXW35gdpgI 43vQ== X-Gm-Message-State: ALoCoQnN1Tp1v/oGzVFhoeh/j5i/dVQNzRmX91KqzM8dMnsBwPi4tyxtVLdJ6G4IwP+qwLwaxEqQ MIME-Version: 1.0 X-Received: by 10.66.228.37 with SMTP id sf5mr7350295pac.19.1402517788069; Wed, 11 Jun 2014 13:16:28 -0700 (PDT) Received: by 10.70.61.162 with HTTP; Wed, 11 Jun 2014 13:16:27 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Jun 2014 13:16:27 -0700 Message-ID: Subject: Re: dedicate the most available cpu cores to my application From: Nick Sivo To: Mahdi Dashtbozorgi Content-Type: text/plain; charset=UTF-8 Cc: 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 20:16:29 -0000 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've also tried it in rc.local, also without success. In my case I want everything on one or two cores so the reminder will enter C3 sleep and encourage Turbo Boost. Our application is limited to a single core and benefits greatly from the faster clock. -Nick On Wed, Jun 11, 2014 at 1:50 AM, Mahdi Dashtbozorgi wrote: > Hi, > > I want to dedicate the most cpu cores of my server to my application. > My server has 24 available cpu cores and I am using FreeBSD 10.0-RELEASE. > According to the following link: > https://forums.freebsd.org/viewtopic.php?&t=41012 > > I use the following commands to run my application: > #> cpuset -s 1 -l 0-1 > #> cpuset -c -l 2-23 myapp > > but after executing "cpuset -s 1 -l 0-1", I got the following error message: > cpuset: setaffinity: Resource deadlock avoided > > I even put the first command in /etc/rc.local, but still get the same error > message. > How can I find the process, which prevent this command from execution? > > Best Regards, > Mahdi. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"