From owner-freebsd-current@FreeBSD.ORG Sat Jun 30 17:06:44 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E8BB716A400 for ; Sat, 30 Jun 2007 17:06:43 +0000 (UTC) (envelope-from astrodog@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id A744D13C45D for ; Sat, 30 Jun 2007 17:06:43 +0000 (UTC) (envelope-from astrodog@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so399094wxd for ; Sat, 30 Jun 2007 10:06:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=a5PgKlOcxgwyUfNaeUW2gXylMMLnr/nAae11IdcbZmrmVCP/OSnataehBwZyhS7RLJRD1yHG7VtKSo0b+erOHyvV/55gxdJAiKP02L57dLDpKNmgTgclujwsADWucnHg9Xjx68RU7MkkDgkS55fWW0xkC7+NfXK8rl8puMgdtEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ry6r1irObyUD07FR18w+y1+y1xzLy3t/A2vmi3hqZWru5Lj8E67Bzgf1W2w/TU3Kzn2ZC7H58rg37bjFTCfHM2r2f8Sq+8Wr+XhlMUmYlvGB3zN4g69FLIoj8EzkpSovBKK3ciKRx2XS+ErKWlNCNDRBbAutEO25Kpr07HDuEDQ= Received: by 10.90.63.16 with SMTP id l16mr4107242aga.1183221697300; Sat, 30 Jun 2007 09:41:37 -0700 (PDT) Received: by 10.90.116.7 with HTTP; Sat, 30 Jun 2007 09:41:37 -0700 (PDT) Message-ID: <2fd864e0706300941q2767f6f0v539b7f3ad78e4817@mail.gmail.com> Date: Sat, 30 Jun 2007 16:41:37 +0000 From: Astrodog To: current@freebsd.org In-Reply-To: <20070630085038.GA1473@roadrunner.q.local> MIME-Version: 1.0 References: <20070630085038.GA1473@roadrunner.q.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: SCHED_4BSD: More than 1 process running on UP machine? 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: Sat, 30 Jun 2007 17:06:44 -0000 On 6/30/07, Ulrich Spoerlein wrote: > > Hi all, > > I upgraded to -CURRENT and am running with SCHED_BSD on an UP machine > (where ULE has no advantage over BSD, right?) > > Anyway, I never noticed top(1) under 6.x reporting more than 1 running > process, which is only natural, considering this is an UP machine. Under > 7.x however, top(1) reports up to 7-8 running processes, depending on > how much stuff is going on. > > Is top(1) lying, or is/was my assumption about UP wrong all along? Keep in mind, technically speaking, on a UP system, when top refreshes.... its the only running process, and its using 100% of the CPU. ;) top/uptime/etc all use a small period of time, I believe, and under UP, the maximum number of running processes under top would be topsampletime / min_slice - 1. A process waiting in the run queue is reported as "running" as well, as I recall, in which case the number of "running" processes under top would be, at most, the maximum size of the run queue. Hopefully this is helpful (and correct), I haven't looked inside top in quite awhile. --- Harrison Cheers, > Ulrich Spoerlein > > PS: whats the new state 'ucond' all about? > -- > "The trouble with the dictionary is you have to know how the word is > spelled before you can look it up to see how it is spelled." > -- Will Cuppy > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >