Re: OpenBSD speed on desktops

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: R. Fumione <fumione@...>
Cc: <misc@...>
Date: Saturday, February 17, 2007 - 5:06 pm

On Sat, Feb 17, 2007 at 12:36:00PM -0500, R. Fumione wrote:

I believe the standard response to any comparison "use Linux if you're
happy with it". Since you've already received that, here is an attempt
to do the question a little more justice. (However, it boils down to 'it
doesn't matter if FF loads a little slower, as long as it runs equally
fast').

Most modern Linux distributions optimize dynamic library load using
prelinking; 4.0 and later have a comparable idea implemented
('prebind'), but in a way that does not interfere with OpenBSD's
security features. This is not enabled by default (I'm not sure why not,
and would be very grateful if anybody would tell me, BTW), but can be
enabled using `ldconfig -P /usr/bin /usr/sbin /usr/local/bin
/usr/local/sbin /usr/X11R6/bin'. This should result in a noticeable
speed increase, especially on programs with lots of loaded libraries -
and look in /usr/local/mozilla-firefox to see that FF does have 'lots of
loaded libraries'!
Of course, it would be a good idea to know why it's not the default
first. Also note that, if I remember correctly, prebind won't help if
you use a nonstandard LD_LIBRARY_PATH, as FF does... so the command
listed before is likely to work for just about every *other* program.

Another aspect is that Linux is much more aggressive in caching data
from disk; if the amount of data read, the amount of work done in
between, and the amount of RAM is such that Linux can get most data from
its memory cache while OpenBSD has to read most of it from disk, Linux
will be a *lot* faster. Of course, you would only see this effect if you
started Firefox twice without doing much in between.

Both of those could explain why FF loads slower. If either of those is
the big culprit, though, FF should run just as fast (slow) as it ever
did, and since you're not likely to start it that often, I'd be inclined
to say it isn't that big an issue.

If a comparable slowdown is found in running FF, that would be a
problem. There are many variables there, of course... a dmesg might be
helpful, for instance.

Aggressive compiler optimizations are not generally a good idea. The
developers believe they are an unnecessary source of bugs, and since
many optimizations are not enabled by default, there is not quite as
much opportunity to find bugs in them. Plus, no amount of fiddling is
likely to double speed.

Since you didn't mention what you are using at the moment, I can't very
well tell you to switch to a lighter window manager, can I? Ion *is*
nice, though... ;-)

Joachim

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
OpenBSD speed on desktops, R. Fumione, (Sat Feb 17, 1:36 pm)
Re: OpenBSD speed on desktops, Karel Kulhavy, (Mon Mar 19, 8:48 am)
Re: OpenBSD speed on desktops, Marco Peereboom, (Mon Mar 19, 10:03 am)
Re: OpenBSD speed on desktops, Timo Schoeler, (Mon Mar 19, 9:48 am)
Re: OpenBSD speed on desktops, Claudio Jeker, (Mon Mar 19, 9:32 am)
Re: OpenBSD speed on desktops, Manuel Ravasio, (Mon Mar 19, 10:47 am)
Re: OpenBSD speed on desktops, Timo Schoeler, (Mon Mar 19, 1:38 pm)
Re: OpenBSD speed on desktops, RedShift, (Mon Mar 19, 10:41 am)
Re: OpenBSD speed on desktops, Marco Peereboom, (Mon Mar 19, 11:40 am)
Re: OpenBSD speed on desktops, RedShift, (Mon Mar 19, 12:31 pm)
Re: OpenBSD speed on desktops, Marco Peereboom, (Mon Mar 19, 5:26 pm)
Re: OpenBSD speed on desktops, RW, (Mon Mar 19, 8:42 pm)
Re: OpenBSD speed on desktops, Open Phugu, (Mon Mar 19, 9:30 am)
Re: OpenBSD speed on desktops, Jon Drews, (Sun Feb 18, 2:17 pm)
Re: OpenBSD speed on desktops, Joachim Schipper, (Sat Feb 17, 5:06 pm)
Re: OpenBSD speed on desktops, Karel Kulhavy, (Mon Mar 19, 8:53 am)
Re: OpenBSD speed on desktops, Artur Grabowski, (Mon Mar 19, 11:04 am)
Re: OpenBSD speed on desktops, Darrin Chandler, (Mon Mar 19, 10:23 am)
Re: OpenBSD speed on desktops, Karel Kulhavy, (Mon Mar 19, 11:19 am)
Re: OpenBSD speed on desktops, Darrin Chandler, (Mon Mar 19, 3:10 pm)
Re: OpenBSD speed on desktops, Nick !, (Mon Mar 19, 2:55 pm)
Re: OpenBSD speed on desktops, Karel Kulhavy, (Mon Mar 19, 11:06 am)
Re: OpenBSD speed on desktops, Artur Grabowski, (Mon Mar 19, 12:43 pm)
Re: OpenBSD speed on desktops, Timo Schoeler, (Mon Mar 19, 9:54 am)
Re: OpenBSD speed on desktops, Jacob Yocom-Piatt, (Sun Feb 18, 12:12 pm)
Re: OpenBSD speed on desktops, Nick Nauwelaerts, (Sun Feb 18, 7:02 am)
Re: OpenBSD speed on desktops , Theo de Raadt, (Sun Feb 18, 1:03 pm)
Re: OpenBSD speed on desktops, Nick Nauwelaerts, (Sun Feb 18, 1:55 pm)
Re: OpenBSD speed on desktops , Theo de Raadt, (Sun Feb 18, 2:18 pm)
Re: OpenBSD speed on desktops , Theo de Raadt, (Sat Feb 17, 8:09 pm)
Re: OpenBSD speed on desktops, Joachim Schipper, (Sat Feb 17, 9:04 pm)
Re: OpenBSD speed on desktops, Jeff Rollin, (Sat Feb 17, 5:14 pm)
Re: OpenBSD speed on desktops, Jeff Quast, (Sat Feb 17, 2:18 pm)