From owner-freebsd-stable@FreeBSD.ORG Wed Jun 11 08:50:48 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 406391F7 for ; Wed, 11 Jun 2014 08:50:48 +0000 (UTC) Received: from mail-qc0-x22f.google.com (mail-qc0-x22f.google.com [IPv6:2607:f8b0:400d:c01::22f]) (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 049E52B78 for ; Wed, 11 Jun 2014 08:50:47 +0000 (UTC) Received: by mail-qc0-f175.google.com with SMTP id i8so3924844qcq.34 for ; Wed, 11 Jun 2014 01:50:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bnh+TwdV0rLXGjOxmcUL5XE0hntfOfhWNTbRL/BstFM=; b=aOwTOlgCuUmztHVKHxx5IvyiEoENqwNTK8P2xkykwHpSL7T79WCM5hlagxIHutkWON rcT6UWkdkgn0QYDjRGSyIZREoirqMgwg39jCGXBKGb5nL/SNZ12lkqa4ejibC1xryR2Y 1ogEsrpsmUI/DPOmUCgKzlyC25rLeROlwUjnIW82y1AA3OZxoJ0JuSlHf3YRX8WNt+be aKEHDx4nEm/xWz4rIk2xbkuQ2HcG8tQJI8sIkzXsWR9tbhk+HgRJoC+iLEIZrQdOOTsS dCZYIouRp/ZQ1N4Lw6IBd1sqiHeQou+/6oiOMHVA735/hwwHJUIjtibc4B+UaV+ELG1j J6vg== MIME-Version: 1.0 X-Received: by 10.224.160.202 with SMTP id o10mr50198541qax.8.1402476647017; Wed, 11 Jun 2014 01:50:47 -0700 (PDT) Received: by 10.140.49.203 with HTTP; Wed, 11 Jun 2014 01:50:46 -0700 (PDT) Date: Wed, 11 Jun 2014 13:20:46 +0430 Message-ID: Subject: dedicate the most available cpu cores to my application From: Mahdi Dashtbozorgi To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 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 08:50:48 -0000 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.