From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 12:01:48 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 365EED2B for ; Wed, 10 Dec 2014 12:01:48 +0000 (UTC) Received: from ipmail05.adl6.internode.on.net (ipmail05.adl6.internode.on.net [150.101.137.143]) by mx1.freebsd.org (Postfix) with ESMTP id C2D1774A for ; Wed, 10 Dec 2014 12:01:47 +0000 (UTC) Received: from ppp14-2-30-215.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.30.215]) by ipmail05.adl6.internode.on.net with ESMTP; 10 Dec 2014 22:26:36 +1030 Message-ID: <548834F2.2080607@ShaneWare.Biz> Date: Wed, 10 Dec 2014 22:26:34 +1030 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: s m , freebsd-questions Subject: Re: top- what negative priority means? References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2014 12:01:48 -0000 On 10/12/2014 19:15, s m wrote: > hello everybody > > i have problem with my FreeBSD9.2. my ssh connection becomes down after > some minutes. i check top and see that sshd daemon is locked and has > priority -100. > > 14610 root 1 -100 0 74196K 5860K *Linux 2 0:05 0.00% sshd I wouldn't expect to see "*Linux" - that column is the state which is normally something like uwait, select, kqread, zio, CPU0, CPU1.... > what priority -100 means? i googled a lot but found nothing. > The PRI column is the scheduling priority, an indication of what gets cpu time first, high numbers mean use cpu when no-one else is using it, negative numbers indicate get all the the cpu time you need. See man nice - the NICE value is a user specified priority in the range of 20 to -20 (limits are actually documented in man renice) while the PRI value is the kernel assigned priority value. I only guess that the kernel uses priority values greater than the 20 to -20 range used by nice. -- FreeBSD - the place to B...Software Developing Shane Ambler