Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

How do i get the best performance?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
Elim
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 100
Joined: Thu Aug 05, 2004 7:57 am
Location: Here, there and everywhere. Mostly in the EU

How do i get the best performance?

  • Quote

Post by Elim » Sun Jun 19, 2005 8:32 pm

I am going to take it upon myself to build a system which is spacifically taliored to gaming. This means i want the fastest system possible with the maxiumum ammount of resources to be free. Does anyone know which kernel is the fast as far as online gaming is concirned so far i have found the 2.6.12 to be very fast indeed and i will recompile it without unnessisary drivers to make it even faster.
Is there a way of getting xorg to use less resources when i get into fluxbox i usually have about 128mb of my ram taken and inspection shows that about 100mb is by the xserver. I know xorg has some 'eye candy' features which bloat it's size and is there a way to reduce the bloat?
Im not interested in compiler optimisations but has anyone got any ideas how i can maximise my performance?

P.s turning of kernel preempting has made my system run faster and it no longer crashes i don't know whether this is due to the 2.6.12-mm release over the 2.6.11 r9 gentoo kernel but its alot more stable and faster.
Windows is great, for filling my waste bin. Linux is great but its not working on my toaster (yet)
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

Re: How do i get the best performance?

  • Quote

Post by i92guboj » Mon Jun 20, 2005 12:24 am

Elim wrote:Does anyone know which kernel is the fast as far as online gaming is concirned so far i have found the 2.6.12 to be very fast indeed and i will recompile it without unnessisary drivers to make it even faster.
Use vanilla sources if you don't need any exotic hardware feature. Then activate the cfq scheduler, if is far better when it comes to interactivity. All the rest of heavy patched kernels are (IMO) unstable, and they are all based on the vanilla sources, the only difference is that they add loads of patches to put into the kernel things like reiser4 and swsusp2, which will only cause troubles.

If you are using the box for games then I would recommend you to use a elaborated filesystem scheme. That will improve the cpu performance in an high percentage (though, most people seems not to want to make aware of this). The less cpu that the filesystem write/read need, the most cpu you will have available for really important operations, like drawing zillions of polygons and animate heavy 3d models.

For the root (/) I would encourage you to use xfs or ext3. You can use ext2 for /var, /boot, /usr/src and /usr/portage (the lowest cpu usage and the faster filesystem, since it does not use journalling). And maybe ext3 (the more trustable fs IMO) for /home.
Elim wrote:Is there a way of getting xorg to use less resources when i get into fluxbox i usually have about 128mb of my ram taken and inspection shows that about 100mb is by the xserver. I know xorg has some 'eye candy' features which bloat it's size and is there a way to reduce the bloat?
The only thing that you can make to optimize a bit this big X thing is to make sure that you haven't enabled the Xcomposite extension. For the rest, just install only the fonts that you are going to need, and you should be fine.

Don't trust the monitoring programs when they tell you about the mem comsumption, since most of the memory that they report as used is usually buffered, which means the it has been allocated to be used as buffer if necesary, but it is basically free memory, that can be used by any program. So if you dont start any heavy stuff nor any desklets or any other thing like that you should be fine, in which is memory related.
Elim wrote: Im not interested in compiler optimisations but has anyone got any ideas how i can maximise my performance?
At last, someone who thinks for himself. Really that compilation "improvements" are kinda useless. IMO (again) only a developer can choose with some chance of being correct which cflags are correct for his/her program. Most "optimizations" are just spending time in a useless way. Just set -march <your_architecture> and -O1/2/3/s and you should be fine.

As I said, you can use cfq sccheduler to boost the interactivity of your system. As here if you dont find how to do that in the forums. The preemptivity also helps a lot. For the rest make sure that dma is on, that your graphic card is working ok and with all of its features on, and, if you use some vixie-cron script to make update your slocate database, make sure that you renice the correct line on the script to -n 19.

If I remember something else I will post it here. If you want further explanation on something just ask for it, hope it helped :)

<edit>

Make sure that, when you compile X, you use all the possible extensions on your system. I mean:

Code: Select all

# emerge -pv xorg-x11

Calculating dependencies ...done!
[ebuild   R   ] x11-base/xorg-x11-6.8.2-r1  -3dfx +3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server -hardened -insecure-drivers -ipv6 -minimal +mmx +nls +opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 0 kB
Make sure that, if aplicable, you have 3dnow, sse, mmx, and all what you consider should be in your cpu, turned on in your USE flags. That way X will use all that extensions.
Top
MWalton
n00b
n00b
Posts: 31
Joined: Thu Jun 16, 2005 2:04 pm
Location: Rocky Mountain House, Canada

Computer tuning

  • Quote

Post by MWalton » Mon Jun 20, 2005 7:11 pm

Make sure to keep your comp. relitivily clean, otherwise defragmented. It makes it so it opperates faster.

MWalton
Top
johntramp
Guru
Guru
User avatar
Posts: 457
Joined: Tue Feb 03, 2004 8:07 am
Location: New Zealand

  • Quote

