Date: Sat, 30 Jun 2007 16:41:37 +0000 From: Astrodog <astrodog@gmail.com> To: current@freebsd.org Subject: Re: SCHED_4BSD: More than 1 process running on UP machine? Message-ID: <2fd864e0706300941q2767f6f0v539b7f3ad78e4817@mail.gmail.com> In-Reply-To: <20070630085038.GA1473@roadrunner.q.local> References: <20070630085038.GA1473@roadrunner.q.local>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/30/07, Ulrich Spoerlein <uspoerlein@gmail.com> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2fd864e0706300941q2767f6f0v539b7f3ad78e4817>