Begin forwarded message:

Date: Tue, 5 Dec 2006 15:43:20 -0800
From: Ben Calvert <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: slow terminal on macppc


On Mon, 4 Dec 2006 19:59:00 -0800
"Bryan Irvine" <[EMAIL PROTECTED]> wrote:

> I'm running a test openldap server on an imac 333Mhz.  When I run
> things from the console it's really really slow, but when I'm in X
> things are a lot faster.  For example:  I just ran as a test (several
> times) the ldap command "time slapcat", which basically dumps the
> contents of the DB to the screen. When I run it in X it takes around
> 2.8 - 3 seconds, when run on the console without X it takes about 7.5
> minutes.
> 
> This is OK because most of my time on this thing will be in X, and my
> question is more of a curiosity than anything else.

look at /etc/ttys.  you'll notice the following:

ttyC0   "/usr/libexec/getty std.9600"   vt220   off  secure
ttyp0   none                            network


the 9600 is the speed that data gets written to your console ( ttyc0 ).
Notice that ttyp* (xterms, remote ssh sessions ) have no such
restriction?

ignoring interference from other processes, there is no difference in
how fast the program runs, only in how fast it writes the data to your
screen.  If the program is waiting for one write to finish before
commiting the next, it'll be slower, but if you ran the same program
and redirected the output to a file, you'd see no difference on the
console or an xterm.

I can think of several reasons why this is a good thing, but as this
list is populated by people who are a lot smarter than myself I won't
postulate as to the actual reason why it was decided to have the
console be slow.
> 
> 
> --Bryan
> 

Ben

-----
   The only skills I have the patience to learn are those that have no
real application in life.  -- Calvin


-----
   What's the point of wearing your favorite rocketship underpants if
nobody ever asks to see 'em?  -- Calvin

Reply via email to