Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Glibc overlay with amd64 performance patches! (obsolete)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 21, 22, 23  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Thu Nov 10, 2005 7:59 pm    Post subject: Reply with quote

So what is the difference between the 2.3.6 release and the HEAD branch? I don't know what the HEAD branch is, sorry.
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Thu Nov 10, 2005 8:43 pm    Post subject: Reply with quote

HEAD is the very latest development code
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Thu Nov 10, 2005 8:53 pm    Post subject: Reply with quote

Redeeman wrote:
satanskin wrote:
nxsty wrote:
Btw, I'm woking on a updated overlay. It will include a new snapshot from HEAD from today (like the 2.3.5.2005XXXX snapshots in portage) with updated patches, updated fedora add ons and gcc4 ssp support.


Why not just use the official 2.3.6 release? Just came out today! woot!

his overlay is based on that, but 2.3.6 still needs the libm patch to be real good


The libm patch is still included and used. Check the patching step when you emerge it, it should be applied.

Glibc 2.3.6 is in portage now. I'll sync my ebuild with it soon. Now I don't have to exclude a lot of upstream fixed patches anymore.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Thu Nov 10, 2005 9:09 pm    Post subject: Reply with quote

And what about this glibc-2.3.6 ebuild being broken? "Portage sucks." it says :)
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Thu Nov 10, 2005 9:52 pm    Post subject: Reply with quote

mbar wrote:
And what about this glibc-2.3.6 ebuild being broken? "Portage sucks." it says :)


I just noticed that when syncing my ebuild. I don't know, I never had any problems updating to 2.3.6 and I've had no problem reports in this thread about it. Im merging it now to see what happens. Perhaps it's only the devel versions of portage that's affected?
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Thu Nov 10, 2005 9:57 pm    Post subject: Reply with quote

it emerges perfectly....with gcc-4.1 too ;)
_________________
Retired gentoo user
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Thu Nov 10, 2005 10:58 pm    Post subject: Reply with quote

Ok the new overlay is online, compile and run tested on amd64 and x86. Ping me if you have any problems emerging it!
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Thu Nov 10, 2005 11:51 pm    Post subject: Reply with quote

nxsty wrote:
Redeeman wrote:
satanskin wrote:
nxsty wrote:
Btw, I'm woking on a updated overlay. It will include a new snapshot from HEAD from today (like the 2.3.5.2005XXXX snapshots in portage) with updated patches, updated fedora add ons and gcc4 ssp support.


Why not just use the official 2.3.6 release? Just came out today! woot!

his overlay is based on that, but 2.3.6 still needs the libm patch to be real good


The libm patch is still included and used. Check the patching step when you emerge it, it should be applied.

Glibc 2.3.6 is in portage now. I'll sync my ebuild with it soon. Now I don't have to exclude a lot of upstream fixed patches anymore.

i did not mean to say that you dont apply it, the intention of that post was to tell satanskin that 2.3.6 still neded libm
Back to top
View user's profile Send private message
Kuroki Kaze
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Net-Sphere

PostPosted: Sun Nov 13, 2005 6:23 pm    Post subject: Reply with quote

Warning! your patchset added to crontab!
=)

simple update script:
Code:

#!/bin/bash

W='/usr/bin/wget'
T='/bin/tar'

CWD=$PWD
GLIBCOVERDIR="/home/ftp/Linux/Gentoo/glibc-amd64"

source /etc/make.conf

cd $GLIBCOVERDIR
$W -N http://snigel.no-ip.com/~nxsty/linux/glibc-overlay.tar.bz2

$T -xvjf glibc-overlay.tar.bz2 -C $PORTDIR_OVERLAY/sys-libs

find $PORTDIR_OVERLAY/sys-libs/glibc/ -iname \*ebuild -exec ebuild '{}' digest \;

cd $CWD

_________________
Blame!
Back to top
View user's profile Send private message
Kuroki Kaze
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Net-Sphere

PostPosted: Sun Nov 13, 2005 7:20 pm    Post subject: Reply with quote

hmmm... can you add this in ebuild file:

Code:

IUSE="nls pic build nptl nptlonly erandom hardened userlocales multilib selinux
glibc-compat20 glibc-omitfp linuxthreads-tls profile nomalloccheck custom_cflags"

setup_flags() {
....
if ! use custom_cflags ; then
  strip-flags
  strip-unsupported-flags
  filter-flags -m32 -m64 -mabi=*
fi

....
if ! use custom_cflags ; then
  filter-flags -O?
  append-flags -O2
fi
}

_________________
Blame!
Back to top
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Sun Nov 13, 2005 7:28 pm    Post subject: Reply with quote

