From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F082E1381F3 for ; Wed, 12 Dec 2012 08:33:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E0BC21C010; Wed, 12 Dec 2012 08:33:41 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by pigeon.gentoo.org (Postfix) with ESMTP id 0E3BBE064C for ; Wed, 12 Dec 2012 08:32:36 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwKAG6Zu09soXLF/2dsb2JhbAAqGrJ2A4EYgQiCFgEBAQMBAjccMwsSIhIUFBEQJx+HbwspuVWLCBpAgUSCPGIDiEKEfIU4giSBEIRPiDqBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="209670299" Received: from 108-161-114-197.dsl.teksavvy.com (HELO waltdnes.org) ([108.161.114.197]) by ironport2-out.teksavvy.com with SMTP; 12 Dec 2012 03:32:35 -0500 Received: by waltdnes.org (sSMTP sendmail emulation); Wed, 12 Dec 2012 03:32:29 -0500 From: "Walter Dnes" Date: Wed, 12 Dec 2012 03:32:29 -0500 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Intel Atom: architecture, distcc, crossdev and compile flags Message-ID: <20121212083229.GA32442@waltdnes.org> References: <20121211173647.GA32351@eisen.lan> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121211173647.GA32351@eisen.lan> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: 3011c095-d448-49d4-8334-564b7bc74067 X-Archives-Hash: 9fbb93ccae4d895b5304191d1f580c88 On Tue, Dec 11, 2012 at 06:36:47PM +0100, Frank Steinmetzger wrote > * I???m interested in the question of -O2 vs. -Os. > Some sources say -Os is bad, b/c it breaks debugging and is mainly > untested. I won???t do heavy developing on it anyway, and Atoms do > have a puny cache. So I wonder whether -Os would improve execution > time and RAM usage noticably. Diskspace itself is not an issue. I do builds on the netbook. My generic make.conf CFLAGS line is... CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables" ...on my machines. "-fno-unwind-tables -fno-asynchronous-unwind-tables" reverses a "new and improved feature" of GCC that bloats the busybox binary (and presumably other binaries) 15% to 20%. See the short thread http://lists.busybox.net/pipermail/busybox/2012-September/078326.html for background. The busybox developers obviously want to reduce every bit of disk and/or ram usage, because busybox is used in a lot of ram and disk constrained embedded systems. I don't know if it's possible to easily add another gig of ram. It would certainly help. I have an ancient netbook. It has 2 gigs of ram, but is restricted to 32-bit only. BTW, does the netbook jave a Poulsbo GPU? There are some hints at the Arch wiki https://wiki.archlinux.org/index.php/Poulsbo for getting it to work better. I can get HD Youtube videos to play in the "large player", but my machine has 2 gigs of ram. If it's a relatively new Gentoo install, I recommend... emerge system && emerge world ...to get the most optimization. Also, build the "ondemand" cpu governor and enable it (emerge cpufrequtils). This will enable the higher CPU speeds. I think my machine was originally stuck at its lowest CPU frequency due to the "powersave" governor, even with the machine plugged into the wall for power. -- Walter Dnes I don't run "desktop environments"; I run useful applications