public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Any video optimization tips?
Date: Fri, 16 Dec 2011 18:18:22 -0500	[thread overview]
Message-ID: <20111216231822.GB3029@waltdnes.org> (raw)
In-Reply-To: <loom.20111216T145007-92@post.gmane.org>

On Fri, Dec 16, 2011 at 01:57:58PM +0000, James wrote

> Find the minimal flags and the optimum CFLAGS settings for 
> your needs. Refine by testing. USE a fast hard drive.....
> Avoid apps that soak up ram. Some video apps are ram_hogs...
> 
> I'd be curious to learn what you finally figure out.

  Here's my current setup.  First the cpu flags...

waltdnes@d530 ~ $ grep flags /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl
est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts

  And what I've specified in CFLAGS and USE

waltdnes@d530 ~ $ grep "\(CFLAGS\|USE\)" /etc/make.conf
CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
USE="-* X a52 aac bzip2 cxx dga dri exif ffmpeg flac fortran gallium gif
intel jpeg mmx mng mp3 mpeg nptl nptlonly nsplugin offensive ogg opengl
png posix sse sse2 ssse3 theora threads tiff truetype vim-syntax vorbis
win32codecs wmf xcomposite xpm xv xvid zlib"

  One more thing.  I just ran "gcc -march=native -Q --help=target" and
got a major shock.  It's a long output listing of what is/isn't enabled
with -march=native on my cpu.  Here are some relevant items...

-march=                               core2
-mmmx                                 [disabled]
-msse                                 [disabled]
-msse2                                [disabled]
-msse3                                [disabled]
-mssse3                               [disabled]

  It has properly identified the cpu as "core2".  But mmx, sse, sse2,
sse3 (aka pni), and ssse3 are disabled!!!  I'll change my CFLAGS to...

CFLAGS="-O2 -march=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe"

...and emerge system and world and rebuild the kernel.  Then I'll see
if it helps.  It'll probably be at least an overnight job for each
emerge, if not longer.

-- 
Walter Dnes <waltdnes@waltdnes.org>



  reply	other threads:[~2011-12-16 23:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16 11:11 [gentoo-user] Any video optimization tips? Walter Dnes
2011-12-16 11:20 ` Helmut Jarausch
2011-12-16 13:57   ` [gentoo-user] " James
2011-12-16 23:18     ` Walter Dnes [this message]
2011-12-17 15:18       ` James
2011-12-17 21:19     ` Walter Dnes
2011-12-16 21:58   ` [gentoo-user] " Walter Dnes
2011-12-16 14:13 ` Michael Mol
2011-12-16 14:27   ` [gentoo-user] " Nikos Chantziaras
2011-12-16 19:00     ` [gentoo-user] " Stroller
2011-12-17  9:04       ` [gentoo-user] " Nikos Chantziaras
2011-12-17 21:20     ` Walter Dnes
2011-12-17 21:56       ` Dale
2011-12-16 23:28   ` [gentoo-user] " Walter Dnes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111216231822.GB3029@waltdnes.org \
    --to=waltdnes@waltdnes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox