Contributed by jose on from the performance dept.
"Ok. Here is the deal. I recently installed a copy of Red Hat 8.0 onto my workstation computer, simply for because I could. I was astonished to find out how much faster X Windows, as well as Red Hats bloated bluecurve desktop environment ran on my computer, as compared to how X Windows and fluxbox window manager ran when running OpenBSD."
"Mozilla ran faster, xmms played smoother, it was like two completly different worlds. Now, after feeling guilty about running RedHat on my workstation for more than a week, I am on a pursuit to find tips/hints and solutions to speed up OpenBSD for X Windows, and more generalized everyday web browsing/audio-video usuage. My question to the OBSD Journal viewers, is what tips and tricks does everyone use and implement to make OBSD work better on the desktop?Personally, I haven't had any troubles getting my OpenBSD laptops to run smoothly, but I'm not pushing the limits (or maybe I just don't know any better). Any advice from the community on this one?For the record, my workstation computer is:
MSI KT3 Ultra Mobo
AMD XP 1800+
256 Megs DDR333 RAM
Maxtor 7200 RPM 30 GIG UDMA133
Nvidia TNT2 M64 32 Meg AGP 4X
Sound Blaster Live! X-Gamer"
(Comments are closed)
By Geek Assault () geekassault@planetinternet.be on mailto:geekassault@planetinternet.be
But there's a complete FAQ entry about performance. Maybe you can check that.
Comments
By aki () on
3.2 --> gcc 2.9.5.x
By jolan () on
As for xmms, the linux sblive driver is a bit better and also does not use sun audio output. (Ever noticed how xmms segfaults if you try to play audio while the card is in use? :))
I have similar hardware to yours:
MSI KT3 Ultra Mobo
AMD XP 1500+
512 MB DDR266 RAM
Maxtor 7200 RPM 30 GIG UDMA100
Nvidia Geforce2 MX/400 64MB
Sound Blaster Live! Value
I've never run Linux on my system, but I did notice a bit of difference when I tried FreeBSD & NetBSD. I attributed it (at least partially) to UBC and then put OpenBSD back on my system. I'm not really sure what kind of tips/tricks there are specifically for enhancing X performance.
You might want to try the UBC branch.
By Anonymous Coward () on
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
By Grumpy Grammar () on
During informal discussions like this, it is customary to refer to such technology in a more informal way.
"XWindows" or "X Windows" is understood by most, if not all, of the readers here.
Comments
By Anonymous Coward () on
- do you think "X Window" or "X Window System" would not have been understood my most readers?
- it has a reason it is not called "X Windows". It is not just fun, or law, or whatever. It is so that people don't believe it has much to do with the best known Windows - Microsoft Windows (probably not many of the readers would have thought that anyway, still I think one should try to use the correct terms - even for informal discussion)
I do not want to say it is that important and I do not want to seem like Richard Stallman with his Linux vs. GNU/Linux paranoia (if you allow me to bring this example) - it simply came to my mind and since I could not contribute in any other way I thought I could point that out.
Regards
AC
By Anonymous Coward () on
Comments
By BSD fan () on
BTW, it might have to do with the fact that Red Hat 8 is compiled with GCC 3.1 which creates fast output.
Comments
By Anonymous Coward () on
one, when i'm hungover on sundays my concept of speed is a lot different than in the middle of the week.
two, with benchmarks we know what part of the system is actually causing problems, whether it be disk, memory, network, X, etc. in this case perhaps file system differences, network drivers, X drivers, could be different between the platforms.
this guy comes asking for help, how can we w/o some factual evidence? w/ benchmarks we can say, oh your network is slow, that nic has performance problems in OpenBSD, etc etc. instead ppl are shooting into the dark w/ softdep hints and Nvidia driver hints, and gcc differences. if this guy goes and tries the hints, they dont work, he gets discouraged, all b/c we couldnt appropriately troubleshoot since we dont have good benchmarks.
BTW lurn spalling and grammer if you're going to insult, ok?
By Shane J Pearson () on
Benchmarks can be good to pinpoint where a system needs to be tweaked.
For him that is fact, and instead of being an disbeliefed asshole
Configuration options can often make much bigger differences than more efficient code.
DMA vs PIO.
AGP 1x vs AGP 4x.
process priorities.
correct driver usage (eg. frame buffer vs accelerated).
interleaved filesystems and swap across multiple disks.
creative use of mfs.
well thought out partitioning schemes.
softupdates.
increased cache size settings.
A benchmark could also pinpoint a slow driver, leading to a better driver.
By BSD Fanless () on
By Mr Stopwatch () on
md5 -t
sha1 -t
openssl speed
X performance
x11perf
x11perfcomp
then, as long as the SAME benchmark is available in Linux, you have an apples to apples comparison. I don't use Linux, so I don't know about the -t tests, but I would hope that x11perf would be included.
And as said elsewhere, security comes first, but performance increases without harming the rock-solid stability or security would be good.
By Anonymous Coward () on
enable the ftp server on one OpenBSD test box
ftp from your test box, with some files that take at least 12 seconds.
ftp> get junk /dev/null (eliminates disk i/o on one side)
the ftp client gives great rates, while on a windows client it is :
ftp> get junk nul ( to eliminate the disk i/o on the receiver side.)
of course ttcp (in ports) rocks for pure network bandwidth testing.
using ftp is a simple way to check for duplex mismatches. when you can ftp a file one direction and get 3Megabytes/sec and the other direction gets 50K Bytes/sec, you know to look right away at the duplex settings, either setting them to auto-negotiate, or hard coding, depending on the NIC and switch.
By RC () on
Perhaps you run a lot of memory-intensive applications and you have swap-encrypt enabled? Maybe you haven't enabled soft-updates?
And let's not even discuss Mozilla. For one thing, Mozilla only (barely) works on OpenBSD when statically compiled. AFAIK, it does not work on OBSD if you enable optomizations. Mozilla is not exactly cross-platform, so on FreeBSD, Mozila 1.0 used up more than 1/3 the resources as the Linux version; perhaps little effort has gone into optomizing Mozilla on OpenBSD. Another issue is the developing status of Mozilla. The speed improvements have been significant as of every release since 1.0. Perhaps you are using a slightly older version on OpenBSD than Linux.
Comments
By RC () on
on FreeBSD, Mozila 1.0 used up more than 3 times the resources as the Linux version
Comments
By Anonymous Coward () on
By Anonymous Coward () on
Comments
By Anonymous Coward () on
By RC () on
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
I find Phoenix is a hair faster than IE, and WAY faster then Moz. I find that Phoenix & Moz use just about the same resources. All on 2000. YMMV.
By Anonymous Coward () on
On the numerous systems I've run it on, OpenBSD has been significantly slower than FreeBSD or any flavor of Linux... ALWAYS...
OpenBSD's good for security, but it has a long, long way to go to be at the head of the performance pack...
By Anonymous Coward () on
Or it could be some sort of misconfiguration. Maybe an overflowing /var partition, that sort of thing.
By Marten () on
And really, mozilla isn't even remotely fair to use a benchmark. It's miracle to even get working never mind actually benchmarking on openbsd.
By Josh () selerius@codefusion.org on http://www.codefusion.org
By tedu () on
another tip:
renice xmms to -4 or something. Or use another player. xmms uses threads, which probably aren't as smoothly implemented on OpenBSD. I've certainly seen xmms spew messages about failed thread assertions from time to time when I close it on OpenBSD. But reniceing it slightly will ensure it doesn't skip as much.
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
Not a single skip to be heard... load avg peaking to about 4 now, <2% idle cpu time, but still everything goes smooth; mouse is responsive, apps respond without delay, apart from my hdd-led flickering like hell, I wouldn't notice I'm putting quite some load on this machine ;)
I'm very satisfied with OpenBSD's desktop performance. True, KDE isn't that smooth, but I doubt that's OpenBSD's fault; KDE is just a hog. I rather have less eye-candy and more speed :) (eg. blackbox)2%>
By hettb () htb@subdimension.com on mailto:htb@subdimension.com
Let me tell you: BSD is dying! And OpenBSD is already dead and decaying. Keep that RedHat installation, or even better, install Windows XP. Just my $0.02.
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
By Casey Jones () cajones@datafast.net.au on mailto:cajones@datafast.net.au
What do you use open BSD for as say compared to XP or Win9x in general.
The BSD's in my opinion excell in server roles but if you want to play the latest and "greatest! games as everyone will ask me when I find them a second hand computer. win9x will win in that aspect I think the free gnu community forget that not everyone wants to run a web sever or email server. "Fuck if they could only port a version of OSX to an Intel platform". I can't afford $4000
for a version of unix. I'd drop the Microsoft global policy altogether.
By Gill Bates () on
My preference to using XP, is masturbating with a handful of rusty razorblades.
It's less painful and you have to give less blood.
By Ow! My Sperm! () on
I've heard of a registry hack that allows you to get by with just a circumcision, but you run the danger of a complete penectomy on every reinstall.
Since a reinstall is probably necessary once every 2-3 months or so, most big-dick business folks are staying well-clear of Windows XP. Not to mention these folks will want to play by the book, and will have to choose an IT guy to have their penis removed. Talk about drawing the short straw!
For this exact reason, XP is just not entprise-ready.
By Anonymous Coward () on
By Anonymous Coward () on
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
By Anonymous Coward () on
Comments
By Anonymous Coward () on
By OpenBSD is DEAD () imdead@openbsd.org.invalid on http://www.openbsd.org/is_dead
By Steven () on
Btw, remember to have your troll spade or neutered.
By Anonymous Coward () on
":0 local /usr/bin/nice -n -4 /usr/X11R6/bin/X vt05"
I think it makes X slightly faster.
Comments
By Anonymous Coward () on
Comments
By Dude! () on
By Anonymous Coward () on
Don't use a screwdriver to drive in a nail.
If you really want to persist, much of Redhat's responsiveness is likely due to its gcc-3.2 i686 optimised libc and kernel as well as their recent change to HZ=1000.
I'd love to see HZ bumped up for OpenBSD, but just sticking this in my kconfig causes panics in the fxp driver.
Comments
By Anonymous Coward () on
Comments
By Anonymous Coward () on
Comments
By Bogomips! () on
By Anonymous Coward () on
By Anonymous Coward () on
Ahmen. OpenBSD is a great server OS for infrastructure, and it is a nice clean OS for writing C code on. (Pretty much the same with FreeBSD, but OpenBSD is cleaner.) Use RH or XP or whatever on the desktop, even OpenBSD. But I feel a lot more comfortable using OpenBSd in my infrastructure...
By Marten () on
And really, mozilla isn't even remotely fair to use a benchmark. It's miracle to even get working never mind actually benchmarking on openbsd.
By Anonymous Coward () on
Comments
By Ray () rayl@spamcop.net on http://ray.cyth.net
By Drewshkin () andrew@fabbro.org on mailto:andrew@fabbro.org
By Anonymous Coward () on
Having now installed Gentoo I was completely blown away by the speed difference. The machine is a Celeron 450 with 192 RAM, running kde3 on OBSD was sluggish as hell even with all the eye candy turned off. With Gentoo running kde3.1rc2 with some eye candy turned on it's not fast but suprisably usable. This probably has to do with using gcc3.2, everything compiled with optimizations and kernel patches. But it is a huge speed difference I can tell you. Probably RH8 is now using gcc3.x and some kernel patches to improve the desktop experience?
By Josh () selerius@codefusion.org on http://www.codefusion.org
I will let everyone know how it goes once X is up and working..
By In-a-godda-da-vita () on
We have a bunch of generic PII-450's in our lab that we use to boot a various number of operating systems (with removable drives).
One thing _we_ noticed was how dog-slow a default install of RH 8.0 was against a default install FreeBSD 4.4.x on the identical hardware (even the [reformatted] drive is the same model).
Haven't tried OBSD on any of them, though we use it pretty heavily as mail server, spam filter, internal DNS &etc. No X on these boxes, though.
I've actually never installed X or the X libs on an OBSD box. It's only a server/edge box to me. I got a fancy-pants Linux box and my Mac for a GUI. OpenBSD squeezes a lot of performance out of a Pentium-133 with 80 Mb of memory!
By Anonymous Coward () on
If you really want to squeeze every last bit or performance out of open or any bsd. Remember, the x86 binaries are built using i386, who actually uses a 386 anymore? Try rebuilding from source with some basic optimizations like "-0 march=i686 -pipe". Also rebuild X from source, if you want to really push it you can try to build X using -02 or even -03. Trust me, just by building X with a pentiumpro march (i686) it will load about 25-35 percent faster. I've done this on every installation of net,free, and openbsd I've made, and yes I did take notes on times.
Another thing to try if you have a lot of memory, is to tweak the "option BUFCACHEPERCENT=x" option when you build your kernel. I set this to 40 on my home machine which is running netbsd 1.6 and has 512mb memory. This does make a nice difference in the system's file read/write times.
I do agree though that gcc 3.2 offers a very nice performance advantage esp. to c++ code. Whether this is worth it in the real world is yet to be determined, as 3.2 is still very much experimental as far as I am concerned. Also i beleive redhat employs their own hacked/tweaked version of gcc which does have its own share of shortcomings.
Good luck!