* Quake strangeness
@ 1996-11-05 0:48 Bernd
1996-11-06 10:17 ` Linus Torvalds
0 siblings, 1 reply; 5+ messages in thread
From: Bernd @ 1996-11-05 0:48 UTC (permalink / raw)
Hi there,
I got silly yesterday and _remotely_ started a copy of Quake on my
PC164, displaying on the Pentium. The two are connected with NE-2000
type cards (ISA in the ALPHA, PCI in the PC). I was fascinated to
find that in 320x200, I could still get 16fps out of it.....
Then, I got even sillier and started _another_ copy of Quake on the
ALPHA's local X-Server. And here the strange thing happened:
While the copy that had to send all its data to the Pentium reached
16fps, the local copy only reached about 6fps. According to top, they
both got equal CPU percentage; Also according to top (and vmstat), app.
half of the CPU-time was spent in system mode.
I can't seem to make sense of this --- why is the local copy so much
slower than the remote one? I tried running two local copies, and
they both get app. 20fps, which is as expected. I tried running two
local plus one remote copy, and the local ones became SLOOOOW again.
Is this a scheduler thing, where the remote Quake process gets scheduled
all the time due to network interrupts? But if so, why does top show all
copies getting equal CPU time?
I am thoroughly confused.....
Bernie
P.S.: Maybe it's a bus contention problem, with the PCI-ISA bridge having
higher priority than the PCI graphics card? Or could it be that there
is an ET6000 in the PC, but a Trio64 in the ALPHA?
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Quake strangeness
1996-11-05 0:48 Quake strangeness Bernd
@ 1996-11-06 10:17 ` Linus Torvalds
0 siblings, 0 replies; 5+ messages in thread
From: Linus Torvalds @ 1996-11-06 10:17 UTC (permalink / raw)
On Tue, 5 Nov 1996, Bernd Bernie Meyer wrote:
>
> Then, I got even sillier and started _another_ copy of Quake on the
> ALPHA's local X-Server. And here the strange thing happened:
>
> While the copy that had to send all its data to the Pentium reached
> 16fps, the local copy only reached about 6fps. According to top, they
> both got equal CPU percentage; Also according to top (and vmstat), app.
> half of the CPU-time was spent in system mode.
>
> I can't seem to make sense of this --- why is the local copy so much
> slower than the remote one? I tried running two local copies, and
> they both get app. 20fps, which is as expected. I tried running two
> local plus one remote copy, and the local ones became SLOOOOW again.
>
> Is this a scheduler thing, where the remote Quake process gets scheduled
> all the time due to network interrupts? But if so, why does top show all
> copies getting equal CPU time?
It's probably simply because the time-consuming part of quake is not so much
the actual drawing as the _calculations_ it is doing.
And with the remote copy, the load is a lot lower. With a local copy of
quake, the local load is pretty high, so the local quake binary has
trouble getting CPU for calculations, while the remote quake obviously
doesn't have that kind of performance problems..
Linus
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <Pine.LNX.3.91.961106121521.25094D-100000@linux.cs.Helsinki.FI>]
* Re: Quake strangeness
[not found] <Pine.LNX.3.91.961106121521.25094D-100000@linux.cs.Helsinki.FI>
@ 1996-11-06 10:33 ` Scott Manley
1996-11-06 14:16 ` Bernd
1 sibling, 0 replies; 5+ messages in thread
From: Scott Manley @ 1996-11-06 10:33 UTC (permalink / raw)
I had similar stange problems with other networked games, it does appear that
quake fights over the netwrok and kills the performance of other versions
doing the same thing
--
Scott Manley (aka Szyzyg) /------ _@/ Mail -----\
___ _ _ __ __ _ | Armagh Observatory |
/ __| __ ___| |_| |_ | \/ |__ _ _ _ | |___ _ _ | Armagh |
\__ \/ _/ _ \ _| _| | |\/| / _` | ' \| / -_) || | | Northern Ireland |
|___/\__\___/\__|\__| |_| |_\__,_|_||_|_\___|\_, | | BT61 9DG. |
http://star.arm.ac.uk/~spm/welcome.html |__/ \=====================/
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Quake strangeness
[not found] <Pine.LNX.3.91.961106121521.25094D-100000@linux.cs.Helsinki.FI>
1996-11-06 10:33 ` Scott Manley
@ 1996-11-06 14:16 ` Bernd
1 sibling, 0 replies; 5+ messages in thread
From: Bernd @ 1996-11-06 14:16 UTC (permalink / raw)
>> Then, I got even sillier and started _another_ copy of Quake on the
>> ALPHA's local X-Server. And here the strange thing happened:
>>
>> While the copy that had to send all its data to the Pentium reached
>> 16fps, the local copy only reached about 6fps. According to top, they
>> both got equal CPU percentage; Also according to top (and vmstat), app.
>> half of the CPU-time was spent in system mode.
>
>It's probably simply because the time-consuming part of quake is not so much
>the actual drawing as the _calculations_ it is doing.
Uhm, I probably didn't make this completely clear:
_Both_ copies of quake are running on the ALPHA, running the same
executable on the same CPU. They both have to calculate every single
pixel on the ALPHA.
_One_ copy (the one I referred to as "local") copies each frame into
the X buffer, presumably via shared memory. X is taking about 5%
CPU load for this. The other copy (the "remote" one) instead is
sending the whole frame through two NE2000 cards to the Pentiums
X server.
Bow, with both copies doing the same calculations, and the remote copy
having to fight with the ethernet bottleneck, I would expect the
local copy to run faster than the remote one. The opposite is the
case, the remote copy is 2.5 times faster (16fps vs 6fps).
Bernie
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Quake strangeness
@ 1996-11-06 11:05 Martin Ostermann
0 siblings, 0 replies; 5+ messages in thread
From: Martin Ostermann @ 1996-11-06 11:05 UTC (permalink / raw)
Linus Torvalds <torvalds@cs.Helsinki.FI> writes:
> On Tue, 5 Nov 1996, Bernd Bernie Meyer wrote:
> >
> > Then, I got even sillier and started _another_ copy of Quake on the
> > ALPHA's local X-Server. And here the strange thing happened:
> >
> > While the copy that had to send all its data to the Pentium reached
> > 16fps, the local copy only reached about 6fps. According to top, they
> > both got equal CPU percentage; Also according to top (and vmstat), app.
> > half of the CPU-time was spent in system mode.
> >
> > I can't seem to make sense of this --- why is the local copy so much
> > slower than the remote one? I tried running two local copies, and
> > they both get app. 20fps, which is as expected. I tried running two
> > local plus one remote copy, and the local ones became SLOOOOW
> again.
So, I understood this: Two copies of Quake on the Alpha, displaying
locally, get each 20fps. Of two copies of Quake on the Alpha, on
displaying locally, the other remotely, the first produces 6fps, the
later 16fps. Total frame rate thus is 22, vs 40 before.
So sending 16fps over lowers overall performance by 50%, vs displaying
it locally. This is the 50% spend on system time, which seems
a lot to me.
> > Is this a scheduler thing, where the remote Quake process gets scheduled
> > all the time due to network interrupts? But if so, why does top show all
> > copies getting equal CPU time?
>
> It's probably simply because the time-consuming part of quake is not so much
> the actual drawing as the _calculations_ it is doing.
Well actually the time consuming part seems to be to send the data over the
net. Probably sending anything at that rate (16fps*320*200 is
1MByte/s) costs 50% CPU time of anything calculated at the same time.
> And with the remote copy, the load is a lot lower. With a local copy of
> quake, the local load is pretty high, so the local quake binary has
> trouble getting CPU for calculations, while the remote quake obviously
> doesn't have that kind of performance problems..
Maybe the time spend in system mode should be isn't accounted
correctly to the process causing it?
Martin
--
Martin Ostermann | mailto:ost@comnets.rwth-aachen.de
Communication Networks | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany | faxto:++49/241/8890378
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-11-06 14:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-05 0:48 Quake strangeness Bernd
1996-11-06 10:17 ` Linus Torvalds
[not found] <Pine.LNX.3.91.961106121521.25094D-100000@linux.cs.Helsinki.FI>
1996-11-06 10:33 ` Scott Manley
1996-11-06 14:16 ` Bernd
-- strict thread matches above, loose matches on Subject: below --
1996-11-06 11:05 Martin Ostermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox