View previous topic :: View next topic |
Author |
Message |
colobolo n00b
Joined: 20 Oct 2005 Posts: 26
|
Posted: Fri Jan 20, 2006 4:08 am Post subject: *Solved* Server performance. |
|
|
In concern of making use of best performance i checked the make.conf
I noticed some lines their which seem not apropiate with the server system.
Server is tyan bairbone with 2 x Amd opteron and 2gb dual ram.
Strange thing is that there are two processors in the system and that this line is included in /etc/make.conf
MAKEOPTS="-j4"
It should state -j3 ? i guess for 2+1 as stated in the /etc/make.conf.example file.
Should i change this value ?
Next this line.
CFLAGS="-O3 -march=k8 -fforce-addr -fomit-frame-pointer -ftracer -momit-leaf-frame-pointer -pipe"
This seems also strange because march=opteron would seem to be the best value ?
# amd64 CPU types supported in gcc-3.4: athlon64, opteron, k8
Should i change this value ?
# CPU types supported in gcc-3.2 and higher: athlon-xp, athlon-mp,
# athlon-tbird, athlon, k6, k6-2, k6-3, i386, i486, i586 (Pentium), i686
# (PentiumPro), pentium, pentium-mmx, pentiumpro, pentium2 (Celeron),
# pentium3, and pentium4.
#
# amd64 CPU types supported in gcc-3.4: athlon64, opteron, k8
# Please consult /etc/make.conf.example for a more detailed example
Make.conf starts here.
Code: |
USE="acpi apache2 crypt libwww mailwrapper nptl php ssl vhosts"
USE="${USE} -X -bitmap-fonts -gif -imlib -jpeg -lzw -lzw-tiff -opengl -png -tiff -truetype-fonts -type1-fonts -xpm -xv"
USE="${USE} -alsa -avi -berkdb -cups -emboss -encode -foomaticdb -gdbm -gpm -mp3 -mpeg -pdflib -quicktime -sdl -spell"
USE="${USE} -eds -gnome -gstreamer -gtk -gtk2 -kde -qt"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -fforce-addr -fomit-frame-pointer -ftracer -momit-leaf-frame-pointer -pipe"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
MAKEOPTS="-j4"
ACCEPT_KEYWORDS="amd64"
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
DISTDIR=${PORTDIR}/distfiles
PKGDIR=${PORTDIR}/packages
PORT_LOGDIR=/var/log/portage
PORTDIR_OVERLAY=/usr/local/portage
PORTAGE_NICENESS="3"
GENTOO_MIRRORS="http://correct url is listed here (removed)"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT=60
RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes
AUTOCLEAN="yes"
#FEATURES="distlocks sandbox userpriv usersandbox"
|
Could you please check the content of the make.conf to see if there should be anything added or removed ?
I ask this question also in relation to server performance https://forums.gentoo.org/viewtopic-p-3044630.html as gameserver since we have no clue yet how to improve the system performance.
Last edited by colobolo on Fri Jan 20, 2006 11:20 pm; edited 1 time in total |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Fri Jan 20, 2006 7:15 am Post subject: |
|
|
I would suggest recompiling all the installed packages with safe CFLAGS.
I doubt that the MAKEOPTS being 3 or 4 makes a difference.
For a gaming server, see this thread. |
|
Back to top |
|
|
sirdilznik l33t
Joined: 28 Apr 2005 Posts: 731
|
Posted: Fri Jan 20, 2006 2:01 pm Post subject: |
|
|
colobolo wrote: | This seems also strange because march=opteron would seem to be the best value ?
# amd64 CPU types supported in gcc-3.4: athlon64, opteron, k8
Should i change this value ? |
No
-march=athlon64 = -march=k8 = -march=opteron |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Fri Jan 20, 2006 2:13 pm Post subject: Re: Server performance. |
|
|
colobolo wrote: | MAKEOPTS="-j4"
It should state -j3 ? i guess for 2+1 as stated in the /etc/make.conf.example file.
Should i change this value ? |
Does that system use SMP? If so, there should be FOUR virtual processors, in which case you might even want to use -j5. |
|
Back to top |
|
|
colobolo n00b
Joined: 20 Oct 2005 Posts: 26
|
Posted: Fri Jan 20, 2006 11:17 pm Post subject: |
|
|
A new kernel was compiled. and that did the trick..
GameServer ingame ping times dropped from >30 to about 11 to 15 ms. Which is good enough for us
thanks PaulBredbury and others for pointing in the good direction. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|