Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Nov 1998 18:14:16 -0500 (EST)
From:      Brian Feldman <green@unixhelp.org>
To:        Alfred Perlstein <bright@hotjobs.com>
Cc:        Cory Kempf <ckempf@enigami.com>, freebsd-current@FreeBSD.ORG
Subject:   Re: bad time slicing? Priorities?
Message-ID:  <Pine.BSF.4.05.9811061813001.6415-100000@janus.syracuse.net>
In-Reply-To: <Pine.BSF.4.05.9811061159310.756-100000@porkfriedrice.ny.genx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Of course, noone would expect the kernel to spend all of that time in the
scheduler, so for it to be real-time, people would be wondering why their
CPU was at 40% when idle.

Brian

On Fri, 6 Nov 1998, Alfred Perlstein wrote:

> 
> On Fri, 6 Nov 1998, Brian Feldman wrote:
> 
> > You don't really understand the scheduling. Nice the xgalaga to 0 or -1,
> > and try again. Plus, rc5des is running on BOTH CPU's (FreeBSD splits it of
> > course and switches them around to have the best performance), FreeBSD is
> > not "magic".
> > 
> > Brian Feldman
> 
> More like the fact that for every screen update you have a context switch
> between the game and the X server several times a second, with 2 CPU
> hungry monsters in the background they are bound to steal cycles.  The
> granularity of the scheduler is for interactive typing (ie. at a terminal 
> you wouldn't notice the 2 rc5's), not hi-rez/fast context switching gfx
> games. It's something expected afaik.
> 
> -Alfred
> 
> 
> > 
> > On 6 Nov 1998, Cory Kempf wrote:
> > 
> > > I have a system running 3.0 SMP, with 2 333MHz PII's.
> > > 
> > > On this system, I am running two copies of the Bovine RSA client (rc5des)
> > > (essentially two endless CPU bound tasks, niced down to 19)
> > > 
> > > >From top:
> > >   PID USERNAME  PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND
> > > 23593 root      105  19   832K   344K RUN    0  23.4H 98.15% 98.15% rc5des
> > > 23726 root      105  19   832K   336K CPU1   0  22.7H 97.89% 97.89% rc5des
> > > 
> > > We are not swapping, or anything else obvious.
> > > 
> > > If I run xgalaga (a game), which is being run at nice=5 for some
> > > reason (not sure why, haven't looked into it),  It doesn't seem to be
> > > getting enough CPU time.
> > > 
> > > Play is jerky and slow.
> > > 
> > > This isn't what I expected.  Expecially with two CPUs to play with.
> > > The rc5des programs, should essentially not be running if higher
> > > priority things are waiting to run, right?  Certainly with two CPUs, I 
> > > would expect that the game would get time pretty much as soon as it
> > > was ready to run, while the other tasks would fight over what was
> > > left.
> > > 
> > > So, do I just not understand how BSD does its scheduling?  Or is there 
> > > actually something wrong?
> > > 
> > > Thanks,
> > > 
> > > +C
> > > 
> 
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811061813001.6415-100000>