I thought this patch was predominately for AMD64. Should I put this on non-AMD64 systems?
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
Gnufsh
Guru
Guru


Joined: 28 Dec 2002
Posts: 400
Location: Portland, OR

PostPosted: Sun Nov 13, 2005 7:57 pm    Post subject: Reply with quote

THe libm and sting patches might give problems. I don't know if glibc as a fallback for that or not. I don't really think it's a good idea.
Back to top
View user's profile Send private message
Kuroki Kaze
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Net-Sphere

PostPosted: Sun Nov 13, 2005 8:07 pm    Post subject: Reply with quote

Gnufsh wrote:
THe libm and sting patches might give problems. I don't know if glibc as a fallback for that or not. I don't really think it's a good idea.


thats only for crazy geeks =)
_________________
Blame!
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sun Nov 13, 2005 10:05 pm    Post subject: Reply with quote

Kuroki Kaze wrote:
hmmm... can you add this in ebuild file:


I don't think that's such a good idea. Using nonstandard optimizations for glibc will proably just cause problems. Use the glibc-omitfp USE-flag if you want higher compiler optimizations.
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sun Nov 13, 2005 10:08 pm    Post subject: Reply with quote

enderandrew wrote:
I thought this patch was predominately for AMD64. Should I put this on non-AMD64 systems?


You can, the x86_64 parts isn't built on other arches. I use it on other x86 systems too. Allthough most fixes I had besides the x86_64 patches is included in glibc 2.3.6 so there isn't much different from the 2.3.6 ebuild in portage on x86.
Back to top
View user's profile Send private message
Kuroki Kaze
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Net-Sphere

PostPosted: Sun Nov 13, 2005 10:37 pm    Post subject: Reply with quote

CFLAGS="-O3 -fforce-addr -fforce-mem -march=k8 -pipe -fomit-frame-pointer" - compiled!

so it's my choise...
_________________
Blame!
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Mon Nov 14, 2005 9:10 am    Post subject: Reply with quote

Kuroki Kaze wrote:
CFLAGS="-O3 -fforce-addr -fforce-mem -march=k8 -pipe -fomit-frame-pointer" - compiled!

so it's my choise...


Yea, but people have a tendency to try to push it as far as it goes. If I added a custom-cflags USE a lot of people would try to compile it with -ffast-math, -funroll-loops etc. which would be pointless and only break their systems. Your optimizations are actually the same as turned on by glibc-omitfp except the -fforce-addr btw.
Back to top
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Mon Nov 14, 2005 9:28 am    Post subject: Reply with quote

Isn't -fforce-addr somewhat redundant?

It seems to be the same thing as --fforce-mem, which is already enabled at -O2. So he is repeating it twice basically, right?
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
Kuroki Kaze
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Net-Sphere

PostPosted: Mon Nov 14, 2005 12:46 pm    Post subject: Reply with quote

enderandrew wrote:
Isn't -fforce-addr somewhat redundant?

It seems to be the same thing as --fforce-mem, which is already enabled at -O2. So he is repeating it twice basically, right?


yeah.... how can i miss it?...
hmmm... lets try somthing else =)
_________________
Blame!
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Mon Nov 14, 2005 2:57 pm    Post subject: Reply with quote

Hi,

and fomit-frame-pointer is pointless on amd64.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Mon Nov 14, 2005 3:04 pm    Post subject: Reply with quote

energyman76b wrote:
Hi,

and fomit-frame-pointer is pointless on amd64.

why
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Mon Nov 14, 2005 4:06 pm    Post subject: Reply with quote

You should probably update the intro to this thread to say 2.3.6 and show the benchmark comparison to 2.3.6 just so people don't get confused when they install it.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Mon Nov 14, 2005 4:07 pm    Post subject: Reply with quote

Redeeman wrote:
energyman76b wrote:
Hi,

and fomit-frame-pointer is pointless on amd64.

why


gcc on x86-64 removes the frame pointer by default.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Kuroki Kaze
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Net-Sphere

PostPosted: Mon Nov 14, 2005 4:34 pm    Post subject: Reply with quote

loftwyr wrote:
Redeeman wrote:
energyman76b wrote:
Hi,

and fomit-frame-pointer is pointless on amd64.

why


gcc on x86-64 removes the frame pointer by default.


#man gcc
....
-O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging.
....
_________________
Blame!
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Tue Nov 15, 2005 12:07 pm    Post subject: Reply with quote

Glibc 2.3.6-r1 was added today so I've updated my overlay to use it. The changes are only interesting if you're using binutils 2.16.9* and/or gcc 4.1.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 21, 22, 23  Next
Page 7 of 23

 
Jump to:  
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