Post by johntramp » Sat Oct 01, 2005 2:18 pm

haha defragment! I havent heard of that for years. It isn't his windows os he wants to improve :p
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Sun Oct 02, 2005 12:46 am

johntramp wrote:haha defragment! I havent heard of that for years. It isn't his windows os he wants to improve :p
Haha, fragmentation is not a windows problem, but an hd problem. Linux filesystems do fragment also. Slower, but they do. :P
Top
man
Tux's lil' helper
Tux's lil' helper
Posts: 75
Joined: Thu Oct 07, 2004 2:30 am

  • Quote

Post by man » Sun Oct 02, 2005 1:02 am

hey all, ignore all those posts re: cflags. you'll get a stable system with none. cflags suck arse and contribute greatly to system breakages. gentoo is fine without them.
man
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Sun Oct 02, 2005 1:16 am

Hey! Don't ignore mine. I also recommend not using essoteric cflags. Just -O2 (or -Os), -pipe and -march=<whatever>. Anyway, inteligent makefiles ignore stupid cflags. But some others do not do it...
Top
MetX
n00b
n00b
Posts: 19
Joined: Wed May 19, 2004 5:45 pm
Contact:
Contact MetX
Website

  • Quote

Post by MetX » Sun Oct 02, 2005 1:41 am

I recommend for the CFLAGS part to DEFINITELY put in -march=<cpuType> and -O2 as well as -fomit-frame-pointers (since I'm assuming you aren't using X86_64 which automatically drops those).

Personally, I use reiserfs since it works excellent w/ the TONS of small files on a gentoo system. XFS would be a good one for /opt (since thats often where binary-only games end up) due to the fact of the large files that games often use.
A note about putting everything on Ext2... if your system reboots unexpectedly, it will take a LOOooong time to reboot due to the necessary FSCK to make the drives safe. His note that journalling slowing things down is wrong, journalling allows for better handling of multiple writes tot he same place and speeds up file-system mounting greatly.

The anticipatory block scheduler works great for ensuring that your HD performance is maxxed out.

Also, a note on your noticing X using ~100 MB... don't trust what you see as the memory usage unless you check out the "private writable" section. W/ X, it maps your graphics memory into its memory space, so you probably have like a 64 meg card mapped in.
If you're using NVidia, be sure to use their binary drivers... that's the only way to go really for 3d.

Well.. thats my loaded 2cents.
Top
MetX
n00b
n00b
Posts: 19
Joined: Wed May 19, 2004 5:45 pm
Contact:
Contact MetX
Website

  • Quote

Post by MetX » Sun Oct 02, 2005 1:42 am

Oh, forgot to note, gentoo-sources are better than vanilla-sources because it includes fixes made by gentoo's team.
Top
apmurray
Apprentice
Apprentice
Posts: 221
Joined: Sat May 29, 2004 2:02 pm
Location: Adelaide, Australia
Contact:
Contact apmurray
Website

  • Quote

Post by apmurray » Sun Oct 02, 2005 5:24 am

MetX wrote:Oh, forgot to note, gentoo-sources are better than vanilla-sources because it includes fixes made by gentoo's team.
What?? That doesnt necissarily mean it is better!! Personally I use it, but to say that it is better because it has fixes made by the gentoo team is completely unfounded.
Top
MetX
n00b
n00b
Posts: 19
Joined: Wed May 19, 2004 5:45 pm
Contact:
Contact MetX
Website

  • Quote

Post by MetX » Sun Oct 02, 2005 5:51 am

apmurray wrote:
MetX wrote:Oh, forgot to note, gentoo-sources are better than vanilla-sources because it includes fixes made by gentoo's team.
What?? That doesnt necissarily mean it is better!! Personally I use it, but to say that it is better because it has fixes made by the gentoo team is completely unfounded.
Unfounded?
It's "better" because it may have stability fixes that were found later in the vanilla kernel, basically the whole reason for there being a gentoo-kernel (besides SquashFS and the bootscreens).
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Sun Oct 02, 2005 12:53 pm

I know nothing about what that concrete fixes are. But at least for me, and im talking about my personal experience, vanilla sources are the most stable sources. I have not found a reason to use gentoo-sources (I used them when first installed gentoo, so, the thing might have changed, I dont know) except for the bootsplash, which I personally dont use. When it comes to console, I preffer a plain black and readable background, since every framebuffer jpeg background has it own readability issues (overall when using prorams with coloured text output).

Anyway, also ck, morph, and all the rest are supposed to have some performance fixes, and they have probed not to be relliable, so, "he more fixes" does not mean necessarily "the best kernel".
Top
vipernicus
Veteran
Veteran
User avatar
Posts: 1462
Joined: Mon Jan 17, 2005 10:35 pm
Location: Your College IT Dept.
Contact:
Contact vipernicus
Website

  • Quote

Post by vipernicus » Wed Oct 05, 2005 2:24 pm

better is an opinion. sometimes opinions are based on facts, and sometimes they are not.
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Top
Post Reply

13 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic